From 1189e708dae90015f6eea19f065dcaa0b68bcee1 Mon Sep 17 00:00:00 2001 From: Chris Buckley Date: Tue, 5 Oct 2021 23:02:27 +0100 Subject: [PATCH] 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 --- src/functions/helpers.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/functions/helpers.js b/src/functions/helpers.js index bd7354d..080ad2b 100644 --- a/src/functions/helpers.js +++ b/src/functions/helpers.js @@ -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: [ {