introduces hard coded deboucing for alerting

This commit is contained in:
bergquist
2018-11-01 16:04:38 +01:00
parent 5469a1a569
commit ccfd9c89b2
4 changed files with 145 additions and 70 deletions

View File

@@ -73,6 +73,9 @@ func (handler *DefaultResultHandler) Handle(evalContext *EvalContext) error {
// when two servers are raising. This makes sure that the server
// with the last state change always sends a notification.
evalContext.Rule.StateChanges = cmd.Result.StateChanges
// Update the last state change of the alert rule in memory
evalContext.Rule.LastStateChange = time.Now()
}
// save annotation