Open
Description
Describe the feature
The current LogQueryWidget construct does not support the queryLanguage property, so i can not generate a widget with an SQL query for example.
Please add a that property for all supported query languages.
Use Case
const clientWidget = new cloudWatch.LogQueryWidget({
height: 6,
width: 8,
logGroupNames: ['/aws/appsync/apis/72nizn776jgsxppswuklp5d4oe'],
queryString: "SELECT window.start, count(`statusCode`) as graph_QL_Requests, \n count(if(`statusCode` = 200, true, null)) as OK_200,\n count(if(`statusCode` = 401, true, null)) as Fail_401, \n count(if(`logType` not like \"%Summary%\", true, null)) as errors\nFROM `/aws/appsync/apis/72nizn776jgsxppswuklp5d4oe`\nWHERE `@message` like \"%logType%\"\nGROUP BY window(`@timestamp`, '5 minute')",
queryLanguage: "SQL",
region: "eu-central-1",
title: "Graph QL Requests. One request can produce multiple errors.",
view: cloudWatch.LogQueryVisualizationType.LINE
})
Proposed Solution
No response
Other Information
Creating the widget from the aws web console generates the needed queryLanguage property.
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
AWS CDK Library version (aws-cdk-lib)
2.196.0
AWS CDK CLI version
2.1014.0
Environment details (OS name and version, etc.)
mac os