-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uptime Monitor Management - Adjust monitor details page href for browser monitors #122533
Uptime Monitor Management - Adjust monitor details page href for browser monitors #122533
Conversation
…tor management table
…agement-browser-monitor-ids
Pinging @elastic/uptime (Team:uptime) |
href={`${basePath}/app/uptime/monitor/${Buffer.from( | ||
/* Monitor Management currently only supports inline browser monitors. | ||
* Inline browser monitors append `inline` to the monitor id */ | ||
`${id}${type === DataStream.BROWSER ? `-inline` : ''}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i thought we are going to handle this in heartbeat elastic/beats#29505
But if you doing this as a makeshift solution. I am fine by it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shahzad31 That only accounts for removing the appended - Inline
in the journey title, not the id, or at least it should. We already opened pandora's box with this id scheme, we can't change it now or we'll lose the history for these monitors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
Fixes #121549
Summary
This PR adjusts the monitor details url in Monitor Management, specifically for browser monitors.
Depending on the type of browser monitor, inline or suite, heartbeat appends to the monitor id.
For inline monitors, the monitor id supplied by kibana is appended with
-inline
.Suite monitors are not currently supported by Monitor Management, so we only have to support inline monitor ids. In a future version, this logic will need to be adjusted to account for suites.
Testing
oblt-cli
./app/uptime/add-monitor
and create a browser monitor/app/uptime/manage-monitors
and click on the name of the monitor to link to the monitor detail page.