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ヶ月前
関連するコンテンツ
- AWS公式更新しました 2年前