Slack
Example Slack ConnectionapiVersion: mission-control.flanksource.com/v1
kind: Connection
metadata:
name: slack-connection
namespace: default
spec:
slack:
token:
value: your-slack-token
channel: Cxxxxxxxxxx
botName: your-bot-name
color: "#36a64f"
icon: ":robot_face:"
title: "Notification Title"
This example:
- Uses
token
to authenticate the Slack bot. - Sends messages to the specified
channel
. - Sets the
botName
to identify the bot. - Optionally sets the
color
of the message border. - Optionally sets the
icon
for the bot. - Optionally sends the message as a reply in a thread using
threadTS
. - Optionally prepends a
title
above the message.
Field | Description | Scheme |
---|---|---|
channel* | The channel to send messages to, in |
|
token* | Slack app's API bot token. | |
botName | Bot name | |
color | Message left-hand border color | good | warning | danger | URL encoded hex color code |
icon | emoji or URL | |
threadTS | ts value of the parent message (to send message as reply in thread) | |
title | Prepended text above the message |