AWS SNS 传送状态 [英] AWS SNS delivery status
问题描述
我是 Aws 新手,我正在使用 Aws SNS 发送通知,我将通知发送到不同的主题而不是端点.这是完美的工作.
I am new in Aws, I am using Aws SNS to send notification, i am sending notifications to different topic not to endpoint. This is working perfectly.
当我publish
通知时,我得到了像
When i publish
notification, i got array like
object(AwsResult)#84 (1) {
["data":"AwsResult":private]=>
array(2) {
["MessageId"]=>
string(36) "************-7a29-591f-8765-************"
["@metadata"]=>
array(4) {
["statusCode"]=>
int(200)
["effectiveUri"]=>
string(40) "https://sns.ap-southeast-1.amazonaws.com"
["headers"]=>
array(4) {
["x-amzn-requestid"]=>
string(36) "************-b737-5831-abf4-************"
["content-type"]=>
string(8) "text/xml"
["content-length"]=>
string(3) "294"
["date"]=>
string(29) "Fri, 28 Oct 2016 08:59:05 GMT"
}
["transferStats"]=>
array(1) {
["http"]=>
array(1) {
[0]=>
array(0) {}
}
}
}
}
我在服务器端使用 php,如何通过此message id
获取所有收件人的通知发送状态?
I am using php at server side,
How can i get notification delivery status of all recepients by this message id
?
感谢期待者.
推荐答案
您在询问如何获取通过 Amazon SNS 发送的消息的通知发送状态.
You are asking how to obtain notification delivery status of messages sent via Amazon SNS.
使用 Amazon SNS 主题属性进行消息传送状态文档说:
Amazon SNS 支持记录发送到具有以下 Amazon SNS 端点的主题的通知消息的传送状态:
Amazon SNS provides support to log the delivery status of notification messages sent to topics with the following Amazon SNS endpoints:
- 申请
- HTTP
- Lambda
- SQS
配置消息传送状态属性后,日志条目将发送到 CloudWatch Logs,用于发送到订阅 Amazon SNS 终端节点的主题的消息.
After you configure the message delivery status attributes, log entries will be sent to CloudWatch Logs for messages sent to a topic subscribed to an Amazon SNS endpoint.
我找不到通过 message_id
请求状态的特定 API 调用.相反,日志信息似乎已发送到 CloudWatch Logs.您需要解析日志以发现状态.
I could not find a specific API call to request status by message_id
. Instead, it appears that the logging information is sent to CloudWatch Logs. You would need to parse the logs to discover the status.
这篇关于AWS SNS 传送状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!