From 991392f0164d3fd4d900cb1f0c8d198656c0b2da Mon Sep 17 00:00:00 2001 From: Laxman Reddy <141967714+laileni-aws@users.noreply.github.com> Date: Tue, 15 Oct 2024 10:10:10 -0700 Subject: [PATCH 1/3] Adding cwsprChatProgrammingLanguage param to amazonq_interactWithMessage event in commonDefinations --- telemetry/definitions/commonDefinitions.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/telemetry/definitions/commonDefinitions.json b/telemetry/definitions/commonDefinitions.json index 36c8c84f6..a066f6f48 100644 --- a/telemetry/definitions/commonDefinitions.json +++ b/telemetry/definitions/commonDefinitions.json @@ -1021,6 +1021,11 @@ ], "description": "Explict user intent associated with a chat message" }, + { + "name": "cwsprChatProgrammingLanguage", + "type": "string", + "description": "Programming language associated with the message" + }, { "name": "databaseCredentials", "type": "string", @@ -2057,6 +2062,10 @@ { "type": "cwsprChatUserIntent", "required": false + }, + { + "type": "cwsprChatProgrammingLanguage", + "required": false } ] }, From c5474625b2c1dc3a6e26622e71b1c4d4b4689b3f Mon Sep 17 00:00:00 2001 From: Laxman Reddy <141967714+laileni-aws@users.noreply.github.com> Date: Tue, 15 Oct 2024 10:16:46 -0700 Subject: [PATCH 2/3] minor lint errors --- telemetry/definitions/commonDefinitions.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/telemetry/definitions/commonDefinitions.json b/telemetry/definitions/commonDefinitions.json index a066f6f48..06cb6ae73 100644 --- a/telemetry/definitions/commonDefinitions.json +++ b/telemetry/definitions/commonDefinitions.json @@ -1006,6 +1006,11 @@ "type": "int", "description": "Total number of code blocks inside a message in the conversation." }, + { + "name": "cwsprChatProgrammingLanguage", + "type": "string", + "description": "Programming language associated with the message" + }, { "name": "cwsprChatUserIntent", "type": "string", @@ -1021,11 +1026,6 @@ ], "description": "Explict user intent associated with a chat message" }, - { - "name": "cwsprChatProgrammingLanguage", - "type": "string", - "description": "Programming language associated with the message" - }, { "name": "databaseCredentials", "type": "string", @@ -2060,11 +2060,11 @@ "required": true }, { - "type": "cwsprChatUserIntent", + "type": "cwsprChatProgrammingLanguage", "required": false }, { - "type": "cwsprChatProgrammingLanguage", + "type": "cwsprChatUserIntent", "required": false } ] From f604e63c8949b3c8116489a425ac9d3722cfaf8e Mon Sep 17 00:00:00 2001 From: Laxman Reddy <141967714+laileni-aws@users.noreply.github.com> Date: Tue, 15 Oct 2024 10:21:23 -0700 Subject: [PATCH 3/3] minor lint errors --- telemetry/definitions/commonDefinitions.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/telemetry/definitions/commonDefinitions.json b/telemetry/definitions/commonDefinitions.json index 06cb6ae73..19b1148b1 100644 --- a/telemetry/definitions/commonDefinitions.json +++ b/telemetry/definitions/commonDefinitions.json @@ -1001,16 +1001,16 @@ "type": "string", "description": "Unique identifier for each message in an conversation" }, - { - "name": "cwsprChatTotalCodeBlocks", - "type": "int", - "description": "Total number of code blocks inside a message in the conversation." - }, { "name": "cwsprChatProgrammingLanguage", "type": "string", "description": "Programming language associated with the message" }, + { + "name": "cwsprChatTotalCodeBlocks", + "type": "int", + "description": "Total number of code blocks inside a message in the conversation." + }, { "name": "cwsprChatUserIntent", "type": "string",