Skip to content

Commit 9cd736d

Browse files
committed
Add sample metrics response JSON for Copilot usage
1 parent 5845eab commit 9cd736d

File tree

2 files changed

+154
-1
lines changed

2 files changed

+154
-1
lines changed

samples/copilot_metrics_response_sample.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
[
2+
{
3+
"date": "2024-06-24",
4+
"total_active_users": 24,
5+
"total_engaged_users": 20,
6+
"copilot_ide_code_completions": {
7+
"total_engaged_users": 20,
8+
"languages": [
9+
{
10+
"name": "python",
11+
"total_engaged_users": 10
12+
},
13+
{
14+
"name": "ruby",
15+
"total_engaged_users": 10
16+
}
17+
],
18+
"editors": [
19+
{
20+
"name": "vscode",
21+
"total_engaged_users": 13,
22+
"models": [
23+
{
24+
"name": "default",
25+
"is_custom_model": false,
26+
"custom_model_training_date": null,
27+
"total_engaged_users": 13,
28+
"languages": [
29+
{
30+
"name": "python",
31+
"total_engaged_users": 6,
32+
"total_code_suggestions": 249,
33+
"total_code_acceptances": 123,
34+
"total_code_lines_suggested": 225,
35+
"total_code_lines_accepted": 135
36+
},
37+
{
38+
"name": "ruby",
39+
"total_engaged_users": 7,
40+
"total_code_suggestions": 496,
41+
"total_code_acceptances": 253,
42+
"total_code_lines_suggested": 520,
43+
"total_code_lines_accepted": 270
44+
}
45+
]
46+
}
47+
]
48+
},
49+
{
50+
"name": "neovim",
51+
"total_engaged_users": 7,
52+
"models": [
53+
{
54+
"name": "a-custom-model",
55+
"is_custom_model": true,
56+
"custom_model_training_date": "2024-02-01",
57+
"languages": [
58+
{
59+
"name": "typescript",
60+
"total_engaged_users": 3,
61+
"total_code_suggestions": 112,
62+
"total_code_acceptances": 56,
63+
"total_code_lines_suggested": 143,
64+
"total_code_lines_accepted": 61
65+
},
66+
{
67+
"name": "go",
68+
"total_engaged_users": 4,
69+
"total_code_suggestions": 132,
70+
"total_code_acceptances": 67,
71+
"total_code_lines_suggested": 154,
72+
"total_code_lines_accepted": 72
73+
}
74+
]
75+
}
76+
]
77+
}
78+
]
79+
},
80+
"copilot_ide_chat": {
81+
"total_engaged_users": 13,
82+
"editors": [
83+
{
84+
"name": "vscode",
85+
"total_engaged_users": 13,
86+
"models": [
87+
{
88+
"name": "default",
89+
"is_custom_model": false,
90+
"custom_model_training_date": null,
91+
"total_engaged_users": 12,
92+
"total_chats": 45,
93+
"total_chat_insertion_events": 12,
94+
"total_chat_copy_events": 16
95+
},
96+
{
97+
"name": "a-custom-model",
98+
"is_custom_model": true,
99+
"custom_model_training_date": "2024-02-01",
100+
"total_engaged_users": 1,
101+
"total_chats": 10,
102+
"total_chat_insertion_events": 11,
103+
"total_chat_copy_events": 3
104+
}
105+
]
106+
}
107+
]
108+
},
109+
"copilot_dotcom_chat": {
110+
"total_engaged_users": 14,
111+
"models": [
112+
{
113+
"name": "default",
114+
"is_custom_model": false,
115+
"custom_model_training_date": null,
116+
"total_engaged_users": 14,
117+
"total_chats": 38
118+
}
119+
]
120+
},
121+
"copilot_dotcom_pull_requests": {
122+
"total_engaged_users": 12,
123+
"repositories": [
124+
{
125+
"name": "demo/repo1",
126+
"total_engaged_users": 8,
127+
"models": [
128+
{
129+
"name": "default",
130+
"is_custom_model": false,
131+
"custom_model_training_date": null,
132+
"total_pr_summaries_created": 6,
133+
"total_engaged_users": 8
134+
}
135+
]
136+
},
137+
{
138+
"name": "demo/repo2",
139+
"total_engaged_users": 4,
140+
"models": [
141+
{
142+
"name": "a-custom-model",
143+
"is_custom_model": true,
144+
"custom_model_training_date": "2024-02-01",
145+
"total_pr_summaries_created": 10,
146+
"total_engaged_users": 4
147+
}
148+
]
149+
}
150+
]
151+
}
152+
}
153+
]

0 commit comments

Comments
 (0)