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
已提问 2 年前268 查看次数
3 回答
1
已接受的回答

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
已回答 2 年前
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
已回答 2 年前
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
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则