|
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 | | - }, |
240 | 213 | { |
241 | 214 | "name": "buildDuration", |
242 | 215 | "type": "int", |
|
342 | 315 | "applyFix" |
343 | 316 | ] |
344 | 317 | }, |
| 318 | + { |
| 319 | + "name": "codeReviewArtifactId", |
| 320 | + "type": "string", |
| 321 | + "description": "Unique identifier of the uploaded artifact for agentic review" |
| 322 | + }, |
| 323 | + { |
| 324 | + "name": "codeReviewArtifactSize", |
| 325 | + "type": "double", |
| 326 | + "description": "Size of the artifact reviewed/scanned in bytes" |
| 327 | + }, |
| 328 | + { |
| 329 | + "name": "codeReviewArtifactType", |
| 330 | + "type": "string", |
| 331 | + "description": "Type of the artifact requested for code review", |
| 332 | + "allowedValues": ["FILE", "FOLDER"] |
| 333 | + }, |
| 334 | + { |
| 335 | + "name": "codeReviewCustomRulesCount", |
| 336 | + "type": "int", |
| 337 | + "description": "Number of custom guide line files present in the code review" |
| 338 | + }, |
| 339 | + { |
| 340 | + "name": "codeReviewFindingsCount", |
| 341 | + "type": "int", |
| 342 | + "description": "Number of findings discovered after running a code review on a source code artifact" |
| 343 | + }, |
345 | 344 | { |
346 | 345 | "name": "codeReviewId", |
347 | 346 | "type": "string", |
348 | | - "description": "Unique identifier of an agentic review/scan request, combination of projectId and runId" |
| 347 | + "description": "Unique identifier of an code review/scan request, combination of projectId and runId" |
349 | 348 | }, |
350 | 349 | { |
351 | | - "name": "codeScanName", |
| 350 | + "name": "codeReviewScanName", |
352 | 351 | "type": "string", |
353 | | - "description": "Unique identifier of project in the workspace in agentic review tool" |
| 352 | + "description": "Unique identifier of project in the workspace in code review tool" |
| 353 | + }, |
| 354 | + { |
| 355 | + "name": "codeReviewType", |
| 356 | + "type": "string", |
| 357 | + "description": "Identifies the type of code review triggered", |
| 358 | + "allowedValues": ["FULL_REVIEW", "CODE_DIFF_REVIEW"] |
354 | 359 | }, |
355 | 360 | { |
356 | 361 | "name": "codeScanServiceInvocationsDuration", |
|
2170 | 2175 | "type": "string", |
2171 | 2176 | "description": "Resource subtype of connection start" |
2172 | 2177 | }, |
2173 | | - { |
2174 | | - "name": "sourceCodeArtifactId", |
2175 | | - "type": "string", |
2176 | | - "description": "Unique identifier of the uploaded artifact for agentic review" |
2177 | | - }, |
2178 | 2178 | { |
2179 | 2179 | "name": "sourceResourceType", |
2180 | 2180 | "type": "string", |
|
3236 | 3236 | } |
3237 | 3237 | ] |
3238 | 3238 | }, |
3239 | | - { |
3240 | | - "name": "amazonq_qCodeReviewTool_codeScanSuccess", |
3241 | | - "description": "Captures metrics for successful agentic reviews/scans", |
| 3239 | + { |
| 3240 | + "name": "amazonq_qCodeReviewTool_codeScanFailed", |
| 3241 | + "description": "Captures metrics for failed agentic reviews/scans", |
3242 | 3242 | "metadata": [ |
3243 | 3243 | { |
3244 | | - "type": "agenticReviewArtifactType" |
3245 | | - |
| 3244 | + "type": "codeReviewArtifactId", |
| 3245 | + "required": false |
| 3246 | + }, |
| 3247 | + { |
| 3248 | + "type": "codeReviewArtifactSize" |
3246 | 3249 | }, |
3247 | 3250 | { |
3248 | | - "type": "agenticReviewArtifactSize" |
3249 | | - |
| 3251 | + "type": "codeReviewArtifactType" |
3250 | 3252 | }, |
3251 | 3253 | { |
3252 | | - "type": "agenticReviewCustomRulesCount" |
3253 | | - |
| 3254 | + "type": "codeReviewCustomRulesCount" |
3254 | 3255 | }, |
3255 | 3256 | { |
3256 | | - "type": "agenticReviewFindingsCount", |
3257 | | - "required": true |
| 3257 | + "type": "codeReviewId", |
| 3258 | + "required": false |
3258 | 3259 | }, |
3259 | 3260 | { |
3260 | | - "type": "agenticReviewType" |
| 3261 | + "type": "codeReviewScanName", |
| 3262 | + "required": false |
3261 | 3263 | }, |
3262 | 3264 | { |
3263 | | - "type": "codeReviewId", |
| 3265 | + "type": "codeReviewType" |
| 3266 | + }, |
| 3267 | + { |
| 3268 | + "type": "reason", |
3264 | 3269 | "required": true |
3265 | 3270 | }, |
3266 | 3271 | { |
|
3269 | 3274 | ] |
3270 | 3275 | }, |
3271 | 3276 | { |
3272 | | - "name": "amazonq_qCodeReviewTool_codeScanFailed", |
3273 | | - "description": "Captures metrics for failed agentic reviews/scans", |
| 3277 | + "name": "amazonq_qCodeReviewTool_codeScanSuccess", |
| 3278 | + "description": "Captures metrics for successful agentic reviews/scans", |
3274 | 3279 | "metadata": [ |
3275 | 3280 | { |
3276 | | - "type": "agenticReviewArtifactType" |
3277 | | - }, |
3278 | | - { |
3279 | | - "type": "agenticReviewArtifactSize" |
| 3281 | + "type": "codeReviewArtifactSize" |
3280 | 3282 | }, |
3281 | 3283 | { |
3282 | | - "type": "agenticReviewType" |
| 3284 | + "type": "codeReviewArtifactType" |
3283 | 3285 | }, |
3284 | 3286 | { |
3285 | | - "type": "codeReviewId", |
3286 | | - "required": false |
| 3287 | + "type": "codeReviewCustomRulesCount" |
3287 | 3288 | }, |
3288 | 3289 | { |
3289 | | - "type": "codeScanName", |
3290 | | - "required": false |
| 3290 | + "type": "codeReviewFindingsCount", |
| 3291 | + "required": true |
3291 | 3292 | }, |
3292 | 3293 | { |
3293 | | - "type": "reason", |
| 3294 | + "type": "codeReviewId", |
3294 | 3295 | "required": true |
3295 | 3296 | }, |
3296 | 3297 | { |
3297 | | - "type": "result" |
| 3298 | + "type": "codeReviewType" |
3298 | 3299 | }, |
3299 | 3300 | { |
3300 | | - "type": "sourceCodeArtifactId", |
3301 | | - "required": false |
| 3301 | + "type": "result" |
3302 | 3302 | } |
3303 | 3303 | ] |
3304 | 3304 | }, |
|
3307 | 3307 | "description": "Captures metrics for timed out agentic reviews/scans", |
3308 | 3308 | "metadata": [ |
3309 | 3309 | { |
3310 | | - "type": "agenticReviewArtifactType" |
| 3310 | + "type": "codeReviewArtifactSize" |
3311 | 3311 | }, |
3312 | 3312 | { |
3313 | | - "type": "agenticReviewArtifactSize" |
| 3313 | + "type": "codeReviewArtifactType" |
3314 | 3314 | }, |
3315 | 3315 | { |
3316 | | - "type": "agenticReviewType" |
| 3316 | + "type": "codeReviewCustomRulesCount" |
3317 | 3317 | }, |
3318 | 3318 | { |
3319 | 3319 | "type": "codeReviewId", |
3320 | 3320 | "required": true |
3321 | 3321 | }, |
| 3322 | + { |
| 3323 | + "type": "codeReviewType" |
| 3324 | + }, |
3322 | 3325 | { |
3323 | 3326 | "type": "reason" |
3324 | 3327 | }, |
|
3332 | 3335 | "description": "Captures metrics for artifact upload failures in agentic reviews/scans", |
3333 | 3336 | "metadata": [ |
3334 | 3337 | { |
3335 | | - "type": "codeScanName" |
| 3338 | + "type": "codeReviewArtifactSize", |
| 3339 | + "required": false |
3336 | 3340 | }, |
3337 | 3341 | { |
3338 | | - "type": "agenticReviewArtifactSize", |
3339 | | - "required": false |
| 3342 | + "type": "codeReviewArtifactType" |
3340 | 3343 | }, |
3341 | 3344 | { |
3342 | | - "type": "agenticReviewArtifactType" |
| 3345 | + "type": "codeReviewScanName" |
3343 | 3346 | }, |
3344 | 3347 | { |
3345 | 3348 | "type": "reason", |
|
0 commit comments