You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+89-80Lines changed: 89 additions & 80 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,36 +4,20 @@ With the release of the latest [GitHub Copilot Metrics API](https://github.com/o
4
4
5
5
However, many organizations that we work with already have established Power BI teams. If your organization is **already using Power BI, please read on!**
6
6
7
+
## New Features
8
+
- New metrics for Pull Request summaries and Copilot Chat on GitHub.com.
9
+
- Clarity on code completions and Copilot Chat usage in IDEs.
10
+
- User engagement summaries updated daily.
11
+
- Custom model slicing support, coming soon!
12
+
- Data can be aggregated by enterprise, organization or team.
13
+
7
14
Located in the `./samples` directory you'll find sample JSON and PBIX files used to create the *new* dashboard below.
8
-
> Note: The legacy GitHub Copilot Usage API is still available and can be used with the legacy PBIX file. For instructions, see [Usage_API.md](USAGE_API.md).
15
+
> Note: The legacy GitHub Copilot Usage API is still available and can be used with the `GitHub Copilot - Telemetry Sample (Usage).pbix` file. For instructions, see [Usage_API.md](USAGE_API.md).
9
16
10
-

17
+

11
18
12
19
## Setup
13
20
14
-
### Test: Modify the local JSON data source
15
-
> Note: This example provided a proof of concept for loading metrics data and requires an exported JSON file. If you have access to the REST API you can configure the **Source** accordingly.
16
-
17
-
1. Download and open the sample `GitHub Copilot - Telemetry Sample (Metrics with KPIs).pbix` file.
18
-
2. The file contains three data sources on the right hand side.
| GH Copilot - summary | Daily summary of active and egnaged user. |
29
-
30
-
3. Open the **Power Query Editor** by clicking **Transform data** in the top-menu and selecting **Tranform data**.
31
-
4. Click on **source** query in the left-menu, then under APPLIED STEPS in the right-menu click the gear (settings) icon, selecting your JSON file and clicking **OK**.
32
-

33
-
5. Click **Close and Apply** in the top-left of the **Power Query Editor**.
34
-
6. On the **Report View** page click **Refresh** to load the new data into your dashboard.
35
-
7.**Happy Customizing!**
36
-
37
21
### Connect to Metrics API
38
22
> Notes: The REST API provides metrics for the previous 28 days and is refreshed daily with data from the previous day. Please ensure you are using the latest version of the [REST API](https://docs.github.com/en/enterprise-cloud@latest/rest/copilot/copilot-metrics).
39
23
@@ -43,67 +27,92 @@ In order to connect we'll need to generate a token and link to your metrics data
43
27
3. Follow the instructions below to generate a token with permissions to access the API:
44
28
[REST API endpoints for GitHub Copilot usage metrics - GitHub Docs](https://docs.github.com/en/rest/copilot/copilot-usage)
45
29
>**IMPORTANT: Do not share this token and ensure you follow you organizations security policies.**
46
-
4. Open the **Power Query Editor** by clicking **Transform data** in the top-menu and selecting **Tranform data**.
47
-
5. Click on **source** in the left-menu
48
-
6. Select **Advanced editor**.
49
-

50
-
7. Replace the first 2 lines with following, ensure to replace <YOUR-TOKEN> and <ORG> with the values from step 1 and 2.
30
+
4. The file contains the following data sources, descriptions are inlcuded below.
| GH Copilot - summary | Daily summary of active and engaged users. |
41
+
5. Open the **Power Query Editor** by clicking **Transform data** in the top-menu and selecting **Tranform data**.
42
+
6. Click on **source** in the left-menu.
43
+
7. Select **Advanced editor**.
44
+

45
+
8. Replace the first 2 lines with following, ensure to replace `<YOUR-TOKEN>` along with the relevant `<ENTERPRISE>`, `<ORG>` and `<TEAM_SLUG>` with the values from step 2.
51
46
52
-
**Enterprise**
53
-
```powerquery
54
-
let
55
-
// Replace <YOUR-TOKEN> and <ENTERPRISE> with your actual token and enterprise name.
8. Your Power Query will look something like this:
102
-

99
+

103
100
9. Click **OK** to close the editor and select `Anonymous` authentication if prompted.
104
101
10. Click **Close and Apply** in the top-left of the **Power Query Editor**.
105
102
11. On the **Report View** page click **Refresh** to load the new data into your dashboard.
106
103
104
+
### Test: Modify the local JSON data source
105
+
> Note: This example provided a proof of concept for loading metrics data and requires an exported JSON file. If you have access to the REST API you can configure the **Source** accordingly.
106
+
107
+
1. Download and open the sample `GitHub Copilot - Telemetry Sample (Metrics with KPIs).pbix` file.
108
+
2. Open the **Power Query Editor** by clicking **Transform data** in the top-menu and selecting **Tranform data**.
109
+
3. Click on **source** query in the left-menu
110
+
4. In the right-menu under **APPLIED STEPS** click the gear (settings) icon, selecting your JSON file and clicking **OK**.
111
+

112
+
5. Click **Close and Apply** in the top-left of the **Power Query Editor**.
113
+
6. On the **Report View** page click **Refresh** to load the new data into your dashboard.
114
+
7. **Happy Customizing!**
115
+
107
116
## Publishing
108
117
If you need help deploying or publishing this script, please see: [Publish README](/publish/README.md)
Copy file name to clipboardExpand all lines: USAGE_API.md
+23-24Lines changed: 23 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,30 +4,9 @@
4
4
5
5
Located in the `./samples` directory you'll find sample JSON and PBIX files used to create the dashboard below.
6
6
7
-

7
+

8
8
9
9
## Setup
10
-
11
-
### Test: Modify the local JSON data source
12
-
> Note: This example provided a proof of concept for loading metrics data and requires an exported JSON file. If you have access to the REST API you can configure the **Source** accordingly.
13
-
14
-
1. Download and open the sample `GitHub Copilot - Telemetry Sample (Usage).pbix` file.
15
-
2. The file contains three data sources on the right hand side.
| Last Refresh | Used to display the data time of data refresh on the top-right corner of the dashboard. |
22
-
23
-
3. Open the **Power Query Editor** by right clicking the `GH Copilot - Details` and selecting **Edit query**.
24
-
4. Modify the **Source** step by clicking the settings icon, selecting your JSON file and clicking **OK**.
25
-

26
-
6. Repeat steps 3 and 4 for the `GH Copilot - Summary`**Source**.
27
-
7. Click **Close and Apply** in the top-left of the **Power Query Editor**.
28
-
8. On the **Report View** page click **Refresh** to load the new data into your dashboard.
29
-
9.**Happy Customizing!**
30
-
31
10
### Connect to Metrics API
32
11
> Notes: The REST API provides metrics for the previous 28 days and is refreshed daily with data from the previous day. This is currently in beta, so please ensure you are using the latest version of the [REST API](https://docs.github.com/en/rest/copilot/copilot-usage).
33
12
@@ -39,7 +18,7 @@ In order to connect we'll need to generate a token and link to your metrics data
39
18
>**IMPORTANT: Do not share this token and ensure you follow you organizations security policies.**
40
19
4. Open the **Power Query Editor** by right clicking the `GH Copilot - Details` and selecting **Edit query**.
41
20
5. Select **Advanced editor**.
42
-

21
+

43
22
6. Replace the first 2 lines with following, ensure to replace <YOUR-TOKEN> and <ORG> with the values from step 1 and 2.
44
23
45
24
**Organization**
@@ -67,12 +46,32 @@ In order to connect we'll need to generate a token and link to your metrics data
7. Your Power Query will look something like this:
70
-

49
+

71
50
8. Click **OK** to close the editor and select `Anonymous` authentication if prompted.
72
51
9. Repeat steps 4 and 8 for the `GH Copilot - Summary`**Source**.
73
52
10. Click **Close and Apply** in the top-left of the **Power Query Editor**.
74
53
11. On the **Report View** page click **Refresh** to load the new data into your dashboard.
75
54
55
+
### Modify to use a local JSON file
56
+
> Note: This example provided a proof of concept for loading metrics data and requires an exported JSON file. If you have access to the REST API you can configure the **Source** accordingly.
57
+
58
+
1. Download and open the sample `GitHub Copilot - Telemetry Sample (Usage).pbix` file.
59
+
2. The file contains three data sources on the right hand side.
0 commit comments