cloudwatch: support bands in horizontal and vertical annotations #29070
Labels
@aws-cdk/aws-cloudwatch
Related to Amazon CloudWatch
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
Horizontal and Vertical annotations support declaring a band (from, to) as can be seen in Horizontal Annotations and Vertical Annotations sections in https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html
The current implementation assumes just a single value with an above/below before/after shading
Use Case
Showing bands in metrics widgets, and coloring cells in the yet-to-be-implemented table widget #28975
Proposed Solution
A likely nice implementation would've been to change
HorizontalAnnotation
andVerticalAnnotation
to classes with factory methods and atoJson
orrender
method.This, however, would be a breaking change.
As such, I'm not sure what the best approach would be, I can think of some options
label
andvalue
of the other point in the range. This, however, will require widgets to check for that field, and render accordingly.Other Information
I might be able to contribute a change, if discussions here lead to an agreed on approach
Acknowledgements
CDK version used
2.125.0
Environment details (OS name and version, etc.)
macOS
The text was updated successfully, but these errors were encountered: