[add endpoint] Add cloudos analytics team-summary command for GET /api/v1/analytics/team/summary#365
Draft
danielboloc with Copilot wants to merge 2 commits into
Draft
[add endpoint] Add cloudos analytics team-summary command for GET /api/v1/analytics/team/summary#365danielboloc with Copilot wants to merge 2 commits into
cloudos analytics team-summary command for GET /api/v1/analytics/team/summary#365danielboloc with Copilot wants to merge 2 commits into
Conversation
Copilot
AI
changed the title
[WIP] Update cloudos-cli for GET /api/v1/analytics/team/summary
Add Jun 19, 2026
cloudos analytics team-summary command for GET /api/v1/analytics/team/summary
cloudos analytics team-summary command for GET /api/v1/analytics/team/summarycloudos analytics team-summary command for GET /api/v1/analytics/team/summary
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.
Syncs cloudos-cli with a new API endpoint that returns aggregated team usage analytics (compute hours, job counts, spend) over a date range.
Overview
Adds
cloudos analytics team-summary— a new command group and subcommand wrappingGET /api/v1/analytics/team/summary.JIRA
cloudos analytics team-summarycommandChanges
cloudos_cli/analytics/module:Analyticsdataclass (extendsCloudos) withget_team_summary(team_id, start_date, end_date, granularity)cloudos analytics team-summaryClick command with--team-id(required),--start-date,--end-date,--granularity(optional),--output-format [stdout|json]analyticscommand group in__main__.pysupported-endpoints.jsonmappinganalytics-team-summary→ endpoint metadata2.91.0→2.91.1; adds CHANGELOG entryAcceptance Criteria
Scenario 1 - team-summary returns analytics data to stdout
Expected: JSON with
computeHours,jobCount,spendfields printed to stdout.Scenario 2 - team-summary saves output to file with --output-format json
Expected:
my_summary.jsoncreated with API response body.Scenario 3 - bad API key returns non-zero exit with error message
Expected:
BadRequestExceptionraised, non-zero exit code, error message containing status code.DEV
Proof this feature/patch works in this environment
AZURE
Proof this feature/patch works in this environment
Interactive Analysis
Proof this feature/patch works in this environment