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.. )

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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ