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" ],
|
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) {
|
||||||
|
|
|
@ -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,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
@ -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",
|
||||||
};
|
};
|
||||||
|
|
|
@ -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,
|
||||||
});
|
});
|
||||||
|
|
|
@ -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
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue