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:
parent
d449339896
commit
13b49bb417
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user