Skip to content

Commit 71cea86

Browse files
authored
telemetry: toolkit_showNotification.userChoice (#882)
1 parent df10c59 commit 71cea86

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "action",
55
"type": "string",
6-
"description": "Name of an action that was taken, displayed, etc."
6+
"description": "Name of an action that was taken, displayed, etc. See also `userChoice`."
77
},
88
{
99
"name": "amazonqCodeGenerationResult",
@@ -1711,7 +1711,7 @@
17111711
{
17121712
"name": "userChoice",
17131713
"type": "string",
1714-
"description": "User selection from a predefined menu (not user-provided input)"
1714+
"description": "User selection from a predefined menu (not user-provided input). See also `action`."
17151715
},
17161716
{
17171717
"name": "userId",
@@ -6794,7 +6794,7 @@
67946794
},
67956795
{
67966796
"name": "toolkit_openModule",
6797-
"description": "The user opened 'something' (specified by 'module'). Examples: a view, feature, resource, ...",
6797+
"description": "User opened 'something' (specified by 'module'). Examples: a view, feature, resource, ...",
67986798
"metadata": [
67996799
{
68006800
"type": "module",
@@ -6813,7 +6813,7 @@
68136813
},
68146814
{
68156815
"name": "toolkit_showAction",
6816-
"description": "The toolkit tried to show an action. Source represents the notification that produced the action",
6816+
"description": "Toolkit presented an action. `source` is the notification that produced the action. See also `toolkit_showNotification`.",
68176817
"metadata": [
68186818
{
68196819
"type": "component",
@@ -6840,7 +6840,7 @@
68406840
},
68416841
{
68426842
"name": "toolkit_showNotification",
6843-
"description": "The toolkit tried to show a notification message",
6843+
"description": "Show a notification message, optionally with selected action set in `userChoice`. See also `toolkit_showAction`.",
68446844
"metadata": [
68456845
{
68466846
"type": "component",
@@ -6857,6 +6857,10 @@
68576857
{
68586858
"type": "result",
68596859
"required": true
6860+
},
6861+
{
6862+
"type": "userChoice",
6863+
"required": false
68606864
}
68616865
],
68626866
"passive": true
@@ -6942,4 +6946,4 @@
69426946
]
69436947
}
69446948
]
6945-
}
6949+
}

0 commit comments

Comments
 (0)