Skip to content

Commit 883f1af

Browse files
authored
Adding interactWithMessage telemetry event (#755)
* Event for message interaction (amazonq_interactWithMessage) was missing from common telemetry definition. Currently IDEs are adding this to their toolkit specific telemetry override file.
1 parent 3b2f948 commit 883f1af

File tree

1 file changed

+98
-0
lines changed

1 file changed

+98
-0
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,62 @@
848848
"other"
849849
]
850850
},
851+
{
852+
"name": "cwsprChatAcceptedCharactersLength",
853+
"type": "int",
854+
"description": "Count of code characters copied to the editor"
855+
},
856+
{
857+
"name": "cwsprChatAcceptedNumberOfLines",
858+
"type": "int",
859+
"description": "Count of lines of code copied to the editor"
860+
},
861+
{
862+
"name": "cwsprChatCodeBlockIndex",
863+
"type": "int",
864+
"description": "Index of the code block inside a message in the conversation."
865+
},
866+
{
867+
"name": "cwsprChatConversationId",
868+
"type": "string",
869+
"description": "Uniquely identifies a message with which the user interacts."
870+
},
871+
{
872+
"name": "cwsprChatHasReference",
873+
"type": "boolean",
874+
"description": "True if the code snippet that user interacts with has a reference."
875+
},
876+
{
877+
"name": "cwsprChatInteractionTarget",
878+
"type": "string",
879+
"description": "Identifies the entity within the message that user interacts with."
880+
},
881+
{
882+
"name": "cwsprChatInteractionType",
883+
"allowedValues": [
884+
"insertAtCursor",
885+
"copySnippet",
886+
"copy",
887+
"clickLink",
888+
"clickFollowUp",
889+
"hoverReference",
890+
"upvote",
891+
"downvote",
892+
"clickBodyLink"
893+
],
894+
"type": "string",
895+
"description": "Indicates the specific interaction type with a message in a conversation"
896+
},
897+
{
898+
"name": "cwsprChatMessageId",
899+
"type": "string",
900+
"description": "Unique identifier for each message in an conversation"
901+
},
902+
{
903+
"name": "cwsprChatTotalCodeBlocks",
904+
"type": "int",
905+
"description": "Total number of code blocks inside a message in the conversation."
906+
},
851907
{
852908
"name": "databaseCredentials",
853909
"type": "string",
@@ -1656,6 +1712,48 @@
16561712
}
16571713
]
16581714
},
1715+
{
1716+
"name": "amazonq_interactWithMessage",
1717+
"description": "When a user interacts with a message in the conversation",
1718+
"metadata": [
1719+
{
1720+
"type": "credentialStartUrl",
1721+
"required": false
1722+
},
1723+
{
1724+
"type": "cwsprChatAcceptedCharactersLength",
1725+
"required": false
1726+
},
1727+
{
1728+
"type": "cwsprChatAcceptedNumberOfLines",
1729+
"required": false
1730+
},
1731+
{
1732+
"type": "cwsprChatCodeBlockIndex",
1733+
"required": false
1734+
},
1735+
{
1736+
"type": "cwsprChatConversationId",
1737+
"required": true
1738+
},
1739+
{
1740+
"type": "cwsprChatHasReference",
1741+
"required": false
1742+
},
1743+
{
1744+
"type": "cwsprChatInteractionTarget",
1745+
"required": false
1746+
},
1747+
{
1748+
"type": "cwsprChatInteractionType",
1749+
"required": true
1750+
},
1751+
{
1752+
"type": "cwsprChatMessageId",
1753+
"required": true
1754+
}
1755+
]
1756+
},
16591757
{
16601758
"name": "amazonq_isAcceptedCodeChanges",
16611759
"description": "User applied code changes generated for the task.",

0 commit comments

Comments
 (0)