|
210 | 210 | "type": "string", |
211 | 211 | "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." |
212 | 212 | }, |
| 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 | + }, |
213 | 240 | { |
214 | 241 | "name": "buildDuration", |
215 | 242 | "type": "int", |
|
315 | 342 | "applyFix" |
316 | 343 | ] |
317 | 344 | }, |
| 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 | + }, |
318 | 355 | { |
319 | 356 | "name": "codeScanServiceInvocationsDuration", |
320 | 357 | "type": "int", |
|
2133 | 2170 | "type": "string", |
2134 | 2171 | "description": "Resource subtype of connection start" |
2135 | 2172 | }, |
| 2173 | + { |
| 2174 | + "name": "sourceCodeArtifactId", |
| 2175 | + "type": "string", |
| 2176 | + "description": "Unique identifier of the uploaded artifact for agentic review" |
| 2177 | + }, |
2136 | 2178 | { |
2137 | 2179 | "name": "sourceResourceType", |
2138 | 2180 | "type": "string", |
|
3193 | 3235 | "required": false |
3194 | 3236 | } |
3195 | 3237 | ] |
| 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 | + ] |
3196 | 3361 | }, |
3197 | 3362 | { |
3198 | 3363 | "name": "amazonq_startConversationInvoke", |
|
0 commit comments