The Slack action type uses Slack Incoming Webhooks.
Slack connectors have the following configuration properties:
- The name of the connector. The name is used to identify a connector in the management UI connector listing, or in the connector list when configuring an action.
- Webhook URL
The URL of the incoming webhook. See Slack Incoming Webhooks for instructions on generating this URL. If you are using the
xpack.actions.whitelistedHostssetting, make sure the hostname is whitelisted.
Preconfigured action typeedit
my-slack: name: preconfigured-slack-action-type actionTypeId: .slack config: webhookUrl: 'https://hooks.slack.com/services/abcd/efgh/ijklmnopqrstuvwxyz'
config defines the action type specific to the configuration.
webhookUrl, a string that corresponds to Webhook URL.
Slack actions have the following properties:
The message text, converted to the
textfield in the Webhook JSON payload. Currently only the text field is supported. Markdown, images, and other advanced formatting are not yet supported.