...
For more information, see Siddhi Query Guide - Patterns.
Sequences
This allows you to carry out analysis based on the sequential order in which events matching certain conditions arrive. The difference between sequences and patterns is, in Siddhi sequence, events arriving consecutively are compared based on given conditions. For patterns, events do not have to arrive in consecutive manner.
For more information, see Siddhi Query Guide - Sequence.