feat: add monitored URL link to Google Chat notifications

Add the monitored service URL as a clickable link in Google Chat
notifications, allowing users to quickly navigate to the affected
service for immediate investigation.

Closes #5952
This commit is contained in:
mkdev11 2026-01-05 15:56:26 +02:00
parent d449339896
commit 13b49bb417

View File

@ -80,6 +80,15 @@ class GoogleChat extends NotificationProvider {
});
}
// add monitor URL if available
if (monitorJSON && monitorJSON["url"]) {
sectionWidgets.push({
textParagraph: {
text: `<b>URL:</b>\n<a href="${monitorJSON["url"]}">${monitorJSON["url"]}</a>`,
},
});
}
// add button for monitor link if available
const baseURL = await setting("primaryBaseURL");
if (baseURL) {