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
gefragt vor 2 Jahren268 Aufrufe
3 Antworten
1
Akzeptierte Antwort

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
beantwortet vor 2 Jahren
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
beantwortet vor 2 Jahren
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
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen