fix r.rule.NotifyRepeatStep unit

This commit is contained in:
Ulric Qin 2021-12-23 22:26:53 +08:00
parent 837cfab1bd
commit 218140066b
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ func (r RuleEval) handleNewEvent(event *models.AlertCurEvent) {
} }
// 之前发送过告警了,这次是否要继续发送,要看是否过了通道静默时间 // 之前发送过告警了,这次是否要继续发送,要看是否过了通道静默时间
if event.LastEvalTime > fired.LastEvalTime+int64(r.rule.NotifyRepeatStep) { if event.LastEvalTime > fired.LastEvalTime+int64(r.rule.NotifyRepeatStep)*60 {
r.fires[event.Hash] = event r.fires[event.Hash] = event
pushEventToQueue(event) pushEventToQueue(event)
} }