Fix copilot-metrics.json to match real API shape and clarify Metrics vs Usage Metrics API#16
Draft
Fix copilot-metrics.json to match real API shape and clarify Metrics vs Usage Metrics API#16
Conversation
… Usage API in course materials Co-authored-by: timothywarner <12627911+timothywarner@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update Copilot metrics API for usage insights
Fix copilot-metrics.json to match real API shape and clarify Metrics vs Usage Metrics API
Mar 4, 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.
The
copilot-metrics.jsondemo file contained fictional fields (suggestion_acceptance_rate,time_saved_per_month_hours, etc.) with invalid JSON comments — nothing matching what the actual API returns. Course materials also conflated the legacy Copilot Metrics API with the new Copilot Usage Metrics API and didn't address the common question of whether chat data is included.copilot-metrics.jsonReplaced with a valid JSON sample that mirrors the real
GET /orgs/{org}/copilot/metricsresponse shape:[{ "date": "2026-03-03", "total_active_users": 37, "copilot_ide_code_completions": { ... }, "copilot_ide_chat": { "_note": "YES, chat data is included...", "total_chats": 187, ... }, "copilot_dotcom_chat": { "_note": "GitHub.com browser chat — absent from new Usage Metrics API", ... }, "copilot_dotcom_pull_requests": { ... } }]_demo_noteand_notefields serve as inline teaching annotations without requiring comment syntax.COURSE_PLAN_MAR_2026.md/orgs/{org}/copilot/metrics/enterprises/{enterprise}/copilot/metrics/reports/copilot_dotcom_chatcopilot_ide_chat+copilot_dotcom_chat); the new API covers IDE chat but drops GitHub.com browser chat.README.mdUpdated the segment 4 bullet to reference both APIs and the Feb 27 GA date.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.