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
This commit is contained in:
Chris Buckley 2021-10-05 23:02:27 +01:00 committed by Adam Janiš
parent de0cfaf504
commit 1189e708da
1 changed files with 1 additions and 0 deletions

View File

@ -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: [
{