Administrator
- Administrator
- All Products
Key | Type | Required | Description |
|---|---|---|---|
ClientID | String | - | Unique identifier of the connection between the MQTT source
and the MQTT broker. The client ID is the file-based persistence store that the
MQTT source uses to store messages while they are processed. You can enter a
string of up to 255 characters. |
MaxQueueSize | Integer | - | The maximum number of messages that the processor can store
in memory. You can enter a value between 1 and 2147483647. |
Topic | String | Yes | Name of the MQTT topic. |
POST <serverUrl>/sisvc/restapi/v1/UpdateEntity/Documents('<document ID>') Content-Type: application/json Accept: application/json IDS-SESSION-ID: <SessionId> { "name": "mqtt to flatfile", "description": "mqtt to flatfile", "runtimeId": "01000025000000000003", "locationId": "5sJ0JDyJyWLlrosS5qJjsQ", "currentVersion": "2", "messageFormat": "binary", "nodes": [ { "name": "mqtt to flatfile_source", "type": "source", "connectionId": "012MGS0B00000000001O", "transformationType": "", "config": [ { "key": "ClientID", "value": "test" }, { "key": "MaxQueueSize", "value": 1024 }, { "key": "Topic", "value": "test" } ] }, { "name": "mqtt to flatfile_target", "type": "target", "connectionId": "012MGS0B00000000002N", "transformationType": "", "config": [ { "key": "interimDirectory", "value": "/home/agent/test" }, { "key": "rolloverSize", "value": 1024 }, { "key": "rolloverEvents", "value": 100 }, { "key": "rolloverTime", "value": 300000 }, { "key": "File Name", "value": "test" } ] } ], "edges": [ { "from": "mqtt to flatfile_source", "to": "mqtt to flatfile_target" } ] }
{ "Success": { "name": "mqtt to flatfile", "description": "mqtt to flatfile", "runtimeId": "01000025000000000003", "locationId": "5sJ0JDyJyWLlrosS5qJjsQ", "currentVersion": "2", "messageFormat": "binary", "nodes": [ { "name": "mqtt to flatfile_source", "type": "source", "connectionId": "012MGS0B00000000001O", "transformationType": "", "config": [ { "key": "ClientID", "value": "test" }, { "key": "MaxQueueSize", "value": 1024 }, { "key": "Topic", "value": "test" } ] }, { "name": "mqtt to flatfile_target", "type": "target", "connectionId": "012MGS0B00000000002N", "transformationType": "", "config": [ { "key": "interimDirectory", "value": "/home/agent/test" }, { "key": "rolloverSize", "value": 1024 }, { "key": "rolloverEvents", "value": 100 }, { "key": "rolloverTime", "value": 300000 }, { "key": "File Name", "value": "test" } ] } ], "edges": [ { "from": "mqtt to flatfile_source", "to": "mqtt to flatfile_target" } ] } }