|
81 | 81 | "description": "The intent of the upload",
|
82 | 82 | "allowedValues": [
|
83 | 83 | "TRANSFORMATION",
|
84 |
| - "TASK_ASSIST_PLANNING" |
| 84 | + "TASK_ASSIST_PLANNING", |
| 85 | + "AUTOMATIC_FILE_SECURITY_SCAN", |
| 86 | + "FULL_PROJECT_SECURITY_SCAN" |
85 | 87 | ]
|
86 | 88 | },
|
87 | 89 | {
|
|
990 | 992 | "type": "string",
|
991 | 993 | "description": "Uniquely identifies a message with which the user interacts."
|
992 | 994 | },
|
| 995 | + { |
| 996 | + "name": "cwsprChatFileContextCount", |
| 997 | + "type": "int", |
| 998 | + "description": "Number of files manually added to context" |
| 999 | + }, |
| 1000 | + { |
| 1001 | + "name": "cwsprChatFolderContextCount", |
| 1002 | + "type": "int", |
| 1003 | + "description": "Number of folders manually added to context" |
| 1004 | + }, |
993 | 1005 | {
|
994 | 1006 | "name": "cwsprChatHasProjectContext",
|
995 | 1007 | "type": "boolean",
|
|
1033 | 1045 | "type": "string",
|
1034 | 1046 | "description": "Programming language associated with the message"
|
1035 | 1047 | },
|
| 1048 | + { |
| 1049 | + "name": "cwsprChatPromptContextCount", |
| 1050 | + "type": "int", |
| 1051 | + "description": "Number of saved prompts manually added to context" |
| 1052 | + }, |
| 1053 | + { |
| 1054 | + "name": "cwsprChatRuleContextCount", |
| 1055 | + "type": "int", |
| 1056 | + "description": "Number of workspace rules automatically added to context" |
| 1057 | + }, |
1036 | 1058 | {
|
1037 | 1059 | "name": "cwsprChatTotalCodeBlocks",
|
1038 | 1060 | "type": "int",
|
|
1357 | 1379 | "type": "string",
|
1358 | 1380 | "description": "HTTP status code for the request (if any) associated with a metric."
|
1359 | 1381 | },
|
| 1382 | + { |
| 1383 | + "name": "iac", |
| 1384 | + "type": "string", |
| 1385 | + "description": "The IaC being used" |
| 1386 | + }, |
1360 | 1387 | {
|
1361 | 1388 | "name": "iamResourceType",
|
1362 | 1389 | "type": "string",
|
|
1514 | 1541 | {
|
1515 | 1542 | "name": "languageServerLocation",
|
1516 | 1543 | "type": "string",
|
1517 |
| - "allowedValues": ["cache", "remote", "fallback", "override"], |
| 1544 | + "allowedValues": [ |
| 1545 | + "cache", |
| 1546 | + "remote", |
| 1547 | + "fallback", |
| 1548 | + "override" |
| 1549 | + ], |
1518 | 1550 | "description": "The location of the language server"
|
1519 | 1551 | },
|
1520 | 1552 | {
|
1521 | 1553 | "name": "languageServerSetupStage",
|
1522 | 1554 | "type": "string",
|
1523 |
| - "allowedValues": ["getManifest", "getServer", "validate", "launch", "handshake", "all"], |
| 1555 | + "allowedValues": [ |
| 1556 | + "getManifest", |
| 1557 | + "getServer", |
| 1558 | + "validate", |
| 1559 | + "launch", |
| 1560 | + "handshake", |
| 1561 | + "all" |
| 1562 | + ], |
1524 | 1563 | "description": "The stage of the LSP setup process"
|
1525 | 1564 | },
|
1526 | 1565 | {
|
|
1541 | 1580 | {
|
1542 | 1581 | "name": "manifestLocation",
|
1543 | 1582 | "type": "string",
|
1544 |
| - "allowedValues": ["cache", "remote", "override"], |
| 1583 | + "allowedValues": [ |
| 1584 | + "cache", |
| 1585 | + "remote", |
| 1586 | + "override" |
| 1587 | + ], |
1545 | 1588 | "description": "The location of the manifest"
|
1546 | 1589 | },
|
1547 | 1590 | {
|
|
2204 | 2247 | "type": "cwsprChatConversationId",
|
2205 | 2248 | "required": true
|
2206 | 2249 | },
|
| 2250 | + { |
| 2251 | + "type": "cwsprChatFileContextCount", |
| 2252 | + "required": false |
| 2253 | + }, |
| 2254 | + { |
| 2255 | + "type": "cwsprChatFolderContextCount", |
| 2256 | + "required": false |
| 2257 | + }, |
2207 | 2258 | {
|
2208 | 2259 | "type": "cwsprChatHasProjectContext",
|
2209 | 2260 | "required": false
|
|
2228 | 2279 | "type": "cwsprChatProgrammingLanguage",
|
2229 | 2280 | "required": false
|
2230 | 2281 | },
|
| 2282 | + { |
| 2283 | + "type": "cwsprChatPromptContextCount", |
| 2284 | + "required": false |
| 2285 | + }, |
| 2286 | + { |
| 2287 | + "type": "cwsprChatRuleContextCount", |
| 2288 | + "required": false |
| 2289 | + }, |
2231 | 2290 | {
|
2232 | 2291 | "type": "cwsprChatTotalCodeBlocks",
|
2233 | 2292 | "required": false
|
|
4645 | 4704 | }
|
4646 | 4705 | ]
|
4647 | 4706 | },
|
| 4707 | + { |
| 4708 | + "name": "codewhisperer_codeScanIssueDetected", |
| 4709 | + "description": "Called when a code scan issue is returned from the service", |
| 4710 | + "metadata": [ |
| 4711 | + { |
| 4712 | + "type": "autoDetected", |
| 4713 | + "required": false |
| 4714 | + }, |
| 4715 | + { |
| 4716 | + "type": "codewhispererCodeScanJobId", |
| 4717 | + "required": false |
| 4718 | + }, |
| 4719 | + { |
| 4720 | + "type": "detectorId" |
| 4721 | + }, |
| 4722 | + { |
| 4723 | + "type": "findingId" |
| 4724 | + }, |
| 4725 | + { |
| 4726 | + "type": "includesFix", |
| 4727 | + "required": false |
| 4728 | + }, |
| 4729 | + { |
| 4730 | + "type": "ruleId", |
| 4731 | + "required": false |
| 4732 | + } |
| 4733 | + ] |
| 4734 | + }, |
4648 | 4735 | {
|
4649 | 4736 | "name": "codewhisperer_codeScanIssueGenerateFix",
|
4650 | 4737 | "description": "Generated fix for a code scan issue. variant=refresh means the user chose to generate a fix again after one already exists.",
|
|
4688 | 4775 | "name": "codewhisperer_codeScanIssueHover",
|
4689 | 4776 | "description": "Called when a code scan issue is hovered over",
|
4690 | 4777 | "metadata": [
|
| 4778 | + { |
| 4779 | + "type": "autoDetected", |
| 4780 | + "required": false |
| 4781 | + }, |
4691 | 4782 | {
|
4692 | 4783 | "type": "credentialStartUrl",
|
4693 | 4784 | "required": false
|
|
4711 | 4802 | "name": "codewhisperer_codeScanIssueIgnore",
|
4712 | 4803 | "description": "User ignored a code scan issue. variant=all means the user ignored all issues of a specific type.",
|
4713 | 4804 | "metadata": [
|
| 4805 | + { |
| 4806 | + "type": "autoDetected", |
| 4807 | + "required": false |
| 4808 | + }, |
4714 | 4809 | {
|
4715 | 4810 | "type": "component"
|
4716 | 4811 | },
|
|
4738 | 4833 | "name": "codewhisperer_codeScanIssueViewDetails",
|
4739 | 4834 | "description": "Called when a code scan issue webview is opened",
|
4740 | 4835 | "metadata": [
|
| 4836 | + { |
| 4837 | + "type": "autoDetected", |
| 4838 | + "required": false |
| 4839 | + }, |
4741 | 4840 | {
|
4742 | 4841 | "type": "credentialStartUrl",
|
4743 | 4842 | "required": false
|
|
6154 | 6253 | }
|
6155 | 6254 | ]
|
6156 | 6255 | },
|
| 6256 | + { |
| 6257 | + "name": "lambda_createServerlessLandProject", |
| 6258 | + "description": "Called when creating a new Serverless Project", |
| 6259 | + "metadata": [ |
| 6260 | + { |
| 6261 | + "type": "iac" |
| 6262 | + }, |
| 6263 | + { |
| 6264 | + "type": "runtimeString" |
| 6265 | + }, |
| 6266 | + { |
| 6267 | + "type": "templateName" |
| 6268 | + } |
| 6269 | + ] |
| 6270 | + }, |
6157 | 6271 | {
|
6158 | 6272 | "name": "lambda_delete",
|
6159 | 6273 | "description": "called when deleting lambdas remotely",
|
|
7079 | 7193 | ]
|
7080 | 7194 | },
|
7081 | 7195 | {
|
7082 |
| - "name": "toolkit_closeModule", |
7083 |
| - "description": "The user closed 'something' (specified by 'module'). Examples: a view, feature, resource, ...", |
| 7196 | + "name": "toolkit_didCloseModule", |
| 7197 | + "description": "The module has closed/terminated. Use this when the module is done being used.", |
7084 | 7198 | "metadata": [
|
7085 | 7199 | {
|
7086 | 7200 | "type": "module",
|
|
7089 | 7203 | ],
|
7090 | 7204 | "passive": true
|
7091 | 7205 | },
|
| 7206 | + { |
| 7207 | + "name": "toolkit_didLoadModule", |
| 7208 | + "description": "The module has loaded, i.e it has rendered/resolved/finished. You can use this metric by itself, OR after `toolkit_willOpenModule` + `traceId` to close the loop on an asynchronous operation.", |
| 7209 | + "metadata": [ |
| 7210 | + { |
| 7211 | + "type": "attempts", |
| 7212 | + "required": false |
| 7213 | + }, |
| 7214 | + { |
| 7215 | + "type": "duration", |
| 7216 | + "required": false |
| 7217 | + }, |
| 7218 | + { |
| 7219 | + "type": "module", |
| 7220 | + "required": true |
| 7221 | + }, |
| 7222 | + { |
| 7223 | + "type": "result", |
| 7224 | + "required": true |
| 7225 | + }, |
| 7226 | + { |
| 7227 | + "type": "version", |
| 7228 | + "required": false |
| 7229 | + } |
| 7230 | + ], |
| 7231 | + "passive": true |
| 7232 | + }, |
7092 | 7233 | {
|
7093 | 7234 | "name": "toolkit_featureState",
|
7094 | 7235 | "description": "Represents the current enabled state of a feature. Used to track user journey through a feature. Emitted after feature-specific operations of interest in the Toolkit.",
|
|
7154 | 7295 | ],
|
7155 | 7296 | "passive": true
|
7156 | 7297 | },
|
7157 |
| - { |
7158 |
| - "name": "toolkit_initModule", |
7159 |
| - "description": "The Toolkit has completed initialization for the specified module.", |
7160 |
| - "metadata": [ |
7161 |
| - { |
7162 |
| - "type": "attempts", |
7163 |
| - "required": false |
7164 |
| - }, |
7165 |
| - { |
7166 |
| - "type": "duration", |
7167 |
| - "required": false |
7168 |
| - }, |
7169 |
| - { |
7170 |
| - "type": "module", |
7171 |
| - "required": true |
7172 |
| - }, |
7173 |
| - { |
7174 |
| - "type": "result", |
7175 |
| - "required": true |
7176 |
| - }, |
7177 |
| - { |
7178 |
| - "type": "version", |
7179 |
| - "required": false |
7180 |
| - } |
7181 |
| - ], |
7182 |
| - "passive": true |
7183 |
| - }, |
7184 | 7298 | {
|
7185 | 7299 | "name": "toolkit_invokeAction",
|
7186 | 7300 | "description": "User invoked an action. `source` is the notification that produced the action",
|
|
7211 | 7325 | }
|
7212 | 7326 | ]
|
7213 | 7327 | },
|
7214 |
| - { |
7215 |
| - "name": "toolkit_openModule", |
7216 |
| - "description": "User opened 'something' (specified by 'module'). Examples: a view, feature, resource, ...", |
7217 |
| - "metadata": [ |
7218 |
| - { |
7219 |
| - "type": "module", |
7220 |
| - "required": true |
7221 |
| - }, |
7222 |
| - { |
7223 |
| - "type": "result", |
7224 |
| - "required": true |
7225 |
| - }, |
7226 |
| - { |
7227 |
| - "type": "source", |
7228 |
| - "required": true |
7229 |
| - } |
7230 |
| - ], |
7231 |
| - "passive": true |
7232 |
| - }, |
7233 | 7328 | {
|
7234 | 7329 | "name": "toolkit_showAction",
|
7235 | 7330 | "description": "Toolkit presented an action. `source` is the notification that produced the action. See also `toolkit_showNotification`.",
|
|
7310 | 7405 | "name": "toolkit_viewLogs",
|
7311 | 7406 | "description": "View logs for the toolkit"
|
7312 | 7407 | },
|
| 7408 | + { |
| 7409 | + "name": "toolkit_willOpenModule", |
| 7410 | + "description": "Indicates a module opening attempt began, not its successful completion. For load confirmation, use `toolkit_didLoadModule` with matching `traceId`. This separation handles asynchronous processes that can't be captured in a single metric. 'Module' refers to components like views, features, resources, etc.", |
| 7411 | + "metadata": [ |
| 7412 | + { |
| 7413 | + "type": "module", |
| 7414 | + "required": true |
| 7415 | + }, |
| 7416 | + { |
| 7417 | + "type": "result", |
| 7418 | + "required": true |
| 7419 | + }, |
| 7420 | + { |
| 7421 | + "type": "source", |
| 7422 | + "required": true |
| 7423 | + } |
| 7424 | + ], |
| 7425 | + "passive": true |
| 7426 | + }, |
7313 | 7427 | {
|
7314 | 7428 | "name": "ui_click",
|
7315 | 7429 | "description": "User clicked/activated a UI element. This does not necessarily have to be an explicit mouse click. Any user action that has the same behavior as a mouse click can use this event.",
|
|
0 commit comments