better comment about state changes

This commit is contained in:
Marcus Efraimsson
2018-10-02 15:11:33 +02:00
parent 418f77e70e
commit 0e0901874b

View File

@@ -69,8 +69,9 @@ func (handler *DefaultResultHandler) Handle(evalContext *EvalContext) error {
handler.log.Error("Failed to save state", "error", err)
} else {
// StateChanges is used for de dupping alert notifications
// when two servers are raising.
// StateChanges is used for de duping alert notifications
// 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
}