controlio-result-slack-webhook

0.0.8 • Public • Published

controlio-result-slack-webhook

A result module for controlio.

Description

Send a message to a slack webhook

Options

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.

Readme

Keywords

none

Package Sidebar

Install

npm i controlio-result-slack-webhook

Weekly Downloads

4

Version

0.0.8

License

MIT

Last publish

Collaborators

  • lasar