SQLert.Notifier behaviour (sqlert v0.0.2)
View SourceBehaviour for implementing alert notification delivery.
Example
defmodule MyApp.SQLerts.SlackNotifier do
@behaviour SQLert.Notifier
@impl true
def deliver(alert) do
# Send to Slack
:ok
end
end
Summary
Callbacks
@callback deliver(alert :: SQLert.Alert.t()) :: :ok | {:error, term()}