Skip to navigation

Experimental. For evaluation. Interfaces, configuration, and behavior may change incompatibly.

Sends Slack notifications through configured webhooks or the Slack Web API.

Prerequisites

  • Slack incoming webhook URL for the destination channel.
  • Outbound access to Slack.

Setup

  • Set SLACK_ALERTS_WEBHOOK_URL and add:
[modules.slack.channels]
alerts = "{env:SLACK_ALERTS_WEBHOOK_URL}"
  • Send with slack.send_message("Health check complete", channel="alerts").

This module must be enabled in your Remediation Orchestrator config before it is available to scripts.

This module provides functionality for interacting with Slack.

Members

send_message

slack.send_message(message, channel?, thread_ts?, broadcast?, use_thread_for_workflow?)

Send a message to Slack.

Parameters
messagestringThe message to send.
channel?optionalstringThe channel to send the message to.
thread_ts?optionalstringThe thread timestamp to reply to (for threaded messages).
broadcast?optionalboolWhether to broadcast threaded replies to the channel (only applies when thread_ts is set).
use_thread_for_workflow?optionalboolAutomatically manage threading per workflow and channel. When true, messages to the same channel in the same workflow will be threaded together.
Returns
thread_tsstringThe thread timestamp of the sent message (use this to reply in a thread).