forked from community/device-mgt-plugins
parent
76a68034d1
commit
a83b9a70ed
@ -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