Scoria.SRE.AlertSink behaviour (scoria v0.1.0)

Copy Markdown View Source

Behavior for optional alert delivery sinks.

Sinks receive severity-shaped envelopes so later plans can route incidents and notifications without hard vendor coupling.

Summary

Types

envelope()

@type envelope() :: map()

result()

@type result() :: {:ok, map()} | {:error, term()}

Callbacks

publish(envelope)

@callback publish(envelope()) :: result()