Skip to content

Commit b2a6280

Browse files
committed
telemetry: add definitions for code scan changes
1 parent 49de773 commit b2a6280

File tree

1 file changed

+78
-5
lines changed

1 file changed

+78
-5
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 78 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,15 @@
528528
"type": "int",
529529
"description": "The compressed payload size of built jars in bytes of customer project context sent for security scan. This is only applicable for Java project"
530530
},
531+
{
532+
"name": "codewhispererCodeScanInvocationSource",
533+
"description": "The location where the code scan is being invoked from",
534+
"type": "string",
535+
"allowedValues": [
536+
"chat",
537+
"menu"
538+
]
539+
},
531540
{
532541
"name": "codewhispererCodeScanIssuesWithFixes",
533542
"type": "int",
@@ -554,6 +563,8 @@
554563
"description": "The scope of the security scan being performed",
555564
"allowedValues": [
556565
"FILE",
566+
"FILE_AUTO",
567+
"FILE_ON_DEMAND",
557568
"PROJECT"
558569
]
559570
},
@@ -885,7 +896,8 @@
885896
"infobar",
886897
"hover",
887898
"webview",
888-
"quickfix"
899+
"quickfix",
900+
"tree"
889901
],
890902
"description": "The IDE or OS component used for the action. (Examples: S3 download to filesystem, S3 upload from editor, ...). See also `featureId` for specific feature names, `module` for low-level modules, and `resourceType`."
891903
},
@@ -1131,7 +1143,7 @@
11311143
"remoteDesktop",
11321144
"ssh",
11331145
"scp",
1134-
"ssm",
1146+
"ssm",
11351147
"remoteWorkspace"
11361148
],
11371149
"description": "Ways to connect to an EC2 Instance"
@@ -4322,6 +4334,16 @@
43224334
],
43234335
"passive": true
43244336
},
4337+
{
4338+
"name": "codewhisperer_codeScanChatNewTab",
4339+
"description": "Called when a new chat tab is opened in the code scan view",
4340+
"metadata": [
4341+
{
4342+
"type": "credentialSourceId",
4343+
"required": false
4344+
}
4345+
]
4346+
},
43254347
{
43264348
"name": "codewhisperer_codeScanIssueApplyFix",
43274349
"description": "Called when a code scan issue suggested fix is applied",
@@ -4340,15 +4362,35 @@
43404362
"type": "findingId"
43414363
},
43424364
{
4343-
"type": "reason",
4365+
"type": "ruleId",
43444366
"required": false
4367+
}
4368+
]
4369+
},
4370+
{
4371+
"name": "codewhisperer_codeScanIssueGenerateFix",
4372+
"description": "Called when a code scan issue fix is generated",
4373+
"metadata": [
4374+
{
4375+
"type": "component"
43454376
},
43464377
{
4347-
"type": "result"
4378+
"type": "credentialStartUrl",
4379+
"required": false
4380+
},
4381+
{
4382+
"type": "detectorId"
4383+
},
4384+
{
4385+
"type": "findingId"
43484386
},
43494387
{
43504388
"type": "ruleId",
43514389
"required": false
4390+
},
4391+
{
4392+
"type": "variant",
4393+
"required": false
43524394
}
43534395
]
43544396
},
@@ -4375,6 +4417,33 @@
43754417
}
43764418
]
43774419
},
4420+
{
4421+
"name": "codewhisperer_codeScanIssueIgnore",
4422+
"description": "Called when a code scan issue is ignored",
4423+
"metadata": [
4424+
{
4425+
"type": "component"
4426+
},
4427+
{
4428+
"type": "credentialStartUrl",
4429+
"required": false
4430+
},
4431+
{
4432+
"type": "detectorId"
4433+
},
4434+
{
4435+
"type": "findingId"
4436+
},
4437+
{
4438+
"type": "ruleId",
4439+
"required": false
4440+
},
4441+
{
4442+
"type": "variant",
4443+
"required": false
4444+
}
4445+
]
4446+
},
43784447
{
43794448
"name": "codewhisperer_codeScanIssueViewDetails",
43804449
"description": "Called when a code scan issue webview is opened",
@@ -4481,6 +4550,10 @@
44814550
"type": "codewhispererCodeScanBuildZipFileBytes",
44824551
"required": false
44834552
},
4553+
{
4554+
"type": "codewhispererCodeScanInvocationSource",
4555+
"required": false
4556+
},
44844557
{
44854558
"type": "codewhispererCodeScanIssuesWithFixes",
44864559
"required": false
@@ -6969,4 +7042,4 @@
69697042
]
69707043
}
69717044
]
6972-
}
7045+
}

0 commit comments

Comments
 (0)