-
Notifications
You must be signed in to change notification settings - Fork 429
Feature request: support metrics with unit "None" #4834
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
Comments
Thanks for opening your first issue here! We'll come back to you as soon as we can. |
I was wrong, Python does indeed care about |
|
This is now released under 2.43.0 version! |
Use case
https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html reports that "None" is a valid unit for CloudWatch metrics, but the
MetricUnit
enum does not have a member for this unit.The lack of such a member means that there is no way to create metrics with unit "None" via Powertools. One cannot pass the string
"None"
as theunit
parameter ofMetric.add_metric
, due to this code.Solution/User Experience
Of course, I realize that a
MetricUnit
member for "None" cannot be namedNone
, but can a member with a different name (perhaps namedNone_
orNoUnit
) please be added to the enum?Alternative solutions
No response
Acknowledgment
The text was updated successfully, but these errors were encountered: