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" ],
event: monitorJSON["type"],
group: "uptimekuma-" + monitorJSON["type"],
resource: monitorJSON["pathName"],
resource: monitorJSON["name"],
}, data );
if (heartbeatJSON["status"] === DOWN) {

View file

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

View file

@ -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",
};

View file

@ -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,
});

View file

@ -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
});