Skip to content

Commit 3cc8fcd

Browse files
committed
amazonq: port amazonq_addMessage from VSC in to common definitions
1 parent 8d8d425 commit 3cc8fcd

File tree

1 file changed

+289
-0
lines changed

1 file changed

+289
-0
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 289 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,16 @@
982982
"type": "int",
983983
"description": "Count of lines of code copied to the editor"
984984
},
985+
{
986+
"name": "cwsprChatActiveEditorImportCount",
987+
"type": "int",
988+
"description": "Number of import statements in the active editor"
989+
},
990+
{
991+
"name": "cwsprChatActiveEditorTotalCharacters",
992+
"type": "int",
993+
"description": "Total number of characters in the active editor"
994+
},
985995
{
986996
"name": "cwsprChatCodeBlockIndex",
987997
"type": "int",
@@ -992,16 +1002,66 @@
9921002
"type": "string",
9931003
"description": "Uniquely identifies a message with which the user interacts."
9941004
},
1005+
{
1006+
"name": "cwsprChatConversationType",
1007+
"type": "string",
1008+
"allowedValues": [
1009+
"Chat",
1010+
"Assign",
1011+
"Transform"
1012+
],
1013+
"description": "Identifies the type of conversation"
1014+
},
9951015
{
9961016
"name": "cwsprChatFileContextCount",
9971017
"type": "int",
9981018
"description": "Number of files manually added to context"
9991019
},
1020+
{
1021+
"name": "cwsprChatFileContextLength",
1022+
"type": "int",
1023+
"description": "Total length of files added to context"
1024+
},
1025+
{
1026+
"name": "cwsprChatFileContextTruncatedLength",
1027+
"type": "int",
1028+
"description": "Truncated length of files added to context"
1029+
},
10001030
{
10011031
"name": "cwsprChatFolderContextCount",
10021032
"type": "int",
10031033
"description": "Number of folders manually added to context"
10041034
},
1035+
{
1036+
"name": "cwsprChatFollowUpCount",
1037+
"type": "int",
1038+
"description": "Number of follow ups in response"
1039+
},
1040+
{
1041+
"name": "cwsprChatFullDisplayLatency",
1042+
"type": "int",
1043+
"description": "The time between the user pressing enter and the entire response being rendered"
1044+
},
1045+
{
1046+
"name": "cwsprChatFullResponseLatency",
1047+
"type": "int",
1048+
"description": "The time between when the conversation id was created and the final response from the server was received"
1049+
},
1050+
{
1051+
"name": "cwsprChatFullServerResponseLatency",
1052+
"type": "int",
1053+
"description": "The time between the initial server request, including creating the conversation id, and the final response from the server"
1054+
},
1055+
{
1056+
"name": "cwsprChatHasCodeSnippet",
1057+
"type": "boolean",
1058+
"description": "true if user has selected code snippet, false otherwise."
1059+
},
1060+
{
1061+
"name": "cwsprChatHasContextList",
1062+
"type": "boolean",
1063+
"description": "true if context list is displayed to user"
1064+
},
10051065
{
10061066
"name": "cwsprChatHasProjectContext",
10071067
"type": "boolean",
@@ -1050,16 +1110,101 @@
10501110
"type": "int",
10511111
"description": "Number of saved prompts manually added to context"
10521112
},
1113+
{
1114+
"name": "cwsprChatPromptContextLength",
1115+
"type": "int",
1116+
"description": "Total length of saved prompts added to context"
1117+
},
1118+
{
1119+
"name": "cwsprChatPromptContextTruncatedLength",
1120+
"type": "int",
1121+
"description": "Truncated length of saved prompts added to context"
1122+
},
1123+
{
1124+
"name": "cwsprChatReferencesCount",
1125+
"type": "int",
1126+
"description": "Number of references in response"
1127+
},
1128+
{
1129+
"name": "cwsprChatRequestLength",
1130+
"type": "int",
1131+
"description": "Number of characters in request"
1132+
},
1133+
{
1134+
"name": "cwsprChatResponseCode",
1135+
"type": "int",
1136+
"description": "HTTP response code for message API invocation"
1137+
},
1138+
{
1139+
"name": "cwsprChatResponseCodeSnippetCount",
1140+
"type": "int",
1141+
"description": "Number of code snippets in response"
1142+
},
1143+
{
1144+
"name": "cwsprChatResponseLength",
1145+
"type": "int",
1146+
"description": "Number of characters in response"
1147+
},
10531148
{
10541149
"name": "cwsprChatRuleContextCount",
10551150
"type": "int",
10561151
"description": "Number of workspace rules automatically added to context"
10571152
},
1153+
{
1154+
"name": "cwsprChatRuleContextLength",
1155+
"type": "int",
1156+
"description": "Total length of workspace rules added to context"
1157+
},
1158+
{
1159+
"name": "cwsprChatRuleContextTruncatedLength",
1160+
"type": "int",
1161+
"description": "Truncated length of workspace rules added to context"
1162+
},
1163+
{
1164+
"name": "cwsprChatSourceLinkCount",
1165+
"type": "int",
1166+
"description": "Number of links in response"
1167+
},
1168+
{
1169+
"name": "cwsprChatTimeBetweenChunks",
1170+
"type": "string",
1171+
"description": "An array of time when successive chunks of data are received from the server"
1172+
},
1173+
{
1174+
"name": "cwsprChatTimeBetweenDisplays",
1175+
"type": "string",
1176+
"description": "An array of time when successive chunks of server responses are displayed to the user"
1177+
},
1178+
{
1179+
"name": "cwsprChatTimeToFirstChunk",
1180+
"type": "int",
1181+
"description": "The time between when the conversation id was created and when we got back the first usable result"
1182+
},
1183+
{
1184+
"name": "cwsprChatTimeToFirstDisplay",
1185+
"type": "int",
1186+
"description": "The time between the user pressing enter and when the first chunk of data is displayed to the user"
1187+
},
1188+
{
1189+
"name": "cwsprChatTimeToFirstUsableChunk",
1190+
"type": "int",
1191+
"description": "The time between the initial server request, including creating the conversation id, and the first usable result"
1192+
},
10581193
{
10591194
"name": "cwsprChatTotalCodeBlocks",
10601195
"type": "int",
10611196
"description": "Total number of code blocks inside a message in the conversation."
10621197
},
1198+
{
1199+
"name": "cwsprChatTriggerInteraction",
1200+
"type": "string",
1201+
"allowedValues": [
1202+
"hotkeys",
1203+
"click",
1204+
"contextMenu"
1205+
],
1206+
"description": "Identifies the specific interaction that opens the chat panel"
1207+
},
10631208
{
10641209
"name": "cwsprChatUserIntent",
10651210
"type": "string",
@@ -2012,6 +2157,150 @@
20122157
}
20132158
]
20142159
},
2160+
{
2161+
"name": "amazonq_addMessage",
2162+
"description": "When a message is added to the conversation",
2163+
"metadata": [
2164+
{
2165+
"type": "codewhispererCustomizationArn",
2166+
"required": false
2167+
},
2168+
{
2169+
"type": "credentialStartUrl",
2170+
"required": false
2171+
},
2172+
{
2173+
"type": "cwsprChatActiveEditorImportCount",
2174+
"required": false
2175+
},
2176+
{
2177+
"type": "cwsprChatActiveEditorTotalCharacters",
2178+
"required": false
2179+
},
2180+
{
2181+
"type": "cwsprChatConversationId"
2182+
},
2183+
{
2184+
"type": "cwsprChatConversationType"
2185+
},
2186+
{
2187+
"type": "cwsprChatFileContextCount",
2188+
"required": false
2189+
},
2190+
{
2191+
"type": "cwsprChatFileContextLength",
2192+
"required": false
2193+
},
2194+
{
2195+
"type": "cwsprChatFileContextTruncatedLength",
2196+
"required": false
2197+
},
2198+
{
2199+
"type": "cwsprChatFolderContextCount",
2200+
"required": false
2201+
},
2202+
{
2203+
"type": "cwsprChatFollowUpCount",
2204+
"required": false
2205+
},
2206+
{
2207+
"type": "cwsprChatFullDisplayLatency"
2208+
},
2209+
{
2210+
"type": "cwsprChatFullResponseLatency"
2211+
},
2212+
{
2213+
"type": "cwsprChatFullServerResponseLatency"
2214+
},
2215+
{
2216+
"type": "cwsprChatHasCodeSnippet",
2217+
"required": false
2218+
},
2219+
{
2220+
"type": "cwsprChatHasContextList",
2221+
"required": false
2222+
},
2223+
{
2224+
"type": "cwsprChatHasProjectContext",
2225+
"required": false
2226+
},
2227+
{
2228+
"type": "cwsprChatMessageId"
2229+
},
2230+
{
2231+
"type": "cwsprChatProgrammingLanguage",
2232+
"required": false
2233+
},
2234+
{
2235+
"type": "cwsprChatPromptContextCount",
2236+
"required": false
2237+
},
2238+
{
2239+
"type": "cwsprChatPromptContextLength",
2240+
"required": false
2241+
},
2242+
{
2243+
"type": "cwsprChatPromptContextTruncatedLength",
2244+
"required": false
2245+
},
2246+
{
2247+
"type": "cwsprChatReferencesCount",
2248+
"required": false
2249+
},
2250+
{
2251+
"type": "cwsprChatRequestLength"
2252+
},
2253+
{
2254+
"type": "cwsprChatResponseCode"
2255+
},
2256+
{
2257+
"type": "cwsprChatResponseCodeSnippetCount",
2258+
"required": false
2259+
},
2260+
{
2261+
"type": "cwsprChatResponseLength",
2262+
"required": false
2263+
},
2264+
{
2265+
"type": "cwsprChatRuleContextCount",
2266+
"required": false
2267+
},
2268+
{
2269+
"type": "cwsprChatRuleContextLength",
2270+
"required": false
2271+
},
2272+
{
2273+
"type": "cwsprChatRuleContextTruncatedLength",
2274+
"required": false
2275+
},
2276+
{
2277+
"type": "cwsprChatSourceLinkCount",
2278+
"required": false
2279+
},
2280+
{
2281+
"type": "cwsprChatTimeBetweenChunks"
2282+
},
2283+
{
2284+
"type": "cwsprChatTimeBetweenDisplays"
2285+
},
2286+
{
2287+
"type": "cwsprChatTimeToFirstChunk"
2288+
},
2289+
{
2290+
"type": "cwsprChatTimeToFirstDisplay"
2291+
},
2292+
{
2293+
"type": "cwsprChatTimeToFirstUsableChunk"
2294+
},
2295+
{
2296+
"type": "cwsprChatTriggerInteraction"
2297+
},
2298+
{
2299+
"type": "cwsprChatUserIntent",
2300+
"required": false
2301+
}
2302+
]
2303+
},
20152304
{
20162305
"name": "amazonq_approachInvoke",
20172306
"description": "Captures Approach generation process",

0 commit comments

Comments
 (0)