-
Notifications
You must be signed in to change notification settings - Fork 4k
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
cloudwatch: Unrecognized statistic warning when using Stats
helper.
#29465
cloudwatch: Unrecognized statistic warning when using Stats
helper.
#29465
Comments
I also found that there's no way to generate open upper bounds, like |
yes we probably should fix here aws-cdk/packages/aws-cdk-lib/aws-cloudwatch/lib/metric.ts Lines 307 to 321 in 00e8a7b
|
Had a quick look the percentileRank statistic is missing from here: Adding the percentileRank should fix the issue. I will draft a PR later |
…Rank statistic in Stats helper (#29498) ### Issue # (if applicable) Closes #29465. ### Reason for this change There shouldn't be a warning when `Stats.percentileRank` ### Description of changes Add a new parser for percentileRank statistic ### Description of how you validated changes unit test ### Checklist - [ ] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Describe the bug
CDK can generate Unrecognized statistic warnings even when using the Stats helper.
Expected Behavior
The warning says to use the stats helper, and the helper is (somtimes, more on that later) generating valid statistics so there should not be any warnings.
Current Behavior
PR(:0)
is a valid statisticReproduction Steps
Additionally while I was writing this bug report I realized that Stats can generate actually invalid statitsics without a type error if you pass
Infinity
, orNaN
.Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.132.1 (build 9df7dd3)
Framework Version
2.132.1
Node.js Version
v20.10.0
OS
Ubuntu
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: