fix alerting notification

This commit is contained in:
liugq 2023-12-21 15:44:24 +08:00
parent 69aaebd3ea
commit 51728a9959
1 changed files with 2 additions and 0 deletions

View File

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