简体   繁体   English

检查 siddhiQL 中未发生的事件

[英]Check for non-occuring events in siddhiQL

I have a use case where i need to check that after a particular event A has occurred, does it re-occur in the next 20 mins.我有一个用例,我需要检查特定事件 A 发生后,它是否在接下来的 20 分钟内重新发生。 I cannot use windowing because we are receiving lots of events every second and siddhiQL may run out of memory eventually as windowing will store events in-memory.我不能使用窗口,因为我们每秒都会收到大量事件,而 siddhiQL 最终可能会耗尽内存,因为窗口会将事件存储在内存中。 Is there some other better way to do it?有没有其他更好的方法来做到这一点?

You can use siddhi pattern for Detecting event non-occurrence.您可以使用 siddhi模式来检测事件未发生。

from e1=TestStream -> not TestStream[e1.roomNo == roomNo and temp <= e1.tempSet] for '20 min'
select e1.roomNo as roomNo
insert into AlertStream;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM