1 Answers
0
Hi, I think it's because you have Unit=Bytes. The defined unit for BytesDownloaded is None. Try omitting "Unit" from your query.
From the boto3 documentation:
In a Get operation, if you omit Unit then all data that was collected with any unit is returned, along with the corresponding units that were specified when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions.
Also make sure you're querying us-east-1 (you're probably already doing that).
answered a month ago
Relevant questions
How to get recommendations from Domain dataset recommender with the SDK for Python (Boto3).
Accepted Answerasked 8 months agocloudfront distribution with several origins
Accepted Answerasked 6 months agoWAF list_web_acls works with CLI but returns empty array with Boto3 inside lambda
Accepted Answerasked 4 months agoUsing Lightsail with Cloudfront
asked 2 years agoHow to get the enable / disable of the trigger set in lambda with boto3.
asked 3 years agoError adding alternate domain to CloudFront distribution
asked 4 months agoCan a CloudFront distribution have a chain of failover origins?
asked a month agoFind the Lambda endpoints using Python Boto3 SDK
asked 6 months agoCan a CloudFront origin be another CloudFront distribution?
asked 4 months agoBoto3 SDK get_metric_data returned empty values
asked a month ago