-
Notifications
You must be signed in to change notification settings - Fork 61
telemetry: add definitions for code scan changes #892
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -528,6 +528,15 @@ | |||||
| "type": "int", | ||||||
| "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" | ||||||
| }, | ||||||
| { | ||||||
| "name": "codewhispererCodeScanInvocationSource", | ||||||
| "description": "The location where the code scan is being invoked from", | ||||||
| "type": "string", | ||||||
| "allowedValues": [ | ||||||
| "chat", | ||||||
| "menu" | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "codewhispererCodeScanIssuesWithFixes", | ||||||
| "type": "int", | ||||||
|
|
@@ -554,6 +563,8 @@ | |||||
| "description": "The scope of the security scan being performed", | ||||||
| "allowedValues": [ | ||||||
| "FILE", | ||||||
| "FILE_AUTO", | ||||||
| "FILE_ON_DEMAND", | ||||||
| "PROJECT" | ||||||
| ] | ||||||
| }, | ||||||
|
|
@@ -885,7 +896,8 @@ | |||||
| "infobar", | ||||||
| "hover", | ||||||
| "webview", | ||||||
| "quickfix" | ||||||
| "quickfix", | ||||||
| "tree" | ||||||
| ], | ||||||
| "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`." | ||||||
| }, | ||||||
|
|
@@ -1131,7 +1143,7 @@ | |||||
| "remoteDesktop", | ||||||
| "ssh", | ||||||
| "scp", | ||||||
| "ssm", | ||||||
| "ssm", | ||||||
| "remoteWorkspace" | ||||||
| ], | ||||||
| "description": "Ways to connect to an EC2 Instance" | ||||||
|
|
@@ -4322,6 +4334,16 @@ | |||||
| ], | ||||||
| "passive": true | ||||||
| }, | ||||||
| { | ||||||
| "name": "codewhisperer_codeScanChatNewTab", | ||||||
| "description": "Called when a new chat tab is opened in the code scan view", | ||||||
| "metadata": [ | ||||||
| { | ||||||
| "type": "credentialSourceId", | ||||||
| "required": false | ||||||
| } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "codewhisperer_codeScanIssueApplyFix", | ||||||
| "description": "Called when a code scan issue suggested fix is applied", | ||||||
|
|
@@ -4340,15 +4362,35 @@ | |||||
| "type": "findingId" | ||||||
| }, | ||||||
| { | ||||||
| "type": "reason", | ||||||
| "type": "ruleId", | ||||||
| "required": false | ||||||
| } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "codewhisperer_codeScanIssueGenerateFix", | ||||||
| "description": "Called when a code scan issue fix is generated", | ||||||
|
||||||
| "description": "Called when a code scan issue fix is generated", | |
| "description": "Generated a code scan issue. varant=... means ...", |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the description is a good place to explain non-obvious fields. e.g. could mention :
| "description": "Called when a code scan issue is ignored", | |
| "description": "User ignored a code scan issue. variant=all means the user ignored all issues. ", |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like your editor might be removing the final EOL. please check your editor/IDE settings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it gets removed by running the validation script, but I can add it back manually
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not use the generic
sourcefield? it exists for this purpose.aws-toolkit-common/telemetry/definitions/commonDefinitions.json
Lines 1649 to 1651 in b2a6280