Remove seemingly risky changes

This commit is contained in:
Frank Elsinga 2025-01-24 20:05:51 +01:00 committed by GitHub
parent 216f39d556
commit 8e450f415a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 6 additions and 6 deletions

View file

@ -44,7 +44,7 @@ class Alerta extends NotificationProvider {
correlate: [ "service_up", "service_down" ], correlate: [ "service_up", "service_down" ],
event: monitorJSON["type"], event: monitorJSON["type"],
group: "uptimekuma-" + monitorJSON["type"], group: "uptimekuma-" + monitorJSON["type"],
resource: monitorJSON["pathName"], resource: monitorJSON["name"],
}, data ); }, data );
if (heartbeatJSON["status"] === DOWN) { if (heartbeatJSON["status"] === DOWN) {

View file

@ -60,7 +60,7 @@ class Ntfy extends NotificationProvider {
data.actions = [ data.actions = [
{ {
"action": "view", "action": "view",
"label": "Open " + monitorJSON.pathName, "label": "Open " + monitorJSON.name,
"url": monitorJSON.url, "url": monitorJSON.url,
}, },
]; ];

View file

@ -44,7 +44,7 @@ class Opsgenie extends NotificationProvider {
if (heartbeatJSON.status === DOWN) { if (heartbeatJSON.status === DOWN) {
let data = { let data = {
"message": monitorJSON ? textMsg + `: ${monitorJSON.pathName}` : textMsg, "message": monitorJSON ? textMsg + `: ${monitorJSON.pathName}` : textMsg,
"alias": monitorJSON.pathName, "alias": monitorJSON.name,
"description": msg, "description": msg,
"source": "Uptime Kuma", "source": "Uptime Kuma",
"priority": `P${priority}` "priority": `P${priority}`
@ -54,7 +54,7 @@ class Opsgenie extends NotificationProvider {
} }
if (heartbeatJSON.status === UP) { if (heartbeatJSON.status === UP) {
let opsgenieAlertsCloseUrl = `${opsgenieAlertsUrl}/${encodeURIComponent(monitorJSON.pathName)}/close?identifierType=alias`; let opsgenieAlertsCloseUrl = `${opsgenieAlertsUrl}/${encodeURIComponent(monitorJSON.name)}/close?identifierType=alias`;
let data = { let data = {
"source": "Uptime Kuma", "source": "Uptime Kuma",
}; };

View file

@ -224,7 +224,7 @@ class Teams extends NotificationProvider {
const payload = this._notificationPayloadFactory({ const payload = this._notificationPayloadFactory({
heartbeatJSON: heartbeatJSON, heartbeatJSON: heartbeatJSON,
monitorName: monitorJSON.pathName, monitorName: monitorJSON.name,
monitorUrl: this.extractAddress(monitorJSON), monitorUrl: this.extractAddress(monitorJSON),
dashboardUrl: dashboardUrl, dashboardUrl: dashboardUrl,
}); });

View file

@ -84,7 +84,7 @@ class ZohoCliq extends NotificationProvider {
const payload = this._notificationPayloadFactory({ const payload = this._notificationPayloadFactory({
monitorMessage: heartbeatJSON.msg, monitorMessage: heartbeatJSON.msg,
monitorName: monitorJSON.pathName, monitorName: monitorJSON.name,
monitorUrl: this.extractAddress(monitorJSON), monitorUrl: this.extractAddress(monitorJSON),
status: heartbeatJSON.status status: heartbeatJSON.status
}); });