-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Documentation Issue: Aws::CloudWatch::Model::MetricDatum does not specify the units of the "timestamp" field #28
Comments
double in timestamp is Amazon's timestamp format. It is in seconds.milliseconds |
seconds.milliseconds from epoch |
Would it be possible to add that information to the documentation comments for the functions I listed above? That's where I went to try to figure it out originally. |
This documentation comes directly from the service docs. We can talk to the owners of that documentation and work on getting it updated. Thanks for the callout! |
We've reworked date timestamp fields to make this easier to work with and remove the need for extensive documentation. Have a look at aws-cpp-sdk-core/include/aws/core/utils/DateTime.h for more info and reopen if you still have issues. |
Fixes for Windows curl support
The "timestamp" field of a CloudWatch MetricDatum is used to tag a piece of data with the time at which it occurred. The AWS SDK CPP specifies this timestamp field as a
double
type, but does not indicate what thedouble
actually represents.Here is the current documentation from the MetricDatum.h file:
Should the
double
be interpreted as milliseconds since the 1970 epoch? Or seconds? Or something else entirely? CloudWatch itself expects an 8601 ISO formatted timestamp, so it is not entirely clear how thisdouble
field maps onto that timestamp.Alternately, would it make sense to have a variant of the setters for timestamp that takes in a std::chrono::time_point (http://en.cppreference.com/w/cpp/chrono/time_point) object?
The text was updated successfully, but these errors were encountered: