diff --git a/server/notification-providers/discord.js b/server/notification-providers/discord.js index 6bacbd0fe..bd54cc7c6 100644 --- a/server/notification-providers/discord.js +++ b/server/notification-providers/discord.js @@ -33,11 +33,17 @@ class Discord extends NotificationProvider { return okMsg; } + const address = this.extractAddress(monitorJSON); + const embedFields = [ { name: "Service Name", value: monitorJSON["name"], }, + ...((address !== "" && address !== monitorJSON["hostname"]) ? [{ + name: "Service URL", + value: address + }] : []), { name: `Time (${heartbeatJSON["timezone"]})`, value: heartbeatJSON["localDateTime"],