AWS SNS交付状态 [英] AWS SNS delivery status

查看:168
本文介绍了AWS SNS交付状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是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通知时,我得到了

object(Aws\Result)#84 (1) {
    ["data":"Aws\Result":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终端节点发送到主题的通知消息的交付状态:

  • 应用程序
  • HTTP
  • Lambda
  • SQS
  • Application
  • 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆