Skip to content

Commit 13b49bb

Browse files
committed
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
1 parent d449339 commit 13b49bb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

server/notification-providers/google-chat.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ class GoogleChat extends NotificationProvider {
8080
});
8181
}
8282

83+
// add monitor URL if available
84+
if (monitorJSON && monitorJSON["url"]) {
85+
sectionWidgets.push({
86+
textParagraph: {
87+
text: `<b>URL:</b>\n<a href="${monitorJSON["url"]}">${monitorJSON["url"]}</a>`,
88+
},
89+
});
90+
}
91+
8392
// add button for monitor link if available
8493
const baseURL = await setting("primaryBaseURL");
8594
if (baseURL) {

0 commit comments

Comments
 (0)