mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-24 02:15:59 +03:00
Added Push Monitor to Discord Notifications
This commit is contained in:
parent
6ae2a48584
commit
f23baf9c22
1 changed files with 5 additions and 5 deletions
|
@ -55,8 +55,8 @@ class Discord extends NotificationProvider {
|
|||
value: monitorJSON["name"],
|
||||
},
|
||||
{
|
||||
name: "Service URL / Address",
|
||||
value: address,
|
||||
name: monitorJSON["type"] === "push" ? "Service Type" : "Service URL",
|
||||
value: monitorJSON["type"] === "push" ? "Heartbeat" : address,
|
||||
},
|
||||
{
|
||||
name: "Time (UTC)",
|
||||
|
@ -90,8 +90,8 @@ class Discord extends NotificationProvider {
|
|||
value: monitorJSON["name"],
|
||||
},
|
||||
{
|
||||
name: "Service URL",
|
||||
value: address.startsWith("http") ? "[Visit Service](" + address + ")" : address,
|
||||
name: monitorJSON["type"] === "push" ? "Service Type" : "Service URL",
|
||||
value: monitorJSON["type"] === "push" ? "Heartbeat" : address.startsWith("http") ? "[Visit Service](" + address + ")" : address,
|
||||
},
|
||||
{
|
||||
name: "Time (UTC)",
|
||||
|
@ -99,7 +99,7 @@ class Discord extends NotificationProvider {
|
|||
},
|
||||
{
|
||||
name: "Ping",
|
||||
value: heartbeatJSON["ping"] + "ms",
|
||||
value: heartbeatJSON["ping"] == null ? "N/A" : heartbeatJSON["ping"] + " ms",
|
||||
},
|
||||
],
|
||||
}],
|
||||
|
|
Loading…
Reference in a new issue