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
tokento authenticate the Slack bot. - Sends messages to the specified
channel. - Sets the
botNameto identify the bot. - Optionally sets the
colorof the message border. - Optionally sets the
iconfor the bot. - Optionally sends the message as a reply in a thread using
threadTS. - Optionally prepends a
titleabove the message.
| Field | Description | Scheme |
|---|---|---|
channel* | The channel to send messages to, in | string |
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 |