mirror of
https://github.com/tormachris/cf-workers-status-page.git
synced 2024-11-23 14:45:41 +01:00
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:
parent
de0cfaf504
commit
1189e708da
@ -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: [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user