feat: expand the serverstatus API surface - #440
Open
NickJosevski wants to merge 3 commits into
Open
Conversation
…erver ActionTemplateSearch is the response shape of Search and carries no uri tags, so the fields passed to Get never reached the server and every call returned the default first page. Deprecate Get and add GetByQuery, which takes the existing Query. Fixes #437 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Adds GetServerStatus, GetHealthStatus, GetTimezones and GetDocumentCounts as newclient functions, and the missing IsPotentialClone field on ServerStatus. Shapes verified against a live server. Refs #47 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Adds GetSystemInfo, GetRecentLogs and GetSystemReport. The report is a zip archive, so it returns an io.ReadCloser. All three require the AdministerSystem permission. Shapes verified against a live server. Refs #47 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
NickJosevski
marked this pull request as ready for review
August 7, 2026 05:22
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.
Refs #47.
ServerStatusServiceexposed onlyGet. Adds newclient functions for every endpoint on theServerStatusresource:GetServerStatus/api/serverstatusGetHealthStatus/api/serverstatus/healthGetTimezones/api/serverstatus/timezonesGetDocumentCounts/api/serverstatus/countsGetSystemInfo/api/serverstatus/system-infoGetRecentLogs/api/serverstatus/logs{?skip,take,includeDetail}GetSystemReport/api/serverstatus/system-reportAlso adds the missing
IsPotentialClonefield onServerStatus.Notes:
GetSystemReportreturns anio.ReadCloser— the endpoint serves a zip archive, not JSON. The caller closes it.GetSystemInfo,GetRecentLogsandGetSystemReportrequire theAdministerSystempermission.SystemInfo.Uptimeis left as the server's time span string;FromTimeSpanlives inmachinepolicies/machines, so parsing it here would mean importing one of those./api/serverstatus/extensionsis not included; it 404s and is not advertised on the resource.All response shapes verified against a live server. e2e tests cover all seven, and unit tests pin the
LogsQueryexpansion.