Skip to content

Commit

Permalink
feat: new status on notification
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Nov 15, 2024
1 parent 27c2266 commit c58fc3b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions models/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,14 @@ func (n Notification) AsMap(removeFields ...string) map[string]any {
}

const (
NotificationStatusError = "error"
NotificationStatusSent = "sent"
NotificationStatusSending = "sending"
NotificationStatusPending = "pending" // delayed due to waitFor evaluation
NotificationStatusSkipped = "skipped" // due to waitFor evaluation
NotificationStatusSilenced = "silenced"
NotificationStatusRepeatInterval = "repeat-interval"
NotificationStatusError = "error"
NotificationStatusEvaluatingWaitFor = "evaluating-waitfor"
NotificationStatusPending = "pending" // delayed due to waitFor evaluation
NotificationStatusRepeatInterval = "repeat-interval"
NotificationStatusSending = "sending"
NotificationStatusSent = "sent"
NotificationStatusSilenced = "silenced"
NotificationStatusSkipped = "skipped" // due to waitFor evaluation
)

type NotificationSendHistory struct {
Expand Down

0 comments on commit c58fc3b

Please sign in to comment.