Skip to content

Commit 97e3c59

Browse files
authored
docs(aws-cloudwatch): Fix example for MathExpression (#22933)
In the commit f37991c the example was changed to use a different metric to make it compile. Unfortunately the `id` for the metric was only updated in its use not in the definition. This can be a bit confusing when reading the example for the first time and if used as is it would not result in the intended behavior. Therefore I updated the example. ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent bb28823 commit 97e3c59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@aws-cdk/aws-cloudwatch/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const allProblems = new cloudwatch.MathExpression({
7575
expression: "errors + throttles",
7676
usingMetrics: {
7777
errors: fn.metricErrors(),
78-
faults: fn.metricThrottles(),
78+
throttles: fn.metricThrottles(),
7979
}
8080
});
8181
```

0 commit comments

Comments
 (0)