-
Notifications
You must be signed in to change notification settings - Fork 0
Document GitHub Copilot Metrics API deprecation and migration path #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: ewega <[email protected]>
Co-authored-by: ewega <[email protected]>
|
@copilot Use the updated copilot-metrics-research documentatino I shared here |
I don't see the copilot-metrics-research documentation in the repository. Could you please provide the path to the documentation or share it again? I found a reference to |
…strategy - Created copilot_api_schemas.md to define API response schemas for enterprise and user metrics. - Added copilot_implementation_strategy.md outlining the implementation strategy for Copilot at the repo/project level. - Introduced copilot_plugin_spec.md detailing the plugin specifications for collecting and analyzing Copilot usage metrics. - Compiled copilot_research_summary.md summarizing research findings and strategic decisions for the Copilot plugin development.
|
@copilot Ok I have added the correct folder path please use this |
Based on copilot-metrics-research documentation:
- Clearly mark GET /orgs/{org}/copilot/metrics as DEPRECATED (sunset April 2, 2026)
- Document new recommended endpoints (usage metrics reports API)
- Add migration warnings to API client and collectors
- Reference research docs for migration strategy
Co-authored-by: ewega <[email protected]>
- Use relative repository paths instead of absolute paths - Make it clear paths are within the repository - Improve clarity of documentation references Co-authored-by: ewega <[email protected]>
Done! I've updated the documentation based on the copilot-metrics-research folder. Key changes: Critical Finding: The plugin currently uses Migration Path Documented:
All tests pass, code review complete, security scan clean. |
|
@copilot implement the planned changes |
I'll implement the migration to the new Usage Metrics Reports API. This is a significant change involving:
Would you like me to:
Also, should I prioritize:
Please advise on the approach so I can implement it correctly. |
GitHub Copilot Metrics Plugin - Migrate to New Usage Metrics Reports API
Summary
Implementing migration from deprecated Copilot Metrics API to the new Usage Metrics Reports API to avoid service disruption on April 2, 2026 sunset date.
Implementation Status
✅ Completed
🚧 In Progress
API Migration Details
Deprecated (Current):
GET /orgs/{org}/copilot/metrics(sunset April 2, 2026)New (Implementation Target):
GET /orgs/{org}/copilot/metrics/reports/organization-1-day?day=YYYY-MM-DDGET /orgs/{org}/copilot/metrics/reports/organization-28-day/latestKey Changes:
Testing
References
copilot-metrics-research/directorycopilot-metrics-research/copilot_implementation_strategy.mdOriginal prompt
Start implementation. Please make sure the PR you create merges into 001-copilot-metrics-plugin
The user has attached the following file paths as relevant context:
- AGENTS.md
- AGENTS.md
[Chronological Review: The conversation began with the user noting the deprecation of the GitHub Copilot Metrics API and requesting an update to the copilot-metrics-research to connect to the new API. The user then asked for a plan to update the GitHub Copilot Metrics plugin and adapt the dashboard accordingly. The user expressed uncertainty about the approach for the MVP and inquired about extracting JSON files from the new APIs. After confirming the approach, the user requested to start the implementation and specified that the PR should merge into the 001-copilot-metrics-plugin branch.][Intent Mapping:
[Technical Inventory:
[Code Archaeology: No specific files or code changes have been discussed yet, but the focus is on updating the copilot-metrics-research project and creating a new PR.]
[Progress Assessment:
[Context Validation: All necessary context for continuing the work on the GitHub Copilot Metrics plugin update is captured, including user requests and technical requirements.]
[Recent Commands Analysis:
1. Conversation Overview: - Primary Objectives: - "Can we update copilot-metrics-research to build the connection pipeline based off the suggested API?" - "Please build a plan to update the GitHub Copilot Metrics plugin to get data from the new APIs, with a re-adapted dashboard." - "Start implementation. Please make sure the PR you create merges into 001-copilot-metrics-plugin." - Session Context: The conversation focused on transitioning from a deprecated API to a new one, planning the update, and initiating the implementation. - User Intent Evolution: The user moved from identifying the need for an update to requesting a detailed plan and finally instructing to start the implementation.- Technical Foundation:
- GitHub Copilot Metrics API: The legacy API is being deprecated; the new API is to be used for data retrieval.
- JSON: The new APIs return data in JSON format, necessitating extraction and processing.
- copilot-metrics-research: The project that requires updates to connect to the new API.
- 001-copilot-metrics-plugin: The target branch for merging the new implementation.
- Codebase Status:
- No specific files have been discussed yet, but the focus is on updating the copilot-metrics-research project.
- Problem Resolution:
- Issues Encountered: The deprecation of the old API necessitates an update.
- Solutions Implemented: The user has outlined a plan to transition to the new API and adapt the dashboard.
- Debugging Context: No ongoing troubleshooting has been mentioned yet.
- Lessons Learned: The importance of adapting to API changes and handling JSON data extraction.
- Progress Tracking:
- Completed Tasks: User confirmed the need for an update and agr...
Created from VS Code.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.