Skip to content

Commit 77d3cff

Browse files
committed
NEW: adding required metric definitions for Agentic review tool
1 parent 05a287b commit 77d3cff

File tree

1 file changed

+165
-0
lines changed

1 file changed

+165
-0
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,33 @@
210210
"type": "string",
211211
"description": "AWS Region associated with a metric\n- \"n/a\" if not associated with a region.\n- \"not-set\" if metric is associated with a region, but region is unknown."
212212
},
213+
{
214+
"name": "agenticReviewArtifactSize",
215+
"type": "double",
216+
"description": "Size of the artifact reviewed/scanned in bytes"
217+
},
218+
{
219+
"name": "agenticReviewArtifactType",
220+
"type": "string",
221+
"description": "Type of the artifact requested to review/scan",
222+
"allowedValues": ["FILE", "FOLDER"]
223+
},
224+
{
225+
"name": "agenticReviewCustomRulesCount",
226+
"type": "int",
227+
"description": "Number of custom guide line files present"
228+
},
229+
{
230+
"name": "agenticReviewFindingsCount",
231+
"type": "int",
232+
"description": "Number of findings discovered after running a review/scan on a source code artifact"
233+
},
234+
{
235+
"name": "agenticReviewType",
236+
"type": "string",
237+
"description": "Identifies the type of agentic review triggered",
238+
"allowedValues": ["FULL_REVIEW", "CODE_DIFF_REVIEW"]
239+
},
213240
{
214241
"name": "buildDuration",
215242
"type": "int",
@@ -315,6 +342,16 @@
315342
"applyFix"
316343
]
317344
},
345+
{
346+
"name": "codeReviewId",
347+
"type": "string",
348+
"description": "Unique identifier of an agentic review/scan request, combination of projectId and runId"
349+
},
350+
{
351+
"name": "codeScanName",
352+
"type": "string",
353+
"description": "Unique identifier of project in the workspace in agentic review tool"
354+
},
318355
{
319356
"name": "codeScanServiceInvocationsDuration",
320357
"type": "int",
@@ -2133,6 +2170,11 @@
21332170
"type": "string",
21342171
"description": "Resource subtype of connection start"
21352172
},
2173+
{
2174+
"name": "sourceCodeArtifactId",
2175+
"type": "string",
2176+
"description": "Unique identifier of the uploaded artifact for agentic review"
2177+
},
21362178
{
21372179
"name": "sourceResourceType",
21382180
"type": "string",
@@ -3193,6 +3235,129 @@
31933235
"required": false
31943236
}
31953237
]
3238+
},
3239+
{
3240+
"name": "amazonq_qCodeReviewTool_codeScanSuccess",
3241+
"description": "Captures metrics for successful agentic reviews/scans",
3242+
"metadata": [
3243+
{
3244+
"type": "agenticReviewArtifactType"
3245+
3246+
},
3247+
{
3248+
"type": "agenticReviewArtifactSize"
3249+
3250+
},
3251+
{
3252+
"type": "agenticReviewCustomRulesCount"
3253+
3254+
},
3255+
{
3256+
"type": "agenticReviewFindingsCount",
3257+
"required": true
3258+
},
3259+
{
3260+
"type": "agenticReviewType"
3261+
},
3262+
{
3263+
"type": "codeReviewId",
3264+
"required": true
3265+
},
3266+
{
3267+
"type": "result"
3268+
}
3269+
]
3270+
},
3271+
{
3272+
"name": "amazonq_qCodeReviewTool_codeScanFailed",
3273+
"description": "Captures metrics for failed agentic reviews/scans",
3274+
"metadata": [
3275+
{
3276+
"type": "agenticReviewArtifactType"
3277+
},
3278+
{
3279+
"type": "agenticReviewArtifactSize"
3280+
},
3281+
{
3282+
"type": "agenticReviewType"
3283+
},
3284+
{
3285+
"type": "codeReviewId",
3286+
"required": false
3287+
},
3288+
{
3289+
"type": "codeScanName",
3290+
"required": false
3291+
},
3292+
{
3293+
"type": "reason",
3294+
"required": true
3295+
},
3296+
{
3297+
"type": "result"
3298+
},
3299+
{
3300+
"type": "sourceCodeArtifactId",
3301+
"required": false
3302+
}
3303+
]
3304+
},
3305+
{
3306+
"name": "amazonq_qCodeReviewTool_codeScanTimeout",
3307+
"description": "Captures metrics for timed out agentic reviews/scans",
3308+
"metadata": [
3309+
{
3310+
"type": "agenticReviewArtifactType"
3311+
},
3312+
{
3313+
"type": "agenticReviewArtifactSize"
3314+
},
3315+
{
3316+
"type": "agenticReviewType"
3317+
},
3318+
{
3319+
"type": "codeReviewId",
3320+
"required": true
3321+
},
3322+
{
3323+
"type": "reason"
3324+
},
3325+
{
3326+
"type": "result"
3327+
}
3328+
]
3329+
},
3330+
{
3331+
"name": "amazonq_qCodeReviewTool_createUploadUrlFailed",
3332+
"description": "Captures metrics for artifact upload failures in agentic reviews/scans",
3333+
"metadata": [
3334+
{
3335+
"type": "codeScanName"
3336+
},
3337+
{
3338+
"type": "agenticReviewArtifactSize",
3339+
"required": false
3340+
},
3341+
{
3342+
"type": "agenticReviewArtifactType"
3343+
},
3344+
{
3345+
"type": "reason",
3346+
"required": true
3347+
},
3348+
{
3349+
"type": "result"
3350+
}
3351+
]
3352+
},
3353+
{
3354+
"name": "amazonq_qCodeReviewTool_missingFileOrFolder",
3355+
"description": "Captures metrics for invalid reviews/scans requests",
3356+
"metadata": [
3357+
{
3358+
"type": "result"
3359+
}
3360+
]
31963361
},
31973362
{
31983363
"name": "amazonq_startConversationInvoke",

0 commit comments

Comments
 (0)