Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How Pattern enables continuous monitoring #1804

Open
immno opened this issue Dec 22, 2022 · 0 comments
Open

How Pattern enables continuous monitoring #1804

immno opened this issue Dec 22, 2022 · 0 comments

Comments

@immno
Copy link

immno commented Dec 22, 2022

Description:

I want to realize the alarm after the temperature is greater than or equal to 48 degrees for 30 seconds (at least 30 seconds). But I didn't see the API, only Detecting event non-occurrence in Pattern. It's not a scenario for not, and it's very strange to use not. Like the following? within <time gap> is the maximum time range, what I need is the satisfaction within the minimum time range.

from every e1=OriginalStream[pointID == 1]
     -> not OriginalStream[e1.pointID == pointID and temp <= 48] for 30 sec
select e1.pointID, 'Alarm!' as result
insert into OutputStream;

Affected Siddhi Version:
v5.1

OS, DB, other environment details and versions:
window 10

Steps to reproduce:

Related Issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant