This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Amazon.CloudWatch.Model.MetricDatum timestamp is not set correctly #3329
Labels
bug
This issue is a bug.
p2
This is a standard priority issue
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
Hello,
I am trying to send multiple metrics to CloudWatch using AWSSDK.CloudWatch NuGet via PutMetricDataAsync.
I am sending a List<MetricDatum>. When debugging, each MetricDatum has the TimestampUtc attribute set correctly(Timestamp attribute is the same -- I understand from the docs that this is the expected behavior).
When accessing the AWS Console, the datapoints are set wrong, setting the graph time to "UTC timezone" will show me the datapoint as happening with 3 hours before the TimestampUtc I set in the code!!!
Expected Behavior
To see the datapoints I sent at the correct timestamp in the graph.
Current Behavior
When accessing the AWS Console, the datapoints are set wrong, setting the graph time to "UTC timezone" will show me the datapoint as happening with 3 hours before the TimestampUtc I set in the code!!!
Reproduction Steps
Try sending a list of MetricDatum via PutMetricDataAsync function from AWSSDK.CloudWatch NuGet.
Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
AWSSDK.CloudWatch 3.7.304.21
Targeted .NET Platform
.NET 7
Operating System and version
Windows 10, Windows 11
The text was updated successfully, but these errors were encountered: