clear last notification time after alerting recovered

This commit is contained in:
liugq 2023-08-22 16:28:52 +08:00
parent 522a5361a2
commit e9ac60b217
1 changed files with 3 additions and 0 deletions

View File

@ -700,6 +700,9 @@ func (engine *Engine) Do(rule *alerting.Rule) error {
}
actionResults, _ := performChannels(recoverCfg.Normal, paramsCtx, false)
alertItem.RecoverActionResults = actionResults
//clear history notification time
_ = kv.DeleteKey(alerting2.KVLastNotificationTime, []byte(rule.ID))
_ = kv.DeleteKey(alerting2.KVLastEscalationTime, []byte(rule.ID))
}
}
return nil