nezha/model/alertrule_api.go

12 lines
521 B
Go
Raw Normal View History

2024-10-25 20:16:57 -04:00
package model
type AlertRuleForm struct {
2024-11-16 07:57:03 -05:00
Name string `json:"name" minLength:"1"`
2024-12-19 10:21:15 -05:00
Rules []*Rule `json:"rules"`
2024-10-25 20:16:57 -04:00
FailTriggerTasks []uint64 `json:"fail_trigger_tasks"` // 失败时触发的任务id
RecoverTriggerTasks []uint64 `json:"recover_trigger_tasks"` // 恢复时触发的任务id
NotificationGroupID uint64 `json:"notification_group_id"`
2024-11-16 07:57:03 -05:00
TriggerMode uint8 `json:"trigger_mode" default:"0"`
Enable bool `json:"enable" validate:"optional"`
2024-10-25 20:16:57 -04:00
}