Skip to content

Set the yAxis of a metric in a widget #20102

Open
@harrisonhjones

Description

@harrisonhjones

Describe the feature

I would like to be able to set the yAxis value of a metric using the CDK. As per https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html it's defined as:

yAxis
Where on the graph to display the y-axis for this metric. The default is left.

Valid Values: left | right

Type: String

Required: No

Use Case

Without the ability to change the yAxis value of a metric I have to graph some metric math expressions on an entirely different graph to avoid conflicting units and scale. This is incredibly frustrating and results in a suboptimal dashboard.

Proposed Solution

Add the ability to set the yAxis value for a metric. Similar to how we can already set color and label.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

1

Environment details (OS name and version, etc.)

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-cloudwatchRelated to Amazon CloudWatcheffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.feature/coverage-gapGaps in CloudFormation coverage by L2 constructsfeature/enhancementA new API to make things easier or more intuitive. A catch-all for general feature requests.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions