mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-24 07:14:04 +00:00
Adds name + status + message to slack notification
This commit is contained in:
parent
e241728419
commit
727acb32bf
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class Slack extends NotificationProvider {
|
||||||
const time = heartbeatJSON["time"];
|
const time = heartbeatJSON["time"];
|
||||||
const textMsg = "Uptime Kuma Alert";
|
const textMsg = "Uptime Kuma Alert";
|
||||||
let data = {
|
let data = {
|
||||||
"text": monitorJSON ? textMsg + `: ${monitorJSON.name}` : textMsg,
|
"text": monitorJSON ? `${textMsg}\n${msg}` : textMsg,
|
||||||
"channel": notification.slackchannel,
|
"channel": notification.slackchannel,
|
||||||
"username": notification.slackusername,
|
"username": notification.slackusername,
|
||||||
"icon_emoji": notification.slackiconemo,
|
"icon_emoji": notification.slackiconemo,
|
||||||
|
|
Loading…
Reference in a new issue