alert rule have to be pending before alerting is for is specified
This commit is contained in:
@@ -126,7 +126,7 @@ func (c *EvalContext) GetNewState() m.AlertStateType {
|
||||
}
|
||||
|
||||
since := time.Now().Sub(c.Rule.LastStateChange)
|
||||
if since > c.Rule.For {
|
||||
if c.PrevAlertState == m.AlertStatePending && since > c.Rule.For {
|
||||
return m.AlertStateAlerting
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user