Comments (4)
could potentially combine it with https://github.com/marketplace/actions/copilot-metrics-retention
from copilot-metrics-viewer.
(e.g. we currently periodically merge the results into a larger json file with more historical data
Offtopic: How do you archive the data? Do you use an open source tool or do you just call the api everyday and save its data?
from copilot-metrics-viewer.
Thanks for your feedback @billimek
support an external datasource where the API results are collected and persisted for a longer historical view.
This is something that is being considered for a next phase.
from copilot-metrics-viewer.
Offtopic: How do you archive the data? Do you use an open source tool or do you just call the api everyday and save its data?
It's just a call to the API and merging it with an existing json file. This is how we're now handling this, via a GitHub action workflow, to override the original mocked data json as an interim way to have longer-lived persisted data:
DATE=$(date +"%Y%m%d")
curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.COPILOT_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/orgs/<our org>/copilot/usage > data_${DATE}.json
jq -s 'add | unique_by(.day) | sort_by(.day)' data_${DATE}.json src/assets/copilot_metrics_response_sample.json > data_merged_${DATE}.json && mv data_merged_${DATE}.json src/assets/copilot_metrics_response_sample.json
from copilot-metrics-viewer.
Related Issues (20)
- Support for date range pickers
- Logo link is broken
- Support for connecting via GitHub App HOT 3
- Push up support path in the README HOT 1
- consider building and hosting docker image HOT 1
- Configurable Variables HOT 2
- Percentage calculations seem to be off HOT 3
- Update access rights for github token? HOT 3
- README Seat Analysis image update HOT 3
- can 28 days be changed? or expanded? HOT 2
- Is Seat count available in Enterprise metrics HOT 6
- Data Refresh Rate HOT 3
- Filtering on projects, developers, teams HOT 3
- support for multiple organizations/enterprise? swith from one org to other orgs, even such orgs are not within one Githu Enterprise.
- What is the relation between total_Active_users to the active_users ? HOT 4
- ghcr.io image HOT 1
- Data quality of the usage data HOT 4
- NaN Results for Copilot Usage Metrics HOT 2
- Team slice HOT 1
- Running from docker HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from copilot-metrics-viewer.