mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-11 17:06:22 +00:00
309c6af4b2
Building a hash over an entire set of alerts causes problems, because the hash differs, on any change, whereas we only want to send notifications if the alert and it's state have changed. Therefore this introduces a list of alerts that are active and a list of alerts that are resolved. If the currently active alerts of a group are a subset of the ones that have been notified about before then they are deduplicated. The resolved notifications work the same way, with a separate list of resolved notifications that have already been sent. |
||
---|---|---|
.. | ||
acceptance | ||
acceptance.go | ||
collector.go | ||
mock.go |