NotifyContentFormat

更新时间:
复制 MD 格式

The NotifyContentFormat field specifies the message content format that SMQ uses to push messages to an Endpoint.

  • XML

    • The message body is in XML format and includes the message content and message attributes.

    • HttpEndpoint and QueueEndpoint support this format.

    • Message example:

      <?xml version="1.0" encoding="utf-8"?>
          <Notification xlmns="http://mns.aliyuncs.com/doc/v1/">
              <TopicOwner>TopicOwner</TopicOwner>
              <TopicName>TopicName</TopicName>
              <Subscriber>Subscriber</Subscriber>
              <SubscriptionName>SubscriptionName</SubscriptionName>
              <MessageId>6CC4D900CA59A2CD-1-15180534A8F-20000****</MessageId>
              <Message>{1:"a", 2:"b"}</Message>
              <MessageMD5>F1E92841751D795AB325861034B5****</MessageMD5>
              <MessageTag>important</MessageTag>
              <PublishTime>1449556920975</MessagePublishTime>
          </Notification>
  • JSON

    • The message body is in JSON format and includes the message content and message attributes.

    • HttpEndpoint and QueueEndpoint support this format.

    • Message example:

      {
          "TopicOwner":"TopicOwner",
          "TopicName":"TopicName",
          "Subscriber":"Subscriber",
          "SubscriptionName":"SubscriptionName",
          "MessageId":"6CC4D900CA59A2CD-1-15180534A8F-20000****",
          "Message":"xxxxx",
          "MessageMD5":"F1E92841751D795AB325861034B5****",
          "MessageTag":"important",
          "PublishTime":"1449556920975"
      }
  • SIMPLIFIED

    • The message body is the raw published message and does not include any attributes.

    • HttpEndpoint, QueueEndpoint, and MailEndpoint support this format.

    • Message body example:

      {1:"a", 2:"b"}