|
|
@ -63,7 +63,7 @@ class Teams extends NotificationProvider {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (monitorUrl) {
|
|
|
|
if (monitorUrl && monitorUrl !== "https://") {
|
|
|
|
facts.push({
|
|
|
|
facts.push({
|
|
|
|
name: "URL",
|
|
|
|
name: "URL",
|
|
|
|
value: monitorUrl,
|
|
|
|
value: monitorUrl,
|
|
|
@ -127,13 +127,17 @@ class Teams extends NotificationProvider {
|
|
|
|
|
|
|
|
|
|
|
|
let url;
|
|
|
|
let url;
|
|
|
|
|
|
|
|
|
|
|
|
if (monitorJSON["type"] === "port") {
|
|
|
|
switch (monitorJSON["type"]) {
|
|
|
|
url = monitorJSON["hostname"];
|
|
|
|
case "http":
|
|
|
|
if (monitorJSON["port"]) {
|
|
|
|
case "keywork":
|
|
|
|
url += ":" + monitorJSON["port"];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
url = monitorJSON["url"];
|
|
|
|
url = monitorJSON["url"];
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "docker":
|
|
|
|
|
|
|
|
url = monitorJSON["docker_host"];
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
url = monitorJSON["hostname"];
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const payload = this._notificationPayloadFactory({
|
|
|
|
const payload = this._notificationPayloadFactory({
|
|
|
|