The Siddhi Try It is a tool used for experimenting event sequences through Siddhi Query Language (SiddhiQL) statements. You can define an execution plan to store the event processing logic and input an event stream to test the Siddhi query processing functionality.
Follow the steps below to use the Siddhi Try It tool.
- Log in to the CEP management console, click Tools, and then click Siddhi Try It as shown below.
Enter the Execution Plan as shown in the below example.
The main elements of an execution plan are described below.Element Description Example Execution plan name The name of the execution plan. It can contain only alphanumeric characters and '_' character. TestExecutionPlan
Input stream The mappings between the available event stream and the input stream of the Siddhi runtime, which is defined inside the query expressions. sensorStream
Query expressions The event processing logic written in Siddhi QL. When defining more than one query, end each query with a semicolon. Defining a query name (e.g. query1
) is optional.@info(name = 'query1')
from sensorStream[temperature>98.6]
select sensorId
insert into outputStream;
Output stream The mappings between the output stream of the Siddhi runtime and one of the available event streams, which is defined inside the query expressions. outputStream
Enter a time stamp to begin the process of sending events for Begin Time if required.
Enter the Event Stream, which is a logical series of events ordered based on the time as shown in the below example.
- Click Submit.