Correctly seed alert fingerprints

Then need to be set after creating the alert
This commit is contained in:
Łukasz Mierzwa
2017-07-06 22:28:14 -07:00
parent deaae332ec
commit 5e0cb18075
4 changed files with 4 additions and 0 deletions
+1
View File
@@ -114,6 +114,7 @@ func (m AlertMapper) GetAlerts(uri string, timeout time.Duration) ([]models.Aler
}
sort.Strings(a.InhibitedBy)
sort.Strings(a.SilencedBy)
a.UpdateFingerprints()
alertList = append(alertList, a)
}
ug := models.AlertGroup{
+1
View File
@@ -113,6 +113,7 @@ func (m AlertMapper) GetAlerts(uri string, timeout time.Duration) ([]models.Aler
}
sort.Strings(a.InhibitedBy)
sort.Strings(a.SilencedBy)
a.UpdateFingerprints()
alertList = append(alertList, a)
}
ug := models.AlertGroup{
+1
View File
@@ -112,6 +112,7 @@ func (m AlertMapper) GetAlerts(uri string, timeout time.Duration) ([]models.Aler
}
sort.Strings(a.InhibitedBy)
sort.Strings(a.SilencedBy)
a.UpdateFingerprints()
alertList = append(alertList, a)
}
ug := models.AlertGroup{
+1
View File
@@ -116,6 +116,7 @@ func (m AlertMapper) GetAlerts(uri string, timeout time.Duration) ([]models.Aler
}
sort.Strings(a.InhibitedBy)
sort.Strings(a.SilencedBy)
a.UpdateFingerprints()
alertList = append(alertList, a)
}
ug := models.AlertGroup{