Connect to the ESP project using a streaming connection and publish data to one or more streams in that project.
ws[s]://host:port/publish/workspace/project?<auth>
{ "version": 1, "stream": <stream>, "flags": -, "rows": [ { "ESP_OPS" : "INSERT|UPDATE|DELETE|UPSERT|SAFEDELETE", column : value, column : value, ... }, { "ESP_OPS" : "INSERT|UPDATE|DELETE|UPSERT|SAFEDELETE", column : value, column : value, ... }, ... ] }
Field | Description |
---|---|
version |
This is an integer field. Specify the version of the message. The only supported value is 1. |
stream |
Specify the stream or window to which you wish to publish data. |
flags |
This is an integer field. This field is not currently used. |
rows |
An array of maps. Each map consists of a column name: column value pair. You can use the predefined column named ESP_OPS to specify the operation code. Valid operation codes are INSERT, UPDATE, DELETE, UPSERT, and SAFEDELETE. The operation code is optional. If you do not specify one, the row is interpreted as an insert. |
ws://localhost:9092/publish/ws1/test?basic-authorization=c3liYXNlOnN5YmFzZQ=="