Example

This example Data Stream demonstrates how to use this Listener to simulate pump data readings.

Refer to configuration to understand all configuration options of this Agent.

Step 1: Add the Agent

Drag the Event Simulator Listener onto the canvas, link the output endpoint to the printer, and save the Data Stream.

Step 2: Configure General

Select the Agent, and click Configure. Keep the default Collection.

Step 3: Configure Simulate

Keep the default Number of Events as 0. Set the Events per Second to 5, tick Micro Batch, and set the Batch Size to 3.

This will return 2 micro-batches per second (3 and 2 = 5 events in total). This will continue for as long as the Data Stream is published because the total number of events is unlimited.

Step 4: Configure Event Definitions

We will add a Range property. Click '+' to add a row to the Event Definition grid. Enter the name Temperature, keep the default Type (Range), and set Minimum Value and Maximum Value to 15.5 and 50 respectively. Click Apply.

We will also add a Fixed property. Add another record to the Event Definition grid. Enter the name PumpId, and set the Type to Fixed. Leave the Value Type as the default (String), and enter a Fixed Value of Pump25G. Click Apply.

Step 5: Results

Apply the changes, save the Data Stream and publish it.

Let's look at the Live Data View. 2 micro-batches are printed per second - with 3 and 2 events in each - and 5 events in total. The reading number and timestamp are standard attributes for this Agent. The other attributes, temperature and pump, are appended as per the Event Definition configuration.

Files

See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.

Spike Value

Below is a demonstration of the Spike Value settings in the published example Data Stream.

Creating a data spike is only possible if the Data Stream is already running on an accessible Stream Host - preferably, the only Stream Host online in its collection.

Step 1: Open the Configuration

Select the Event Simulator and click Configure.

Step 2: Generate a Ranged data spike

Select Temperature in the Event Definition list. On the following blade, enter a value outside the range defined by the Minimum and Maximum values. In this case, a value of 9999999 was used.

Click Generate Spike, and watch in the Live Data view or in the Console window of your Stream Host for the anomalous value.

Step 3: Generate a Fixed Spike

Select PumpId in the Event Definition list. On the following blade, enter a value recognizably different than the Fixed Value. In this case, a value of "Pump222222222225G" was used.

Click Generate Spike, and watch in the Live Data view or in the Console window of your Stream Host for the anomalous value.

Last updated