Skip to content

Commit

Permalink
trivial. disable email on default systemnotification
Browse files Browse the repository at this point in the history
  • Loading branch information
ktkfree committed May 8, 2024
1 parent d38123b commit ed56cfb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions internal/usecase/system-notification-rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (u *SystemNotificationRuleUsecase) MakeDefaultSystemNotificationRules(ctx c
Severity: "warning",
Duration: "3m",
Parameter: []byte("[{\"order\": 0, \"value\": \"10\", \"operator\": \"<\"}]"),
EnableEmail: true,
EnableEmail: false,
EnablePortal: true,
},
TargetUsers: []model.User{},
Expand All @@ -239,7 +239,7 @@ func (u *SystemNotificationRuleUsecase) MakeDefaultSystemNotificationRules(ctx c
Severity: "warning",
Duration: "3m",
Parameter: []byte("[{\"order\": 0, \"value\": \"0.2\", \"operator\": \"<\"}]"),
EnableEmail: true,
EnableEmail: false,
EnablePortal: true,
},
TargetUsers: []model.User{},
Expand All @@ -265,7 +265,7 @@ func (u *SystemNotificationRuleUsecase) MakeDefaultSystemNotificationRules(ctx c
Severity: "critical",
Duration: "30m",
Parameter: []byte("[{\"order\": 0, \"value\": \"0\", \"operator\": \"<\"}]"),
EnableEmail: true,
EnableEmail: false,
EnablePortal: true,
},
TargetUsers: []model.User{},
Expand All @@ -291,7 +291,7 @@ func (u *SystemNotificationRuleUsecase) MakeDefaultSystemNotificationRules(ctx c
Severity: "critical",
Duration: "30m",
Parameter: []byte("[{\"order\": 0, \"value\": \"0\", \"operator\": \"<\"}]"),
EnableEmail: true,
EnableEmail: false,
EnablePortal: true,
},
TargetUsers: []model.User{},
Expand All @@ -317,7 +317,7 @@ func (u *SystemNotificationRuleUsecase) MakeDefaultSystemNotificationRules(ctx c
Severity: "critical",
Duration: "30m",
Parameter: []byte("[{\"order\": 0, \"value\": \"2\", \"operator\": \">\"}]"),
EnableEmail: true,
EnableEmail: false,
EnablePortal: true,
},
TargetUsers: []model.User{},
Expand All @@ -343,7 +343,7 @@ func (u *SystemNotificationRuleUsecase) MakeDefaultSystemNotificationRules(ctx c
Severity: "critical",
Duration: "1m",
Parameter: []byte("[{\"order\": 0, \"value\": \"1\", \"operator\": \"==\"}]"),
EnableEmail: true,
EnableEmail: false,
EnablePortal: true,
},
TargetUsers: []model.User{},
Expand All @@ -369,7 +369,7 @@ func (u *SystemNotificationRuleUsecase) MakeDefaultSystemNotificationRules(ctx c
Severity: "critical",
Duration: "1m",
Parameter: []byte("[{\"order\": 0, \"value\": \"1\", \"operator\": \"==\"}]"),
EnableEmail: true,
EnableEmail: false,
EnablePortal: true,
},
TargetUsers: []model.User{},
Expand Down

0 comments on commit ed56cfb

Please sign in to comment.