SES GetSendStatistics has a drifting timestamp?

0

I've started using SES recently and I'm trying to keep track of the usage using the GetSendStatistics API call (https://docs.aws.amazon.com/ses/latest/APIReference/API_GetSendStatistics.html). I thought that I could store the received SendDataPoints and use the Timestamp information as a unique key as the result of the API call can overlap in periods. I noticed that the Timestamp changes per API call. This makes it impossible to rule out duplicate SendDataPoints when I do a daily or hourly call to the GetSendStatistics API.

How do others track their SES usage via an API? (including the bounces, complaints, etc.. )

richard
asked 2 years ago262 views
3 Answers
1
Accepted Answer

Good Question!

One AWS-native way to do this is to publish metrics to CloudWatch. This would require SES Event Publishing and a Configuration Set (along with message/auto-tags) to categorize them. That can provide more granular metrics past the GetSendStatistics API call or Amazon SES console.

You can publish to Kinesis Data Firehose or SNS as well.

More information here:

jsonc
answered 2 years ago
0

Thank you for your answer I will need to give this a try and see if this solves my problem. Give me a few days...

Several questions bug me:

  • Why is the GetSendStatistics API not useable for this? What's the use case that this API solves.
  • Why do I need to build my own scaffolding to monitor usage? AWS needs these internally as well, why not expose this. How can we verify the numbers in any other way...
richard
answered 2 years ago
0

The CloudWatch option does give me insight in the usage as you indicated. This solves the biggest problem I had of getting proper insight in usage.

I still think there is an issue with the GetSendStatistics API which in my opionin isn't suited for its intended purpose. I hope someone can shed some light on its use case because I don't understand it.

richard
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions