From 5c2ff3acece4a4a4a7763e0db4ef5f2cde8e03e0 Mon Sep 17 00:00:00 2001 From: Jacob Chung Date: Thu, 5 Dec 2024 14:47:55 -0800 Subject: [PATCH 1/2] add amazonq_utgGenerateTests metric with types --- telemetry/definitions/commonDefinitions.json | 151 +++++++++++++++++++ 1 file changed, 151 insertions(+) diff --git a/telemetry/definitions/commonDefinitions.json b/telemetry/definitions/commonDefinitions.json index 52c58930b..e40129714 100644 --- a/telemetry/definitions/commonDefinitions.json +++ b/telemetry/definitions/commonDefinitions.json @@ -1797,6 +1797,71 @@ "name": "xrayEnabled", "type": "boolean", "description": "Whether or not AWS X-Ray is enabled" + }, + { + "name": "acceptedCharactersCount", + "type": "int", + "description": "The number of accepted characters" + }, + { + "name": "acceptedCount", + "type": "int", + "description": "The number of accepted cases" + }, + { + "name": "acceptedLinesCount", + "type": "int", + "description": "The number of accepted lines of code" + }, + { + "name": "buildPayloadBytes", + "type": "int", + "description": "The uncompressed payload size in bytes of the source files in customer project context" + }, + { + "name": "buildZipFileBytes", + "type": "int", + "description": "The compressed payload size of source files in bytes of customer project context sent" + }, + { + "name": "generatedCharactersCount", + "type": "int", + "description": "Number of characters of code generated" + }, + { + "name": "generatedCount", + "type": "int", + "description": "The number of generated cases" + }, + { + "name": "generatedLinesCount", + "type": "int", + "description": "The number of generated lines of code" + }, + { + "name": "hasUserPromptSupplied", + "type": "boolean", + "description": "True if user supplied prompt message as input else false" + }, + { + "name": "isCodeBlockSelected", + "type": "boolean", + "description": "True if user selected code snippet as input else false" + }, + { + "name": "isSupportedLanguage", + "type": "boolean", + "description": "Indicate if the language is supported" + }, + { + "name": "jobGroup", + "type": "string", + "description": "Job group name used in the operation" + }, + { + "name": "jobId", + "type": "string", + "description": "Job id used in the operation" } ], "metrics": [ @@ -7139,6 +7204,92 @@ "type": "result" } ] + }, + { + "name": "amazonq_utgGenerateTests", + "description": "Client side invocation of the AmazonQ Unit Test Generation", + "metadata": [ + { + "type": "acceptedCharactersCount", + "required": false + }, + { + "type": "acceptedCount", + "required": false + }, + { + "type": "acceptedLinesCount", + "required": false + }, + { + "type": "artifactsUploadDuration", + "required": false + }, + { + "type": "buildPayloadBytes", + "required": false + }, + { + "type": "buildZipFileBytes", + "required": false + }, + { + "type": "credentialStartUrl", + "required": false + }, + { + "type": "cwsprChatProgrammingLanguage" + }, + { + "type": "generatedCharactersCount", + "required": false + }, + { + "type": "generatedCount", + "required": false + }, + { + "type": "generatedLinesCount", + "required": false + }, + { + "type": "hasUserPromptSupplied" + }, + { + "type": "isCodeBlockSelected", + "required": false + }, + { + "type": "isSupportedLanguage" + }, + { + "type": "jobGroup", + "required": false + }, + { + "type": "jobId", + "required": false + }, + { + "type": "perfClientLatency", + "required": false + }, + { + "type": "result" + }, + { + "type": "reason", + "required": false + }, + { + "type": "reasonDesc", + "required": false + }, + { + "type": "source", + "required": false + } + ] } ] } \ No newline at end of file From 55bb29c5b2ad2fe8af380b24bbf07667189aa9ee Mon Sep 17 00:00:00 2001 From: Jacob Chung Date: Thu, 5 Dec 2024 15:19:58 -0800 Subject: [PATCH 2/2] fix lint issue --- telemetry/definitions/commonDefinitions.json | 302 +++++++++---------- 1 file changed, 151 insertions(+), 151 deletions(-) diff --git a/telemetry/definitions/commonDefinitions.json b/telemetry/definitions/commonDefinitions.json index e40129714..008f5bb6c 100644 --- a/telemetry/definitions/commonDefinitions.json +++ b/telemetry/definitions/commonDefinitions.json @@ -1,5 +1,20 @@ { "types": [ + { + "name": "acceptedCharactersCount", + "type": "int", + "description": "The number of accepted characters" + }, + { + "name": "acceptedCount", + "type": "int", + "description": "The number of accepted cases" + }, + { + "name": "acceptedLinesCount", + "type": "int", + "description": "The number of accepted lines of code" + }, { "name": "action", "type": "string", @@ -178,11 +193,21 @@ "type": "int", "description": "The amount of time required for the build to complete (in seconds)." }, + { + "name": "buildPayloadBytes", + "type": "int", + "description": "The uncompressed payload size in bytes of the source files in customer project context" + }, { "name": "buildSystemVersion", "type": "string", "description": "The build system version on the user's machine" }, + { + "name": "buildZipFileBytes", + "type": "int", + "description": "The compressed payload size of source files in bytes of customer project context sent" + }, { "name": "causedBy", "type": "string", @@ -1284,6 +1309,21 @@ "type": "string", "description": "Application framework being used" }, + { + "name": "generatedCharactersCount", + "type": "int", + "description": "Number of characters of code generated" + }, + { + "name": "generatedCount", + "type": "int", + "description": "The number of generated cases" + }, + { + "name": "generatedLinesCount", + "type": "int", + "description": "The number of generated lines of code" + }, { "name": "generateFailure", "type": "string", @@ -1312,6 +1352,11 @@ "type": "boolean", "description": "A time based filter was used" }, + { + "name": "hasUserPromptSupplied", + "type": "boolean", + "description": "True if user supplied prompt message as input else false" + }, { "name": "httpMethod", "type": "string", @@ -1400,6 +1445,11 @@ "type": "boolean", "description": "Whether this was an individual point or an aggregation of points." }, + { + "name": "isCodeBlockSelected", + "type": "boolean", + "description": "True if user selected code snippet as input else false" + }, { "name": "isReAuth", "type": "boolean", @@ -1410,6 +1460,21 @@ "type": "boolean", "description": "Whether or not the operation was a retry" }, + { + "name": "isSupportedLanguage", + "type": "boolean", + "description": "Indicate if the language is supported" + }, + { + "name": "jobGroup", + "type": "string", + "description": "Job group name used in the operation" + }, + { + "name": "jobId", + "type": "string", + "description": "Job id used in the operation" + }, { "name": "lambdaArchitecture", "type": "string", @@ -1797,71 +1862,6 @@ "name": "xrayEnabled", "type": "boolean", "description": "Whether or not AWS X-Ray is enabled" - }, - { - "name": "acceptedCharactersCount", - "type": "int", - "description": "The number of accepted characters" - }, - { - "name": "acceptedCount", - "type": "int", - "description": "The number of accepted cases" - }, - { - "name": "acceptedLinesCount", - "type": "int", - "description": "The number of accepted lines of code" - }, - { - "name": "buildPayloadBytes", - "type": "int", - "description": "The uncompressed payload size in bytes of the source files in customer project context" - }, - { - "name": "buildZipFileBytes", - "type": "int", - "description": "The compressed payload size of source files in bytes of customer project context sent" - }, - { - "name": "generatedCharactersCount", - "type": "int", - "description": "Number of characters of code generated" - }, - { - "name": "generatedCount", - "type": "int", - "description": "The number of generated cases" - }, - { - "name": "generatedLinesCount", - "type": "int", - "description": "The number of generated lines of code" - }, - { - "name": "hasUserPromptSupplied", - "type": "boolean", - "description": "True if user supplied prompt message as input else false" - }, - { - "name": "isCodeBlockSelected", - "type": "boolean", - "description": "True if user selected code snippet as input else false" - }, - { - "name": "isSupportedLanguage", - "type": "boolean", - "description": "Indicate if the language is supported" - }, - { - "name": "jobGroup", - "type": "string", - "description": "Job group name used in the operation" - }, - { - "name": "jobId", - "type": "string", - "description": "Job id used in the operation" } ], "metrics": [ @@ -2320,6 +2320,92 @@ } ] }, + { + "name": "amazonq_utgGenerateTests", + "description": "Client side invocation of the AmazonQ Unit Test Generation", + "metadata": [ + { + "type": "acceptedCharactersCount", + "required": false + }, + { + "type": "acceptedCount", + "required": false + }, + { + "type": "acceptedLinesCount", + "required": false + }, + { + "type": "artifactsUploadDuration", + "required": false + }, + { + "type": "buildPayloadBytes", + "required": false + }, + { + "type": "buildZipFileBytes", + "required": false + }, + { + "type": "credentialStartUrl", + "required": false + }, + { + "type": "cwsprChatProgrammingLanguage" + }, + { + "type": "generatedCharactersCount", + "required": false + }, + { + "type": "generatedCount", + "required": false + }, + { + "type": "generatedLinesCount", + "required": false + }, + { + "type": "hasUserPromptSupplied" + }, + { + "type": "isCodeBlockSelected", + "required": false + }, + { + "type": "isSupportedLanguage" + }, + { + "type": "jobGroup", + "required": false + }, + { + "type": "jobId", + "required": false + }, + { + "type": "perfClientLatency", + "required": false + }, + { + "type": "reason", + "required": false + }, + { + "type": "reasonDesc", + "required": false + }, + { + "type": "result" + }, + { + "type": "source", + "required": false + } + ] + }, { "name": "amazonq_viewChatPanel", "description": "Captures if Q chat panel is successfully viewed or not", @@ -7204,92 +7290,6 @@ "type": "result" } ] - }, - { - "name": "amazonq_utgGenerateTests", - "description": "Client side invocation of the AmazonQ Unit Test Generation", - "metadata": [ - { - "type": "acceptedCharactersCount", - "required": false - }, - { - "type": "acceptedCount", - "required": false - }, - { - "type": "acceptedLinesCount", - "required": false - }, - { - "type": "artifactsUploadDuration", - "required": false - }, - { - "type": "buildPayloadBytes", - "required": false - }, - { - "type": "buildZipFileBytes", - "required": false - }, - { - "type": "credentialStartUrl", - "required": false - }, - { - "type": "cwsprChatProgrammingLanguage" - }, - { - "type": "generatedCharactersCount", - "required": false - }, - { - "type": "generatedCount", - "required": false - }, - { - "type": "generatedLinesCount", - "required": false - }, - { - "type": "hasUserPromptSupplied" - }, - { - "type": "isCodeBlockSelected", - "required": false - }, - { - "type": "isSupportedLanguage" - }, - { - "type": "jobGroup", - "required": false - }, - { - "type": "jobId", - "required": false - }, - { - "type": "perfClientLatency", - "required": false - }, - { - "type": "result" - }, - { - "type": "reason", - "required": false - }, - { - "type": "reasonDesc", - "required": false - }, - { - "type": "source", - "required": false - } - ] } ] } \ No newline at end of file