fix
This commit is contained in:
parent
b482c7a076
commit
2e63993b7f
|
@ -344,7 +344,7 @@ func (r RuleEval) recoverRule(alertingKeys map[string]struct{}, now int64) {
|
|||
}
|
||||
|
||||
// 如果配置了留观时长,就不能立马恢复了
|
||||
if r.rule.RecoverDuration > 0 && now-event.LastEvalTime > r.rule.RecoverDuration {
|
||||
if r.rule.RecoverDuration > 0 && now-event.LastEvalTime <= r.rule.RecoverDuration {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue