Skip to main content

Module render

Module render 

Source
Available on crate feature notify only.
Expand description

Pure per-channel payload rendering (#280).

Each function turns a NotifyEvent into the JSON body a channel expects. No I/O, no secrets — the caller (crate::notify::dispatch) owns the HTTP client and injects credentials as headers / URL. Kept pure so the rendering is fully unit-testable.

Enums§

PdAction
PagerDuty Events API v2 action.

Functions§

pagerduty
Render a PagerDuty Events API v2 payload. dedup_key correlates a resolve with the trigger that opened the incident.
slack
Render a Slack incoming-webhook body (Block Kit).
webhook
Render a generic webhook body — a stable, machine-readable envelope.