Documentation
¶
Overview ¶
Package trigger ingests incidents (Alertmanager/VMAlert webhooks) and decides, per the configured policy, which ones start an investigation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAlertmanager ¶
ParseAlertmanager reads an Alertmanager webhook body into incidents. Both firing and resolved alerts are returned, each tagged with its Status (the caller routes resolved ones to the outcome ledger). "environment" is taken from the label of the same name, falling back to "env".
Types ¶
type Deduper ¶
type Deduper struct {
// contains filtered or unexported fields
}
Deduper suppresses repeated investigations of the same still-firing alert within a time window. Safe for concurrent use. The clock is injectable for tests.
func NewDeduper ¶
NewDeduper returns a Deduper with the given window. A zero window disables dedup.