Allen Temporal Operator Coincides in Siddhi
<p>How can I define a Siddhi query to detect two events e1 and e2 with the following properties: </p>

<ul>
<li>e1 may occurs before or after e2.</li>
<li>This means: abs( e1.timestamp - e2.timestamp ) &lt;= 5s)</li>
</ul>

<p>In Drools we can use the Allen operator coincides: e1 coincides e2[5s]</p>