cloudwatch.Metric.put_data() docs inaccurate or incomplete?
See original GitHub issueI was looking at how to use the Metric
resource in the cloudwatch
namespace, and I was surprised to see that its put_data
method doesn’t accept any arguments, according to the docs. I expect that this is a mistake, since the seemingly analogous put_metric_data
client method does mention parameters in its docs. In fact, the two functions’ docstrings are identical, except that put_metric_data
has **kwargs
in its signature, and the example request reflects the required parameters.
I’m about to test this out, so I guess I’ll find out if I understand this right. 😃 Unfortunately, since boto3 is very meta-programmed, it’s very difficult for me to figure out how to call this function simply by looking at the source code.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:16
- Comments:8 (3 by maintainers)
Top Results From Across the Web
PutMetricData - Amazon CloudWatch - AWS Documentation
Publishes metric data points to Amazon CloudWatch. CloudWatch associates the data points with the specified metric. If the specified metric does not exist, ......
Read more >class CloudWatch. Client - Boto3 Docs 1.26.34 documentation
Amazon CloudWatch monitors your Amazon Web Services (Amazon Web Services) resources and ... For all other expressions and metrics, set ReturnData to false...
Read more >Put data into a CloudWatch metric using an Amazon SDK
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, ...
Read more >@aws-cdk/aws-autoscaling-common | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn.
Read more >Amazon Managed Streaming for Apache Kafka (Amazon MSK)
To put data in the my-input-stream Kinesis Data Stream, ... It integrates with other AWS services such as Amazon CloudWatch, where you can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@brettdh, @boolafish, and @joguSD Here’s a code snippet I used:
I think it pulls most of the structure directly from the API docs: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutMetricData.html
@choughton85 - Yes you are right. It pulls most of the structure directly from API docs. Boto3 resource documentation is definitely lacking all these parameter. We should update our documentation.
I would mark this as documentation and see what can i do to update the documentation.