mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
add alert api (#458)
This commit is contained in:
12
model/alertrule_api.go
Normal file
12
model/alertrule_api.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package model
|
||||
|
||||
type AlertRuleForm struct {
|
||||
ID uint64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Rules []Rule `json:"rules"`
|
||||
FailTriggerTasks []uint64 `json:"fail_trigger_tasks"` // 失败时触发的任务id
|
||||
RecoverTriggerTasks []uint64 `json:"recover_trigger_tasks"` // 恢复时触发的任务id
|
||||
NotificationGroupID uint64 `json:"notification_group_id"`
|
||||
TriggerMode int `json:"trigger_mode"`
|
||||
Enable bool `json:"enable"`
|
||||
}
|
||||
Reference in New Issue
Block a user