From 51728a9959691888e531ca9a2e12e26d2b7b5bea Mon Sep 17 00:00:00 2001 From: liugq Date: Thu, 21 Dec 2023 15:44:24 +0800 Subject: [PATCH] fix alerting notification --- service/alerting/elasticsearch/engine.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/service/alerting/elasticsearch/engine.go b/service/alerting/elasticsearch/engine.go index e61a2054..2ef65b1e 100644 --- a/service/alerting/elasticsearch/engine.go +++ b/service/alerting/elasticsearch/engine.go @@ -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)) }