controlio module for sending a message to a Slack webhook
A result module for controlio.
Send a message to a slack webhook
A slack object is expected at either the host, check or on level. You
can set defaults on an upper level and then override single options at lower
levels. The following options are allowed:
- webhook: Webhook URL
- host: [DEPRECATED] Hostname of your Slack team.
- token: [DEPRECATED] The webhook token you defined in your integrations
- text: The message text. Can contain placeholders.
- attachments: An optional attachments array as defined in the Slack documentation
- channel: Optional channel name
- username: Optional username for the message sender
- icon_url: Optional URL to an icon for the sender
- icon_emoji: Optional emoji name as the sender icon
All string values within the slack object will be (recursively) processed for placeholders.
instead of the deprecated host and token options it is recommended to use
the webhook option, giving the full Webhook URL as shown in the integration
settings.