Repository navigation
feat(apidocs): Publish monitor and uptime stats as experimental - #131246
Merged
Merged
Conversation
The organization monitor check-in stats and uptime check stats endpoints move to PUBLIC_EXPERIMENTAL with full extend_schema docs: token operationIds, every query parameter the handlers read, and typed responses. No behavior change. Part of #131199
DominikB2014
enabled auto-merge (squash)
November 16, 2026 14:02
DominikB2014
approved these changes
Nov 16, 2026
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.
Part of #131199.
sentry-tui needs the check-in and uptime-check timelines that the Crons and Uptime list pages draw. It reads them through the generated
@sentry/apiSDK, which only has published operations. Both endpoints are unpublished.GET /organizations/{org}/monitors-stats/(OrganizationMonitorIndexStatsEndpoint)PRIVATE→PUBLIC_EXPERIMENTALaslistOrganizationMonitorStatsGET /organizations/{org}/uptime-stats/(OrganizationUptimeStatsEndpoint)EXPERIMENTAL→PUBLIC_EXPERIMENTALaslistOrganizationUptimeStatsDocs, checked against the handlers:
monitor(GUIDs, up to 20) anduptimeDetectorId(required, up to 100). Alsosince/untilfromStatsMixin._parse_args, each endpoint'sresolutionrules (anyNs/m/h/dfor monitors; for uptime, the EAP granularities),projectand, for monitors,environment.since/untillive in a newStatsRangeParamsclass.[timestamp, counts]pairs. The count keys come fromCheckInStatus(monitors) and from the four uptime outcomes the handler always fills in.Uptime MonitorstoCrons, the tag the published uptime endpoints use.Uptime Monitorsisn't a defined spec tag, so the build rejects it.getnow declares itsResponse[...]type. The monitor handler still builds[ts, counts]lists, and acastmaps them to the documented pair type. The JSON andresponse.datastay the same.Behavior, permissions and responses stay the same, and nothing breaks. The spec only gains these two operations.
The agent-token permission matrix picks up both rows. They needed query params and an uptime monitor fixture.
Moving sentry-tui or the CLI onto these operations waits for an
@sentry/apirelease that includes them.--
View Session [Sentry]