SQLert.Notifier behaviour (sqlert v0.0.2)

View Source

Behaviour 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

deliver(alert)

@callback deliver(alert :: SQLert.Alert.t()) :: :ok | {:error, term()}