fix r.rule.NotifyRepeatStep unit
This commit is contained in:
parent
837cfab1bd
commit
218140066b
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue