Files
doc-exports/docs/smn/umn/smn_ug_a3000.html
wanghuijuan738 121e69b195 SMN UMN 20240726 version
Reviewed-by: Rumpler, Mihály <mihaly.rumpler@t-systems.com>
Co-authored-by: wanghuijuan738 <wanghuijuan738@huawei.com>
Co-committed-by: wanghuijuan738 <wanghuijuan738@huawei.com>
2025-02-21 10:39:55 +00:00

7.9 KiB

Messages Using Different Protocols

Message contents delivered to endpoints using different protocols may differ.

  • Email or HTTP/HTTPS endpoints will receive the message subject, content, and a link to unsubscribe.
  • SMS endpoints receive only the message content.
  • FunctionGraph (function) messages contain the message attributes, subject, content, and topic URN. Table 1 describes parameters in FunctionGraph (function) messages. The following is an example message:
    {     
       "record": [{
           "event_version": "1.0",         
           "smn": {             
               "message_attributes": "",            
               "subject": "Welcome",            
               "message_id": "e6fa59c6b3e0424c9c02cbed35b680e7", 
               "topic_urn": "urn:smn:regionId:66e0f4622d6f4e3fb2db2e495298a61a:smn_123",           
               "type": "notification",             
               "message": "Hello",            
               "timestamp": "2017-08-17T10:07:14Z"                             },        
           "event_source": "smn",        
           "event_subscription_urn": "urn:cff:regionId:66e0f4622d6f4e3fb2db2e495298a61a:function:DEFAULT:mytest:latest"     
           }]
    }
    Table 1 Parameters in a FunctionGraph (function) message

    Parameter

    Type

    Description

    record

    JSON object

    Message list

    event_version

    String

    Version

    message_attributes

    String

    Message attributes

    subject

    String

    Message subject

    message_id

    String

    Message ID

    topic_urn

    String

    Topic URN

    type

    String

    Message type

    message

    String

    Message content

    timestamp

    String

    Timestamp

    event_source

    String

    Message source

    event_subscription_urn

    String

    Subscription URN