From 92973efc0c678b882590e40f02950d8474d6591d Mon Sep 17 00:00:00 2001 From: charitha Date: Wed, 11 May 2016 15:29:15 +0530 Subject: [PATCH] Fix invalid values in cep query --- .../src/main/resources/advanced_agent/cep_query.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/features/iot-plugins-feature/virtual-fire-alarm-plugin-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/advanced_agent/cep_query.txt b/features/iot-plugins-feature/virtual-fire-alarm-plugin-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/advanced_agent/cep_query.txt index 17546ece2..6e6634081 100644 --- a/features/iot-plugins-feature/virtual-fire-alarm-plugin-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/advanced_agent/cep_query.txt +++ b/features/iot-plugins-feature/virtual-fire-alarm-plugin-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/advanced_agent/cep_query.txt @@ -1,11 +1,11 @@ define stream fireAlarmEventStream (deviceID string, temp int); -from fireAlarmEventStream#window.time(7886776 sec) +from fireAlarmEventStream#window.time(10 sec) select deviceID, max(temp) as maxValue group by deviceID insert into analyzeStream for expired-events; -from analyzeStream[maxValue < 88] +from analyzeStream[maxValue < 60] select maxValue insert into bulbOnStream; -from fireAlarmEventStream[temp > 1093] +from fireAlarmEventStream[temp > 60] select deviceID, temp insert into bulbOffStream; \ No newline at end of file