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
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,10 @@ Located in the `./samples` directory you'll find sample JSON and PBIX files use
7
7
8
8

9
9
10
-
## Modify the data source
10
+
## Modify the local JSON data source
11
11
> 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.
12
12
13
-
1. Download and open the sample `GitHub Copilot - Telemetry Sample (DM).pbix` file
13
+
1. Download and open the sample `GitHub Copilot - Telemetry Sample (DM).pbix` file.
14
14
2. The file contains three data sources on the right hand side.
15
15
16
16
| Name | Description |
@@ -20,7 +20,7 @@ Located in the `./samples` directory you'll find sample JSON and PBIX files use
20
20
| Last Refresh | Used to display the data time of data refresh on the top-right corner of the dashboard. |
21
21
22
22
3. Open the **Power Query Editor** by right clicking the `GH Copilot - Details` and selecting **Edit query**.
23
-
4. Modify the **Source** step by clicking the settings icon, selecting your JSON file and clicking **OK**.
23
+
4. Modify the **Source** step by clicking the settings icon, selecting your JSON file and clicking **OK**.
24
24

25
25
6. Repeat steps 3 and 4 for the `GH Copilot - Summary`**Source**.
26
26
7. Click **Close and Apply** in the top-left of the **Power Query Editor**.
@@ -31,16 +31,17 @@ Located in the `./samples` directory you'll find sample JSON and PBIX files use
31
31
> Notes: The REST API provides metrics for the previous 28 days and is refreshed daily with the previous days data. 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).
32
32
33
33
In order to connect we'll need to generate a token and link to your metrics data:
34
-
1. Determine if you'll be using the `Enterprise`: **/enterprises/<ENTERPRISE>/copilot/usage** or `Organization`: **/orgs/<ORG>/copilot/usage** URL.
35
-
2. Follow the instructions below to generate a token with permissions to access the API:
34
+
1. Download and open the sample `GitHub Copilot - Telemetry Sample (DM).pbix` file.
35
+
2. Determine if you'll be using the `Enterprise` or `Organization` URL.
36
+
3. Follow the instructions below to generate a token with permissions to access the API:
36
37
[REST API endpoints for GitHub Copilot usage metrics - GitHub Docs](https://docs.github.com/en/rest/copilot/copilot-usage)
38
+
>**IMPORTANT: Do not share this token and ensure you follow you organizations security policies.**
37
39
4. Open the **Power Query Editor** by right clicking the `GH Copilot - Details` and selecting **Edit query**.
38
-
5. Select **Advanced editor**.
39
-
40
+
5. Select **Advanced editor**.
40
41

41
-
6. Replace lines 1 and 2 with following, ensure to replace <YOUR-TOKEN> and <ORG> with your values.
42
-
43
-
**Organization**
42
+
6. Replace the first 2 lines with following, ensure to replace <YOUR-TOKEN> and <ORG> with the values from step 1 and 2.
43
+
44
+
**Organization**
44
45
```powerquery
45
46
let
46
47
// Replace <YOUR-TOKEN> and <ORG> with your actual token and enterprise name.
@@ -52,7 +53,7 @@ In order to connect we'll need to generate a token and link to your metrics data
0 commit comments