Skip to content

Commit 6339bbc

Browse files
authored
Add QCodeReviewTool Metric Definition (#1065)
## Problem Currently QCodeReviewTool do not have any metric name/definition defined to emit metrics ## Solution Added a new metric definition. <!--- REMINDER: - Read CONTRIBUTING.md first. - Add test coverage for your changes. - Link to related issues/commits. - Testing: how did you test your changes? - Screenshots if applicable --> ## License By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 46e301f commit 6339bbc

File tree

1 file changed

+54
-3
lines changed

1 file changed

+54
-3
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 54 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@
129129
"type": "int",
130130
"description": "Time taken to fetch the upload URL and upload the artifacts in milliseconds"
131131
},
132+
{
133+
"name": "artifactType",
134+
"type": "string",
135+
"description": "type of artifact used in a request"
136+
},
132137
{
133138
"name": "attempts",
134139
"type": "int",
@@ -572,7 +577,7 @@
572577
{
573578
"name": "codewhispererCodeScanJobId",
574579
"type": "string",
575-
"description": "The ID of the security scan job"
580+
"description": "The ID of the scan job"
576581
},
577582
{
578583
"name": "codewhispererCodeScanLines",
@@ -603,12 +608,12 @@
603608
{
604609
"name": "codewhispererCodeScanSrcZipFileBytes",
605610
"type": "int",
606-
"description": "The compressed payload size of source files in bytes of customer project context sent for security scan"
611+
"description": "The compressed payload size of source files in bytes of customer project context sent for scan"
607612
},
608613
{
609614
"name": "codewhispererCodeScanTotalIssues",
610615
"type": "int",
611-
"description": "The number of security issues been detected"
616+
"description": "The number of issues been detected"
612617
},
613618
{
614619
"name": "codewhispererCompletionType",
@@ -993,6 +998,11 @@
993998
"other"
994999
]
9951000
},
1001+
{
1002+
"name": "customRules",
1003+
"type": "int",
1004+
"description": "number of custom rules present in a request"
1005+
},
9961006
{
9971007
"name": "cwsprAgenticChatInteractionType",
9981008
"type": "string",
@@ -2671,6 +2681,47 @@
26712681
}
26722682
]
26732683
},
2684+
{
2685+
"name": "amazonq_codeReviewTool",
2686+
"description": "This metric is used to evaluate Amazon Q's code review tool",
2687+
"metadata": [
2688+
{
2689+
"type": "artifactType",
2690+
"required": false
2691+
},
2692+
{
2693+
"type": "codewhispererCodeScanJobId",
2694+
"required": false
2695+
},
2696+
{
2697+
"type": "codewhispererCodeScanSrcZipFileBytes",
2698+
"required": false
2699+
},
2700+
{
2701+
"type": "codewhispererCodeScanTotalIssues",
2702+
"required": false
2703+
},
2704+
{
2705+
"type": "customRules",
2706+
"required": false
2707+
},
2708+
{
2709+
"type": "reason",
2710+
"required": false
2711+
},
2712+
{
2713+
"type": "reasonDesc",
2714+
"required": false
2715+
},
2716+
{
2717+
"type": "result"
2718+
},
2719+
{
2720+
"type": "scope",
2721+
"required": false
2722+
}
2723+
]
2724+
},
26742725
{
26752726
"name": "amazonq_createUpload",
26762727
"description": "Captures createUploadUrl invocation process",

0 commit comments

Comments
 (0)