mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
renames debouceduration to for
This commit is contained in:
@@ -132,9 +132,9 @@ func (c *EvalContext) GetNewState() m.AlertStateType {
|
||||
return c.Rule.ExecutionErrorState.ToAlertState()
|
||||
}
|
||||
|
||||
if c.Firing && c.Rule.DebounceDuration != 0 {
|
||||
if c.Firing && c.Rule.For != 0 {
|
||||
since := time.Now().Sub(c.Rule.LastStateChange)
|
||||
if since > c.Rule.DebounceDuration {
|
||||
if since > c.Rule.For {
|
||||
return m.AlertStateAlerting
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user