mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
feat: 触发报警后的通知支持仅发送一次
This commit is contained in:
@@ -600,6 +600,7 @@ type alertRuleForm struct {
|
||||
Name string
|
||||
RulesRaw string
|
||||
NotificationTag string
|
||||
TriggerMode int
|
||||
Enable string
|
||||
}
|
||||
|
||||
@@ -642,6 +643,7 @@ func (ma *memberAPI) addOrEditAlertRule(c *gin.Context) {
|
||||
r.RulesRaw = arf.RulesRaw
|
||||
r.NotificationTag = arf.NotificationTag
|
||||
enable := arf.Enable == "on"
|
||||
r.TriggerMode = arf.TriggerMode
|
||||
r.Enable = &enable
|
||||
r.ID = arf.ID
|
||||
//保证NotificationTag不为空
|
||||
|
||||
Reference in New Issue
Block a user