Class PagerDutySignaler
- Namespace
- Kuestenlogik.Bowire.Monitoring.PagerDuty
- Assembly
- Kuestenlogik.Bowire.Monitoring.PagerDuty.dll
Triggers / resolves a PagerDuty incident on a probe transition (Events API
v2). A failing edge sends event_action: trigger; a recovery sends
resolve. Both carry the same dedup_key (the probe name) so the
recovery clears the incident the alert opened. Delivery failures are wrapped
in SignalerException so the runner logs and skips them.
public sealed class PagerDutySignaler : ISignaler
- Inheritance
-
PagerDutySignaler
- Implements
- Inherited Members
Constructors
PagerDutySignaler(string, HttpClient, Uri?)
public PagerDutySignaler(string routingKey, HttpClient http, Uri? endpoint = null)
Parameters
routingKeystringhttpHttpClientendpointUri
Fields
DefaultEndpoint
The PagerDuty Events API v2 enqueue endpoint.
public static readonly Uri DefaultEndpoint
Field Value
- Uri
Methods
DeliverAsync(SignalEvent, CancellationToken)
Deliver a transition to this channel. Failures must not abort the run.
public Task DeliverAsync(SignalEvent signal, CancellationToken ct = default)
Parameters
signalSignalEventctCancellationToken