Class AlertNotification

Assembly: redb.Tsak.Core.dll

A single alert to deliver. Produced from a WatchdogAlert (a newly detected hung /
suspected exchange) or from a lifecycle event, and carried to every enabled channel.

public sealed record AlertNotification : IEquatable<AlertNotification>

Inheritance

Object→AlertNotification

Implements

Properties

ContextName

public string? ContextName { get; init; }

DedupKey

Stable dedup key: the same incident produces the same key so the dispatcher can suppress

[JsonIgnore]
public string DedupKey { get; }

ElapsedSeconds

public double? ElapsedSeconds { get; init; }

ExchangeId

public string? ExchangeId { get; init; }

Level

Severity: "Suspected" or "Hung" (or "Test" for a manual probe).

public required string Level { get; init; }

NodeId

public string? NodeId { get; init; }

RouteId

public string? RouteId { get; init; }

Timestamp

public DateTimeOffset Timestamp { get; init; }

Title

Short, human-readable summary line (also the Telegram/webhook title).

public required string Title { get; init; }

Methods

ToJson()

JSON body sent to the webhook / endpoint channels.

public string ToJson()

ToText()

Plain-text rendering for Telegram and email bodies.

public string ToText()