Skip to content

Commit 1189e70

Browse files
cmbuckleyeidam
authored andcommitted
Supply fallback text for Slack message
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
1 parent de0cfaf commit 1189e70

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/functions/helpers.js

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export async function notifySlack(monitor, operational) {
2727
const payload = {
2828
attachments: [
2929
{
30+
fallback: `Monitor ${monitor.name} changed status to ${getOperationalLabel(operational)}`,
3031
color: operational ? '#36a64f' : '#f2c744',
3132
blocks: [
3233
{

0 commit comments

Comments
 (0)