Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cloudwatch): period of each metric in usingMetrics for MathExpression is ignored #30986

Merged
merged 10 commits into from
Dec 11, 2024
Next Next commit
docs(cloudwatch): add description of ignoring period of each metrics …
…in math expression
go-to-k committed Jul 31, 2024

Verified

This commit was signed with the committer’s verified signature.
renovate-bot Mend Renovate
commit af0c17605d9de8f6c7eec432bd870532f19ff88e
3 changes: 3 additions & 0 deletions packages/aws-cdk-lib/aws-cloudwatch/lib/metric.ts
Original file line number Diff line number Diff line change
@@ -226,6 +226,9 @@ export interface MathExpressionProps extends MathExpressionOptions {
* The key is the identifier that represents the given metric in the
* expression, and the value is the actual Metric object.
*
* The `period` of each Metric object is ignored and instead overridden
* by the `period` of this MathExpression object.
*
* @default - Empty map.
*/
readonly usingMetrics?: Record<string, IMetric>;