Use this REST request to publish data to multiple streams or windows on the same ESP project and ESP Server. This REST request is a POST type request.
http://serverDetails/espws/restservice/stream/bulk?action=insert&workspace=<workspaceName>&project=<projectName>
| Element | Description |
|---|---|
| connectionDetails |
(Required) Element containing cluster, port, and authentication details below. |
| clusterName |
Type: string (Required) The name of the cluster on which the project that you wish to update is running. |
| port |
Type: integer (Required) Specify the port on which the cluster is running. |
| authentication |
(Required) Element containing authentication details. |
| type |
Type: string (Required) Specify the type of authentication the ESP Server is using. Valid values are user, rsa, and kerberos. |
| data |
Type: string (Required) Specify a value based on the type of authentication
you specified in the type element. For
example,
|
| sslEnabled |
Type: boolean (Required) Specify whether SSL is enabled on the cluster on which the project is running. The default value is false. |
http://localhost:9091/espws/restservice/stream/bulk?action=insert&workspace=default&project=my_projectBody
{
"conectionDetails:": {
"clusterName": "iltlvl231",
"port": "19011",
"authentication": {
"type": "user",
"data": "lroot:<password>",
"sslEnabled": "true"
}
},
"content": [
{
"event1": {
"id": "10",
"description": "buy_item",
"amount": "10"
}
},
{
"event2": {
"id": "10",
"sum": "6.00",
"avg": "17"
}
}
]
}