Repository navigation
feat(serverless): add --order-by to space metrics summary - #266
Merged
Merged
Conversation
Expose the order_by field of GetSpaceSummaryMetrics (public API #571): --order-by name|points|storage. points and storage list the largest collections first, so --page-size N gives the top N without fetching every page. It can't be combined with --totals-only, which returns no items. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dstdfx
approved these changes
Nov 25, 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.
Summary
Adds
--order-bytoqcloud serverless space metrics summary. It maps toGetSpaceSummaryMetricsRequest.order_by, added in public API #571 and already in the v0.234.0 the CLI depends on.name(default)SPACE_COLLECTION_METRICS_ORDER_UNSPECIFIEDpointsSPACE_COLLECTION_METRICS_ORDER_POINT_COUNT_DESCstorageSPACE_COLLECTION_METRICS_ORDER_USED_STORAGE_BYTES_DESC--page-size N,pointsorstoragegives the top N collections without fetching every page. This case is shown in the new example.--order-byand--totals-onlyare mutually exclusive, because totals-only returns no items.Longnotes that ties are ordered by name and that pages are not stable while metric values change, as the proto comment says.Testing
--totals-onlyis rejected.make lint,make build,make testandmake docspass (docs regenerated).🤖 Generated with Claude Code
Written with Overlord from https://overlord.qdrant.tech/r/1089/t/7445