alerting: dedupe alert notifications when running multiple servers

alert notifications will only be sent if the database value
is updated.

ref #6957
This commit is contained in:
bergquist
2017-02-21 14:47:02 +01:00
parent d5245fd19a
commit 00dddca26a
3 changed files with 11 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ const (
var (
ErrCannotChangeStateOnPausedAlert error = fmt.Errorf("Cannot change state on pause alert")
ErrRequiresNewState error = fmt.Errorf("update alert state requires a new state.")
)
func (s AlertStateType) IsValid() bool {