Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codewhisperer: add rule id for scan metrics #654

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions telemetry/definitions/commonDefinitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,21 @@
"type": "string",
"description": "The user group identifier we assign to the customer and it should be unique identifier across different IDE platforms, i.e. Classifier, CrossFile etc."
},
{
"name": "findingId",
"type": "string",
"description": "The id of a security finding from a code scan"
},
{
"name": "detectorId",
"type": "string",
"description": "The id of the detector which produced the code scan issue"
},
{
"name": "ruleId",
"type": "string",
"description": "The id of the rule which produced the code scan issue"
},
{
"name": "syncedResources",
"type": "string",
Expand Down Expand Up @@ -2942,6 +2957,26 @@
}
]
},
{
"name": "codewhisperer_codeScanIssueHover",
"description": "Called when a code scan issue is hovered over",
"metadata": [{ "type": "findingId" }, { "type": "detectorId" }, { "type": "ruleId", "required": false }]
},
{
"name": "codewhisperer_codeScanIssueApplyFix",
"description": "Called when a code scan issue suggested fix is applied",
"metadata": [
{ "type": "findingId" },
{ "type": "detectorId" },
{ "type": "component" },
{ "type": "ruleId", "required": false }
]
},
{
"name": "codewhisperer_codeScanIssueViewDetails",
"description": "Called when a code scan issue webview is opened",
"metadata": [{ "type": "findingId" }, { "type": "detectorId" }, { "type": "ruleId", "required": false }]
},
{
"name": "codewhisperer_serviceInvocation",
"description": "Client side invocation of the CodeWhisperer service for suggestion",
Expand Down