azure.event_hub.send
The azure.event_hub.send command is used to publish to Azure's Event Hubs.
TR50 Request
{
"cmd" : {
"command" : "azure.event_hub.send",
"params" : {
"namespace" : "my_namespace",
"eventHub" : "my_event_hub",
"keyName" : "my_key_name",
"signingKey" : "my_signing_key",
"partitionKey" : "my_partition_key",
"payload": {}
}
}
}
Request Parameters
Name |
Type |
Required |
Description |
---|---|---|---|
namespace |
String |
Yes |
The namespace that contains the event hub. |
eventHub |
String |
Yes |
The name of the event hub to publish to. |
keyName |
String |
Yes |
The name of the sender policy. |
signingKey |
String |
Yes |
The primary signing key for the sender policy. |
partitionKey |
String |
|
The partition key for inserting the documents. |
payload |
Object |
Yes |
The data blob to put into the record. Should be a JSON document. |
TR50 Response
If the command is sent successfully a success message is returned. Otherwise, an error and error message will be returned.
{
"cmd": {
"success": true
}
}