NatureWhistle.Notifier.Slack (nature_whistle v0.3.0)

Copy Markdown

Slack webhook delivery backend.

This notifier sends a single JSON payload of the form %{text: message} to a Slack incoming webhook URL. It accepts its configuration as either a map or a keyword list, which makes it easy to place directly in application config.

Required config:

  • :webhook_url - the Slack incoming webhook endpoint

All HTTP retry behavior is delegated to NatureWhistle.Notifier.Retry.

Summary

Functions

Delivers a Slack message using an incoming webhook.

Functions

deliver(message, metadata, config)

Delivers a Slack message using an incoming webhook.

The payload is always %{text: message}. Any non-success HTTP status or transport error is retried according to the configured retry policy.