[aws-cloudwatch] GraphWidget support for different view types #11177
Labels
@aws-cdk/aws-cloudwatch
Related to Amazon CloudWatch
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
Analogous feature request to #9675
Currently GraphWidget only supports 'timeSeries' view. We should be able to create bar/pie charts from metrics.
Cloudformation supports (timeSeries | singleValue | bar | pie). ref: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html#CloudWatch-Dashboard-Properties-Metric-Widget-Object
aws-cdk/packages/@aws-cdk/aws-cloudwatch/lib/graph.ts
Line 217 in 09e994a
aws-cdk/packages/@aws-cdk/aws-cloudwatch/lib/graph.ts
Line 270 in 09e994a
Use Case
Proposed Solution
It looks like we've already got a SingleValueWidget in this library, so we probably want to implement this with that pattern and create two new classes for the missing types (bar & pie).
Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: