Class SlackSignaler

Namespace
Kuestenlogik.Bowire.Monitoring.Slack
Assembly
Kuestenlogik.Bowire.Monitoring.Slack.dll

Posts a probe transition to a Slack incoming webhook as a chat message. A failing edge reads as an alert, a passing edge as a recovery. Delivery failures are wrapped in SignalerException so the runner logs and skips them without aborting the run.

public sealed class SlackSignaler : ISignaler
Inheritance
SlackSignaler
Implements
Inherited Members

Constructors

SlackSignaler(Uri, HttpClient)

public SlackSignaler(Uri webhook, HttpClient http)

Parameters

webhook Uri
http HttpClient

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

signal SignalEvent
ct CancellationToken

Returns

Task