2 Answers
- Newest
- Most votes
- Most comments
1
Hi, re:Post is not monitored by AWS support team. So, your issue may not be worked on You should open such tickets via the AWS console of your account: go to https://support.console.aws.amazon.com/support/home?region=us-west-2# (adapt with your own region)
When on page, click link "Create Case"
0
The complaint rate calculation has a bug, it's showing a totally different value compared to what's the real metrics give by total(complaint) / total(sent).
I've spent some time writing this script to calculate the correct value.
Please submit it to the technical team to review, I don't have that level of subscription.
SEND=$(aws cloudwatch get-metric-statistics \
--namespace AWS/SES --metric-name Send \
--start-time 2023-01-01 --end-time 2024-01-01 \
--period 864000000 --statistics Sum --query 'Datapoints[0].Sum')
BOUNCE=$(aws cloudwatch get-metric-statistics \
--namespace AWS/SES --metric-name Bounce \
--start-time 2023-01-01 --end-time 2024-01-01 \
--period 864000000 --statistics Sum --query 'Datapoints[0].Sum')
COMPLAINT=$(aws cloudwatch get-metric-statistics \
--namespace AWS/SES --metric-name Complaint \
--start-time 2023-01-01 --end-time 2024-01-01 \
--period 864000000 --statistics Sum --query 'Datapoints[0].Sum')
BOUNCE_RATE=$(bc <<< "scale=4; ($BOUNCE/$SEND)*100")
COMPLAINT_RATE=$(bc <<< "scale=4; ($COMPLAINT/$SEND)*100")
echo "bounce rate: $BOUNCE_RATE%"
echo "complaint rate: $COMPLAINT_RATE%"
answered 5 months ago
Relevant content
- asked 2 years ago
- asked 4 months ago
- asked 5 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago