tech(alerting): add logging about failed notifications

This commit is contained in:
bergquist
2016-06-15 09:19:22 +02:00
parent 9a8416416d
commit b9b65cf2d4
4 changed files with 55 additions and 27 deletions

View File

@@ -27,6 +27,10 @@ func (alert *Alert) ValidToSave() bool {
return alert.DashboardId != 0 && alert.OrgId != 0 && alert.PanelId != 0
}
func (alert *Alert) ShouldUpdateState(newState string) bool {
return alert.State != newState
}
func (this *Alert) ContainsUpdates(other *Alert) bool {
result := false
result = result || this.Name != other.Name