mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-25 21:15:55 +00:00
Remove seemingly risky changes
This commit is contained in:
parent
216f39d556
commit
8e450f415a
5 changed files with 6 additions and 6 deletions
|
@ -44,7 +44,7 @@ class Alerta extends NotificationProvider {
|
|||
correlate: [ "service_up", "service_down" ],
|
||||
event: monitorJSON["type"],
|
||||
group: "uptimekuma-" + monitorJSON["type"],
|
||||
resource: monitorJSON["pathName"],
|
||||
resource: monitorJSON["name"],
|
||||
}, data );
|
||||
|
||||
if (heartbeatJSON["status"] === DOWN) {
|
||||
|
|
|
@ -60,7 +60,7 @@ class Ntfy extends NotificationProvider {
|
|||
data.actions = [
|
||||
{
|
||||
"action": "view",
|
||||
"label": "Open " + monitorJSON.pathName,
|
||||
"label": "Open " + monitorJSON.name,
|
||||
"url": monitorJSON.url,
|
||||
},
|
||||
];
|
||||
|
|
|
@ -44,7 +44,7 @@ class Opsgenie extends NotificationProvider {
|
|||
if (heartbeatJSON.status === DOWN) {
|
||||
let data = {
|
||||
"message": monitorJSON ? textMsg + `: ${monitorJSON.pathName}` : textMsg,
|
||||
"alias": monitorJSON.pathName,
|
||||
"alias": monitorJSON.name,
|
||||
"description": msg,
|
||||
"source": "Uptime Kuma",
|
||||
"priority": `P${priority}`
|
||||
|
@ -54,7 +54,7 @@ class Opsgenie extends NotificationProvider {
|
|||
}
|
||||
|
||||
if (heartbeatJSON.status === UP) {
|
||||
let opsgenieAlertsCloseUrl = `${opsgenieAlertsUrl}/${encodeURIComponent(monitorJSON.pathName)}/close?identifierType=alias`;
|
||||
let opsgenieAlertsCloseUrl = `${opsgenieAlertsUrl}/${encodeURIComponent(monitorJSON.name)}/close?identifierType=alias`;
|
||||
let data = {
|
||||
"source": "Uptime Kuma",
|
||||
};
|
||||
|
|
|
@ -224,7 +224,7 @@ class Teams extends NotificationProvider {
|
|||
|
||||
const payload = this._notificationPayloadFactory({
|
||||
heartbeatJSON: heartbeatJSON,
|
||||
monitorName: monitorJSON.pathName,
|
||||
monitorName: monitorJSON.name,
|
||||
monitorUrl: this.extractAddress(monitorJSON),
|
||||
dashboardUrl: dashboardUrl,
|
||||
});
|
||||
|
|
|
@ -84,7 +84,7 @@ class ZohoCliq extends NotificationProvider {
|
|||
|
||||
const payload = this._notificationPayloadFactory({
|
||||
monitorMessage: heartbeatJSON.msg,
|
||||
monitorName: monitorJSON.pathName,
|
||||
monitorName: monitorJSON.name,
|
||||
monitorUrl: this.extractAddress(monitorJSON),
|
||||
status: heartbeatJSON.status
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue