actions
|
array
|
actions defines a list of Slack actions that are sent with each notification. |
actions[]
|
object
|
SlackAction configures a single Slack action that is sent with each
notification.
See https://api.slack.com/docs/message-attachments#action_fields and
https://api.slack.com/docs/message-buttons for more information. |
apiURL
|
object
|
apiURL defines the secret’s key that contains the Slack webhook URL.
The secret needs to be in the same namespace as the AlertmanagerConfig
object and accessible by the Prometheus Operator. |
callbackId
|
string
|
callbackId defines an identifier for the message used in interactive components. |
channel
|
string
|
channel defines the channel or user to send notifications to. |
color
|
string
|
color defines the color of the left border of the Slack message attachment.
Can be a hex color code (e.g., "#ff0000") or a predefined color name. |
fallback
|
string
|
fallback defines a plain-text summary of the attachment for clients that don’t support attachments. |
fields
|
array
|
fields defines a list of Slack fields that are sent with each notification. |
fields[]
|
object
|
SlackField configures a single Slack field that is sent with each notification.
Each field must contain a title, value, and optionally, a boolean value to indicate if the field
is short enough to be displayed next to other fields designated as short.
See https://api.slack.com/docs/message-attachments#fields for more information. |
footer
|
string
|
footer defines small text displayed at the bottom of the message attachment. |
httpConfig
|
object
|
httpConfig defines the HTTP client configuration. |
iconEmoji
|
string
|
iconEmoji defines the emoji to use as the bot’s avatar (e.g., ":ghost:"). |
iconURL
|
string
|
iconURL defines the URL to an image to use as the bot’s avatar. |
imageURL
|
string
|
imageURL defines the URL to an image file that will be displayed inside the message attachment. |
linkNames
|
boolean
|
linkNames enables automatic linking of channel names and usernames in the message.
When true, @channel and @username will be converted to clickable links. |
mrkdwnIn
|
array (string)
|
mrkdwnIn defines which fields should be parsed as Slack markdown.
Valid values include "pretext", "text", and "fields". |
pretext
|
string
|
pretext defines optional text that appears above the message attachment block. |
sendResolved
|
boolean
|
sendResolved defines whether or not to notify about resolved alerts. |
shortFields
|
boolean
|
shortFields determines whether fields are displayed in a compact format.
When true, fields are shown side by side when possible. |
text
|
string
|
text defines the main text content of the Slack message attachment. |
thumbURL
|
string
|
thumbURL defines the URL to an image file that will be displayed as a thumbnail
on the right side of the message attachment. |
title
|
string
|
title defines the title text displayed in the Slack message attachment. |
titleLink
|
string
|
titleLink defines the URL that the title will link to when clicked. |
username
|
string
|
username defines the slack bot user name. |