提交 0588d399 编写于 作者: U Ulric Qin

bugfix: handle status when create alert_rule

上级 1eecb324
......@@ -32,7 +32,6 @@ type alertRuleForm struct {
EnableEtime string `json:"enable_etime"`
EnableDaysOfWeek string `json:"enable_days_of_week"`
AlertDuration int `json:"alert_duration"`
RecoveryDuration int `json:"recovery_duration"`
RecoveryNotify int `json:"recovery_notify"`
Priority int `json:"priority"`
NotifyChannels string `json:"notify_channels"`
......@@ -57,6 +56,7 @@ func alertRuleAdd(c *gin.Context) {
Name: alertRule.Name,
Type: alertRule.Type,
Note: alertRule.Note,
Status: alertRule.Status,
Expression: alertRule.Expression,
AlertDuration: alertRule.AlertDuration,
AppendTags: alertRule.AppendTags,
......@@ -132,7 +132,6 @@ func alertRulePut(c *gin.Context) {
"enable_stime",
"enable_etime",
"enable_days_of_week",
"recovery_duration",
"recovery_notify",
"priority",
"notify_channels",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册