Skip to main content

Module spec

Module spec 

Source
Available on crate feature notify only.
Expand description

Config types for the notifications: block (#280).

One NotificationSpec is a rule: which EventKinds it fires on, a severity floor, an optional leading-edge coalesce window, and a single delivery ChannelSpec. The channel uses the project-wide adjacently tagged { type, config } shape (matching connectors / shared auth / lineage transports).

Everything here is pure data + validation. Dispatch lives in crate::notify::dispatch; rendering in crate::notify::render.

Structs§

NotificationSpec
A single notification rule.
PagerdutyConfig
PagerDuty Events API v2 config.
SlackConfig
Slack incoming-webhook config.
WebhookConfig
Generic signed-webhook config.

Enums§

ChannelSpec
A delivery channel. Adjacently tagged { type, config } to match the project-wide connector / auth / lineage-transport shape.
EventKind
The lifecycle / health events a rule can subscribe to.
Severity
Event severity — ordered so min_severity can gate with >=. A rule with no min_severity defaults to the lowest floor (info), so it delivers everything it subscribes to.

Constants§

RESERVED_BODY_KEYS
Top-level keys faucet emits in the webhook body. extra_fields may not shadow any of them (see WebhookConfig::extra_fields).

Functions§

validate_all
Validate a whole notifications: list (unique names + per-rule validation).