Browse Source
Merge pull request #698 from erktime/master
Add monitor name context to Slack fallback text.
pull/709/head
Louis Lam
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
server/notification-providers/slack.js
|
|
@ -39,8 +39,9 @@ class Slack extends NotificationProvider { |
|
|
|
} |
|
|
|
|
|
|
|
const time = heartbeatJSON["time"]; |
|
|
|
const textMsg = "Uptime Kuma Alert"; |
|
|
|
let data = { |
|
|
|
"text": "Uptime Kuma Alert", |
|
|
|
"text": monitorJSON ? textMsg + `: ${monitorJSON.name}` : textMsg, |
|
|
|
"channel": notification.slackchannel, |
|
|
|
"username": notification.slackusername, |
|
|
|
"icon_emoji": notification.slackiconemo, |
|
|
|