Skip to main content

Module dispatch

Module dispatch 

Source
Available on crate feature notify only.
Expand description

The notifier: match events to rules, coalesce, deliver, and correlate PagerDuty resolves (#280).

A Notifier is built once per process (from_specs) and shared via Arc. It holds the compiled rules, a reqwest client, and two pieces of in-process state: a leading-edge coalesce map and the set of currently-open PagerDuty incidents (so a later run_success sends a matching resolve).

emit never fails or blocks the pipeline. Every delivery is bounded by a per-attempt timeout and a small retry; a channel outage is logged, counted (faucet_notifications_dropped_total), and swallowed.

Structsยง

Notifier
A compiled, ready-to-fire set of notification rules.