mirror of
https://github.com/prometheus/alertmanager
synced 2025-03-11 06:07:46 +00:00
parent
86f5f8032a
commit
72ccbb28cb
@ -279,7 +279,9 @@ func (s *memoryAlertManager) removeExpiredAggregates() {
|
||||
|
||||
if time.Since(agg.LastRefreshed) > s.minRefreshInterval {
|
||||
delete(s.aggregates, agg.Alert.Fingerprint())
|
||||
s.notifier.QueueNotification(agg.Alert, notificationOpResolve, agg.Rule.NotificationConfigName)
|
||||
if agg.Rule != nil {
|
||||
s.notifier.QueueNotification(agg.Alert, notificationOpResolve, agg.Rule.NotificationConfigName)
|
||||
}
|
||||
s.needsNotificationRefresh = true
|
||||
} else {
|
||||
heap.Push(&s.aggregatesByLastRefreshed, agg)
|
||||
|
Loading…
Reference in New Issue
Block a user