Example
Last updated
Last updated
An example Data Stream that demonstrates how to use this Listener to return pump readings from an Azure Event Hub can be found below. The example is designed to work with the Azure Event Hub Action Agent example use case.
Refer to configuration to understand all configuration options of this Agent.
Drag the Azure Event Hub Listener onto the canvas, connect its output to the printer, and save the Data Stream.
Select the Agent and click Configure. Keep the default Collection and polling interval.
Tick to use variables and add the authentication values: Event Hub Name and Endpoint, and Shared Access Key Name and Value.
We will manually enter the properties, but you could use a file definition. Click '+' to add the expected event properties.
This example uses the following properties:
ReadingNo, Long
PumpTemp, Double
Timestamp, DateTime
Apply the changes, save the Data Stream and publish it.
Let's look at the Live Data View. Observe that the data in the Listener example does not flow until the Action Agent example is published - then only the pump data is printed.
See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.
Listener Data Stream
C0mp|ex123
Action Agent Data Stream
C0mp|ex123