use alert state changes counter as secondary version

This commit is contained in:
bergquist
2018-10-01 15:58:30 +02:00
parent 1be8fb76b8
commit 75f832cda8
9 changed files with 54 additions and 9 deletions
+5
View File
@@ -67,6 +67,11 @@ 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.
evalContext.Rule.StateChanges = cmd.Result.StateChanges
}
// save annotation