4.4.4 Example Send Alert ChannelData Message

Topic Version1Published10/16/2017
For StandardETPW20 v1

The example here shows the message received by a channel-streaming consumer (in response to the ChannelMetadata message in Section 4.4.2 ChannelMetadata Message ) for the alert “Tropical storm warning” with the value Attributes shown in the table.

These metadata attributes must be included; optionally, additional metadata attributes and values can be specified.

Attribute ID

Attribute Name

Attribute Value

0

Target URI

eml://witsml20/RigUtilization(f781dea4-0255-43d4-a3df-b0be17c25ca8)

1

Type

Weather

Example ChannelData message for an alert:


// [e5245366-2d61-4769-89a1-e36475439f28] Message received at 2017-04-14 17:21:03.7521{

"protocol":1,

"messageType":3,

"correlationId":0,

"messageId":5,

"messageFlags":1}{  

"data": [    {      

"indexes": [1492208463740115      ],      

"channelId": 2,      

"value": {        

"item": "Tropical storm warning"      },      

"valueAttributes": [        {          

"attributeId": 0,          

"attributeValue": {            

"item": "eml://witsml20/RigUtilization(f781dea4-0255-43d4-a3df-b0be17c25ca8)"          }        },        {          

"attributeId": 1,          

"attributeValue": {            

"item": "Weather"          }        }      ]    }  ]}