Documentation
¶
Overview ¶
Package notify delivers knell's transition notifications to a Discord webhook. It is the only outbound-network code in the app: one POST per transition, retried on transient failures via httpx.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discord ¶
type Discord struct {
// contains filtered or unexported fields
}
Discord posts plain-content messages to one Discord-compatible webhook.
func New ¶
New builds a Discord notifier for the given webhook URL. node names this observer instance in every message so multi-node deployments read as distinct reports.
func (*Discord) BeatMissing ¶
BeatMissing announces that a beat's deadline of silence has passed.
func (*Discord) BeatRecovered ¶
BeatRecovered announces the first ping after a missing alert.
Click to show internal directories.
Click to hide internal directories.