Slack

Notify Slack channel with alert status. A webhook is required for notifications.

notify_slack(webhook=None, channel='#general', message=None)

Send Slack notification to specified channel.

Parameters:
  • webhook (str) – Slack webhook. If not set, then webhook set in configuration will be used.
  • channel (str) – Channel to be notified. Default is #general.
  • message (str) – Message to be sent. If None, then a message constructed from the alert will be sent.