...
Icon | ||||||
---|---|---|---|---|---|---|
Description | A stream represents a logical series of events ordered in time. For a detailed description of streams, see Siddhi Query Guide - Stream. | |||||
Form | Once you add a stream component to a Siddhi application in the design view, the Define Stream form appears below the grid. To configure the stream, following information can be specified in this form: Stream Name : A unique name for the stream. This should be specified in title caps, and without spaces (e.g., Attributes: Attributes of streams are specified as name and type pairs in the Attributes table. | |||||
Example | The above creates a stream with the following configuration:
| |||||
Source |
| |||||
Target |
|
...
Icon | |||
---|---|---|---|
Description | A source receives events in the specified transport and in the specified format. For more information, see Siddhi Query Guide - Source. | ||
Form | Once you add a source component to a Siddhi application in the design view, the Define Source form appears below the grid. To configure the event source, following information can be specified in this form:
| ||
Example | This source configuration is represented as follows in the source view.
| ||
Source | No connection can start from another Siddhi component and link to a source because a source is the point from which events selected into the event flow of the Siddhi application start. | ||
Target | Streams |
...
Icon | |
---|---|
Description | A sink publishes events via the specified transport and in the specified format. For more information, see Siddhi Query Guide - Sink . |
Form | Once you add a source component to a Siddhi application in the design view, the Sink Configurations form appears below the grid. To configure the event sink, following information can be specified in this form:
|
Example | |
Source | Streams |
Target | N/A A sink cannot be followed by another Siddhi component because it represents the last stage of the event flow where the results of the processing carried out by the Siddhi application are communicated via the required interface. |
...
Icon | ||||||
---|---|---|---|---|---|---|
Description | A table is a stored version of an stream or a table of events. For more information, see Siddhi Query Guide - Table. | |||||
Form | Once you add a table component to a Siddhi application in the design view, the Table Configuration form appears below the grid. To configure the table, following information can be specified in this form: Name : This field specifies unique name for the table. This should be specified in title caps, and without spaces (e.g., Attributes: Attributes of tables are specified as name and type pairs in the Attributes table. To add a new attribute, click +Attribute. | |||||
Example | The details entered in the above Table Configuration form creates a table definition as follows:
| |||||
Source |
| |||||
Target |
|
...
Icon | ||||||
---|---|---|---|---|---|---|
Description | This icon represents a window definition that can be shared across multiple queries. For more information, see Siddhi Query Guide - (Defined) Window. | |||||
Form | Once you add a window component to a Siddhi application in the design view, the Window Configuration form appears below the grid. To configure the window, following information can be specified in this form:
| |||||
Example | The details entered in the above Window Configuration form creates a window definition as follows:
| |||||
Source |
| |||||
Target |
|
...
Icon | ||||||
---|---|---|---|---|---|---|
Description | a trigger allows you to generate events periodically. For more information, see Siddhi Query Guide - Trigger. | |||||
Form | Once you add a trigger component to a Siddhi application in the design view, the Trigger Configuration form appears below the grid. To configure the trigger, following information can be entered in this form:
| |||||
Example | The details entered in the above Trigger Configuration form creates a trigger definition as follows:
| |||||
Source | N/A | |||||
Target |
|
...
Icon | ||||||
---|---|---|---|---|---|---|
Description | Incremental aggregation allows you to obtain aggregates in an incremental manner for a specified set of time periods. For more information, see Siddhi Query Guide - Incremental Aggregation.
| |||||
Form | Once a connection is made from a stream to an aggregation, move the cursor over the aggregation and click the settings icon on the aggregation (shown below) to open the Aggregation Configuration form. The following information can be entered in this form:
| |||||
Example | The details entered in the above Aggregation Configuration form creates an aggregation definition as follows:
| |||||
Source | N/A | |||||
Target | Join queries |
...
Icon | ||||||
---|---|---|---|---|---|---|
Description | The function icon represents Script in Siddhi Query Language. It allows you to write functions in other programming languages and execute them within Siddhi queries. A function component in a Siddhi application is not connected to ther Siddhi components in the design UI. However, the configuration of one or more Query components can include a reference to it. | |||||
Form | Once you add a function component to a Siddhi application in the design view, the Function Configuration appears below the grid. To configure the function, following information can be specified in this form:
| |||||
Example | The details entered in the above Function Configuration form creates a function definition as follows:
|
...
Icon | ||||||||
---|---|---|---|---|---|---|---|---|
Description |
This icon represents a query to project the events in an input stream to an output stream. This invoves selectng the attributes to be included in the output, renaming attributes, introducing constant values, and using mathematical and/or logical expressions. For more information, see Siddhi Query Guide - Query Projection. | |||||||
Form | Once you connect the query to an input stream (source) and an output stream (target), move the cursor over the query and click the settings icon on the projection query (shown below) to open the Query Configuration form. The following information needs to be entered in this form:
| |||||||
Example | The details entered in the above Query Configuration form creates a query definition as follows:
| |||||||
Source |
| |||||||
Target |
|
...
Icon | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Description | A filter query filters information in an input stream based on a given condition. For more information, see Siddhi Query Guide - Filters. | |||||||||
Form |
Once you connect the query to an input stream (source) and an output stream (target), move the cursor over the query and click the settings icon on the filter query (shown below) to open the Query Configuration form.
The following information needs to be entered in this form:
| |||||||||
Example | The details entered in the above Query Configuration form creates a query definition with a filter as follows:
| |||||||||
Source |
| |||||||||
Target |
|
...
Icon | ||||||||
---|---|---|---|---|---|---|---|---|
Description |
Window queries include a window to select a subset of events to be processed based on a specific criterion. For more information, see Siddhi Query Guide - (Defined) Window . | |||||||
Form | Once you connect the query to an input stream (source) and an output stream (target), move the cursor over the query and click the settings icon on the window query (shown below) to open the Query Configuration form.
| |||||||
Example | The details entered in the above Query Configuration form creates a query definition with a window as follows:
| |||||||
Source |
| |||||||
Target |
|
...
Icon | ||||||
---|---|---|---|---|---|---|
Description | A join query derives a combined result from two streams in real-time based on a specified condition. For more information, see Siddhi Query Guide - Join. | |||||
Form | Once you connect two Siddhi components to the join query as sources and another Siddhi component as the target, move the cursor over the join query and click the settings icon on the projection query (shown below) to open the Join Query Configuration form.
The following information needs to be entered in this form: Configurations common for both sources
The stream handlers need to be separateley configured for the left source and the right source of the join. Configurations for each source The following configurationsare entered under Left Source and Right Source.
| |||||
Example | A join query is configured as follows:
The above configurations result in creating the following join query.
| |||||
Source |
| |||||
Target |
|
...
Icon | ||||||||
---|---|---|---|---|---|---|---|---|
Description |
A pattern query detects patterns in events that arrive overtime. For more information, see Siddhi Query Guide - Patterns. | |||||||
Form | Once you connect the query to an input stream (source) and an output stream (target), move the cursor over the query and click the settings icon on the pattern query component (shown below) to open the Pattern Query Configuration form. The following information is configured in the P attern Query Configuration form:
| |||||||
Example | The above configuration results in creating the following query.
| |||||||
Source |
| |||||||
Target |
|
...
Icon | ||||||||
---|---|---|---|---|---|---|---|---|
Description |
A sequence query detects sequences in event occurrences over time. For more information, see Siddhi Query Guide - Sequence. | |||||||
Form | Once you connect the query to an input stream (source) and an output stream (target), move the cursor over the query and click the settings icon on the sequence query component (shown below) to open the Sequence Query Configuration form. The following information is configured in the Sequence Query Configuration form:
| |||||||
Example | The above configuration results in creating the following query.
| |||||||
Source |
| |||||||
Target |
|
...
Icon | ||||||
---|---|---|---|---|---|---|
Description |
Partitions divide streams and queries into isolated groups in order to process them in parallel and in isolation. For more information, see Siddhi Query Guide - Partition. | |||||
Form | Once the stream to be partitioned is connected as a source to the partition, move the cursor over the partition and click the settings icon to open the Partition form. In this form, you can enter expressions to convert the attributes of the stream selected to be partitioned, to create output events. | |||||
Example | The above configuration creates the following partition query.
| |||||
Source | Streams | |||||
Target | N/A |
...