Botica.Alerts.Subscriber behaviour (Botica v2.2.0)

Copy Markdown View Source

Behaviour for alert subscribers. See Botica.Alerts.

notify/2 receives the kind (:failed | :recovered) and the check result map. It must return :ok or {:error, reason}.

Summary

Callbacks

notify(arg1, map)

@callback notify(:failed | :recovered, map()) :: :ok | {:error, term()}