4.4.3 Send Alarm Example 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 alarm “BOP pressure dropped” with the value attributes described in the table below.

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

Severity

5

Example ChannelData message or an alarm:


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

"protocol":1,

"messageType":3,

"correlationId":0,

"messageId":4,

"messageFlags":1}{  

"data": [    {      

"indexes": [1492208102193729      ],      

"channelId": 1,      

"value": {        

"item": "BOP pressure dropped"      },      

"valueAttributes": [        {          

"attributeId": 0,          

"attributeValue": {            

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

"attributeId": 1,          

"attributeValue": {            

"item": 5.0          }        }      ]    }  ]}