Skip to content

feat: add monitored URL link to Google Chat notifications#6588

Merged
CommanderStorm merged 3 commits intolouislam:masterfrom
MkDev11:google-chat-url-link
Jan 5, 2026
Merged

feat: add monitored URL link to Google Chat notifications#6588
CommanderStorm merged 3 commits intolouislam:masterfrom
MkDev11:google-chat-url-link

Conversation

@MkDev11
Copy link
Copy Markdown
Contributor

@MkDev11 MkDev11 commented Jan 5, 2026

feat: add monitored URL link to Google Chat notifications

Summary

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

Changes

  • Added URL section to Google Chat card notifications showing the monitored service URL as a clickable hyperlink
  • Only displays when the monitor has a URL configured (e.g., HTTP/HTTPS monitors)

Benefits

  • Faster Incident Response: Users can instantly access the service URL to assess issues
  • Improved User Experience: Eliminates the need to manually search for the service URL
  • Streamlined Workflows: Reduces cognitive load and potential errors by providing direct access

Code Change

// add monitor URL if available
if (monitorJSON && monitorJSON["url"]) {
    sectionWidgets.push({
        textParagraph: {
            text: `<b>URL:</b>\n<a href="${monitorJSON["url"]}">${monitorJSON["url"]}</a>`,
        },
    });
}

Screenshot

Google Chat notification will now include a clickable URL section between the Time and the "Visit Uptime Kuma" button.

Checklist

  • Linting passes (npm run lint)
  • Follows existing code patterns
  • No breaking changes

Contribution by Gittensor, see my contribution statistics at https://gittensor.io/miners/details?githubId=94194147

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 louislam#5952
Copy link
Copy Markdown
Collaborator

@CommanderStorm CommanderStorm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you use the following instead:

@CommanderStorm CommanderStorm added the pr:please address review comments this PR needs a bit more work to be mergable label Jan 5, 2026
@CommanderStorm CommanderStorm added this to the 2.2.0 milestone Jan 5, 2026
@CommanderStorm CommanderStorm marked this pull request as draft January 5, 2026 16:09
@MkDev11
Copy link
Copy Markdown
Contributor Author

MkDev11 commented Jan 5, 2026

could you use the following instead:

Done!

Copy link
Copy Markdown
Collaborator

@CommanderStorm CommanderStorm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plese have a look at the changes you submitted..

Address review feedback from CommanderStorm to use the inherited
extractAddress() method instead of directly accessing monitorJSON["url"].
This properly handles different monitor types (ping, port, dns, etc.).
@MkDev11 MkDev11 force-pushed the google-chat-url-link branch from 97f4d13 to 4cad397 Compare January 5, 2026 23:43
@MkDev11 MkDev11 requested a review from CommanderStorm January 5, 2026 23:44
Copy link
Copy Markdown
Collaborator

@CommanderStorm CommanderStorm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 🎉

@CommanderStorm CommanderStorm marked this pull request as ready for review January 5, 2026 23:51
Copilot AI review requested due to automatic review settings January 5, 2026 23:51
@CommanderStorm CommanderStorm modified the milestones: 2.2.0, 2.1.0 Jan 5, 2026
@CommanderStorm CommanderStorm removed the pr:please address review comments this PR needs a bit more work to be mergable label Jan 5, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to add the monitored service URL as a clickable link to Google Chat notifications to enable faster incident response. However, the current implementation displays the address as plain text rather than making it clickable.

Key Changes:

  • Added an "Address" section to Google Chat card notifications that displays the monitored service address (URL, hostname, or port)
  • The address is extracted using the existing extractAddress method from the NotificationProvider base class
  • The new section appears between the "Time" section and the "Visit Uptime Kuma" button

@CommanderStorm CommanderStorm merged commit 4af0320 into louislam:master Jan 5, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add url-links to Google Chat Notifications

3 participants