Skip to content

Commit

Permalink
Supply fallback text for Slack message
Browse files Browse the repository at this point in the history
This is used as a plain-text summary of the attachment, e.g. in push notifications.

Docs: https://api.slack.com/reference/messaging/attachments#legacy_fields
  • Loading branch information
cmbuckley authored and eidam committed Oct 11, 2021
1 parent de0cfaf commit 1189e70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/functions/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export async function notifySlack(monitor, operational) {
const payload = {
attachments: [
{
fallback: `Monitor ${monitor.name} changed status to ${getOperationalLabel(operational)}`,
color: operational ? '#36a64f' : '#f2c744',
blocks: [
{
Expand Down

0 comments on commit 1189e70

Please sign in to comment.