This section explains how to generate random data to be analyzed via WSO2 SP.
Prerequisites
Before simulating events, a Siddhi application should be deployed.
Simulating events
To simulate random events, follow the steps given below:
Access the Text Editor via the
http://localhost:<EDITOR_PORT>/editor
URL. The Text Editor opens as shown below.The default URL is
http://localhost:9090/editor
- Click the Event Simulator icon in the left pane of the editor.
- Click the Feed tab to open the Feed Simulation panel.
- To create a new simulation, click Create. This opens the following panel.
- Enter values for the displayed fields as follows.
- In the Simulation Name field, enter a name for the event simulation.
- In the Description field, enter a description for the event simulation.
- If you want to include only events that belong to a specific time interval in the simulation feed, enter the start time and the end time in the Starting Event's Timestamp and Ending Event's Timestamp fields respectively. To select a timestamp, click the time and calendar icon next to the field.
Then select the required date, hour, minute, second and millisecond. Click Done to select the time stamp entered. If you want to select the current time, you can click Now. - If you want to restrict the event simulation feed to a specific number of events, enter the required number in the No of Events field.
- If you want to receive events only during a specific time interval, enter that time interval in the Time Interval field.
- In the Simulation Source field, select Random.
- If the random simulation source from which you want to simulate events does not already exist in the Feed Simulation pane, click Add New to open the following section.
Enter information relating to the random source as follows:
- In the Siddhi App Name field, select the name of the Siddhi App with the event stream for which the events are simulated.
- In the Stream Name field, select the event stream for which you want to simulate events. All the streams defined in the Siddhi Application you selected are available to be selected.
- In the Timestamp Interval field, enter the number of milliseconds by which you want to increase the timestamp of each event.