forked from community/device-mgt-plugins
Merge pull request #702 from Savidude/master
Removing default policy in Virtual Firealarm advanced agentrevert-dabc3590
commit
834c3e30b9
@ -1,11 +0,0 @@
|
||||
define stream fireAlarmEventStream (deviceID string, temp int);
|
||||
from fireAlarmEventStream#window.time(10 sec)
|
||||
select deviceID, max(temp) as maxValue
|
||||
group by deviceID
|
||||
insert into analyzeStream for expired-events;
|
||||
from analyzeStream[maxValue < 60]
|
||||
select maxValue
|
||||
insert into bulbOnStream;
|
||||
from fireAlarmEventStream[temp > 60]
|
||||
select deviceID, temp
|
||||
insert into bulbOffStream;
|
Loading…
Reference in new issue