Skip to content

Commit 4cff9a9

Browse files
authored
telemetry: add amazonq_utgGenerateTests metric with types aws#934
## Problem amazonq_utgGenerateTests metric is in two different aws toolkit repos, jetbrains and vscode ## Solution Refactoring by moving amazonq_utgGenerateTests metric with types to this common file, which eliminates redundancy between the other toolkit repos
1 parent 86f3f40 commit 4cff9a9

File tree

1 file changed

+151
-0
lines changed

1 file changed

+151
-0
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
{
22
"types": [
3+
{
4+
"name": "acceptedCharactersCount",
5+
"type": "int",
6+
"description": "The number of accepted characters"
7+
},
8+
{
9+
"name": "acceptedCount",
10+
"type": "int",
11+
"description": "The number of accepted cases"
12+
},
13+
{
14+
"name": "acceptedLinesCount",
15+
"type": "int",
16+
"description": "The number of accepted lines of code"
17+
},
318
{
419
"name": "action",
520
"type": "string",
@@ -178,11 +193,21 @@
178193
"type": "int",
179194
"description": "The amount of time required for the build to complete (in seconds)."
180195
},
196+
{
197+
"name": "buildPayloadBytes",
198+
"type": "int",
199+
"description": "The uncompressed payload size in bytes of the source files in customer project context"
200+
},
181201
{
182202
"name": "buildSystemVersion",
183203
"type": "string",
184204
"description": "The build system version on the user's machine"
185205
},
206+
{
207+
"name": "buildZipFileBytes",
208+
"type": "int",
209+
"description": "The compressed payload size of source files in bytes of customer project context sent"
210+
},
186211
{
187212
"name": "causedBy",
188213
"type": "string",
@@ -1274,6 +1299,21 @@
12741299
"type": "string",
12751300
"description": "Application framework being used"
12761301
},
1302+
{
1303+
"name": "generatedCharactersCount",
1304+
"type": "int",
1305+
"description": "Number of characters of code generated"
1306+
},
1307+
{
1308+
"name": "generatedCount",
1309+
"type": "int",
1310+
"description": "The number of generated cases"
1311+
},
1312+
{
1313+
"name": "generatedLinesCount",
1314+
"type": "int",
1315+
"description": "The number of generated lines of code"
1316+
},
12771317
{
12781318
"name": "generateFailure",
12791319
"type": "string",
@@ -1302,6 +1342,11 @@
13021342
"type": "boolean",
13031343
"description": "A time based filter was used"
13041344
},
1345+
{
1346+
"name": "hasUserPromptSupplied",
1347+
"type": "boolean",
1348+
"description": "True if user supplied prompt message as input else false"
1349+
},
13051350
{
13061351
"name": "httpMethod",
13071352
"type": "string",
@@ -1390,6 +1435,11 @@
13901435
"type": "boolean",
13911436
"description": "Whether this was an individual point or an aggregation of points."
13921437
},
1438+
{
1439+
"name": "isCodeBlockSelected",
1440+
"type": "boolean",
1441+
"description": "True if user selected code snippet as input else false"
1442+
},
13931443
{
13941444
"name": "isReAuth",
13951445
"type": "boolean",
@@ -1400,6 +1450,21 @@
14001450
"type": "boolean",
14011451
"description": "Whether or not the operation was a retry"
14021452
},
1453+
{
1454+
"name": "isSupportedLanguage",
1455+
"type": "boolean",
1456+
"description": "Indicate if the language is supported"
1457+
},
1458+
{
1459+
"name": "jobGroup",
1460+
"type": "string",
1461+
"description": "Job group name used in the operation"
1462+
},
1463+
{
1464+
"name": "jobId",
1465+
"type": "string",
1466+
"description": "Job id used in the operation"
1467+
},
14031468
{
14041469
"name": "lambdaArchitecture",
14051470
"type": "string",
@@ -2245,6 +2310,92 @@
22452310
}
22462311
]
22472312
},
2313+
{
2314+
"name": "amazonq_utgGenerateTests",
2315+
"description": "Client side invocation of the AmazonQ Unit Test Generation",
2316+
"metadata": [
2317+
{
2318+
"type": "acceptedCharactersCount",
2319+
"required": false
2320+
},
2321+
{
2322+
"type": "acceptedCount",
2323+
"required": false
2324+
},
2325+
{
2326+
"type": "acceptedLinesCount",
2327+
"required": false
2328+
},
2329+
{
2330+
"type": "artifactsUploadDuration",
2331+
"required": false
2332+
},
2333+
{
2334+
"type": "buildPayloadBytes",
2335+
"required": false
2336+
},
2337+
{
2338+
"type": "buildZipFileBytes",
2339+
"required": false
2340+
},
2341+
{
2342+
"type": "credentialStartUrl",
2343+
"required": false
2344+
},
2345+
{
2346+
"type": "cwsprChatProgrammingLanguage"
2347+
},
2348+
{
2349+
"type": "generatedCharactersCount",
2350+
"required": false
2351+
},
2352+
{
2353+
"type": "generatedCount",
2354+
"required": false
2355+
},
2356+
{
2357+
"type": "generatedLinesCount",
2358+
"required": false
2359+
},
2360+
{
2361+
"type": "hasUserPromptSupplied"
2362+
},
2363+
{
2364+
"type": "isCodeBlockSelected",
2365+
"required": false
2366+
},
2367+
{
2368+
"type": "isSupportedLanguage"
2369+
},
2370+
{
2371+
"type": "jobGroup",
2372+
"required": false
2373+
},
2374+
{
2375+
"type": "jobId",
2376+
"required": false
2377+
},
2378+
{
2379+
"type": "perfClientLatency",
2380+
"required": false
2381+
},
2382+
{
2383+
"type": "reason",
2384+
"required": false
2385+
},
2386+
{
2387+
"type": "reasonDesc",
2388+
"required": false
2389+
},
2390+
{
2391+
"type": "result"
2392+
},
2393+
{
2394+
"type": "source",
2395+
"required": false
2396+
}
2397+
]
2398+
},
22482399
{
22492400
"name": "amazonq_viewChatPanel",
22502401
"description": "Captures if Q chat panel is successfully viewed or not",

0 commit comments

Comments
 (0)