Skip to main content

Module channels

Module channels 

Source
Available on crate feature notify only.
Expand description

HTTP delivery for each channel (#280).

Thin I/O shims: take a rendered JSON body + the channel config, POST it, and map the HTTP outcome to Result<(), String> (the Err string is logged, never surfaced to the pipeline). All retry / timeout / dedupe policy lives in crate::notify::dispatch; these functions do exactly one request each.

Constants§

PAGERDUTY_ENDPOINT
Default PagerDuty Events API v2 endpoint (global).

Functions§

send_pagerduty
Deliver a PagerDuty trigger or resolve.
send_slack
Deliver a Slack message.
send_webhook
Deliver a generic webhook, optionally HMAC-signed.