Repository navigation
feat(cli): inspect metric alert thresholds and notifications - #1663
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
betegon
force-pushed
the
bt/cli-alert-inspection
branch
from
October 26, 2026 13:18
10ceead to
076f752
Compare
betegon
marked this pull request as ready for review
October 26, 2026 13:18
betegon
force-pushed
the
bt/cli-alert-inspection
branch
from
October 26, 2026 14:39
2b28e7f to
16c747f
Compare
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
alert metrics viewdrops thresholds and linked notification workflows, so it cannot answer when an alert fires or whom it notifies. Preserve the detector settings and inspect linked workflows, including their filters, destinations, and enabled states. JSON keeps the existing fields and adds native configuration and workflow documents, with--fieldssupport.Before
sentry alert metrics view test-org/9shows an active alert, but omits its thresholds and notification configuration:After
The same sanitized alert now exposes its thresholds and recovery condition, plus the disabled workflow containing its Slack action. Output excerpts:
Works by ID or name. Missing or inaccessible workflows appear in
workflowErrors(403/404); authentication, network, and server failures still propagate. This inspects current configuration, not notification delivery history.Validated with 60 alert command/API/formatter tests, CLI typecheck, and lint/format for the changed files.