2 個答案
- 最新
- 最多得票
- 最多評論
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%"
已回答 6 個月前
相關內容
- 已提問 1 年前
- AWS 官方已更新 2 年前