SlackTemplate
type: "io.kestra.plugin.notifications.slack.SlackTemplate"
Task to send a slack message using provided template information
# Examples
Send a slack notification
id: "slack_template"
type: "io.kestra.plugin.notifications.slack.SlackTemplate"
url: "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
payload: |
{
"channel": "#my-chan",
"text": "Flow <code v-pre>{{ flow.namespace }}.{{ flow.id }}</code> started with execution <code v-pre>{{ execution.id }}</code>"
}
# Properties
# channel
- Type: string
- Dynamic: ✔️
- Required: ❌
Slack channel to send the message to
# iconEmoji
- Type: string
- Dynamic: ✔️
- Required: ❌
Emoji icon to use
# iconUrl
- Type: string
- Dynamic: ✔️
- Required: ❌
Url of the icon to use
# payload
- Type: string
- Dynamic: ✔️
- Required: ❌
Slack message payload
# templateRenderMap
- Type: object
- Dynamic: ✔️
- Required: ❌
Render map to use for template
# templateUri
- Type: string
- Dynamic: ✔️
- Required: ❌
Template to use
# url
- Type: string
- Dynamic: ✔️
- Required: ❌
Slack incoming webhook url
See Create an Incoming Webhook
# username
- Type: string
- Dynamic: ✔️
- Required: ❌
Author of the slack message