Change hostname for group mail notification (#6253)
This commit is contained in:
parent
40ec715853
commit
e419433ae4
@ -69,6 +69,8 @@ class SMTP extends NotificationProvider {
|
|||||||
|
|
||||||
if (monitorJSON["type"] === "http" || monitorJSON["type"] === "keyword" || monitorJSON["type"] === "json-query") {
|
if (monitorJSON["type"] === "http" || monitorJSON["type"] === "keyword" || monitorJSON["type"] === "json-query") {
|
||||||
monitorHostnameOrURL = monitorJSON["url"];
|
monitorHostnameOrURL = monitorJSON["url"];
|
||||||
|
} else if (monitorJSON["type"] === "group") {
|
||||||
|
monitorHostnameOrURL = "Group: " + monitorJSON["name"];
|
||||||
} else {
|
} else {
|
||||||
monitorHostnameOrURL = monitorJSON["hostname"];
|
monitorHostnameOrURL = monitorJSON["hostname"];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user