We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a753feb commit 89fe10eCopy full SHA for 89fe10e
1 file changed
pkg/notifications/model.go
@@ -39,8 +39,16 @@ const (
39
LevelInfo Level = "info"
40
LevelWarning Level = "warning"
41
LevelError Level = "error"
42
+ LevelUrgent Level = "urgent"
43
)
44
45
+var AllowedLevels = []Level{
46
+ LevelInfo,
47
+ LevelWarning,
48
+ LevelError,
49
+ LevelUrgent,
50
+}
51
+
52
// toNotificationModel converts a Notification to the rest model for the notification service.
53
// It also adds the current time as timestamp if it is not set.
54
func toNotificationModel(n Notification) notificationModel {
0 commit comments