From 2ab4e8fa135499a96a9f733a5a5cf8c7533000fb Mon Sep 17 00:00:00 2001 From: Nirothipan Date: Thu, 13 Jul 2017 17:49:58 +0530 Subject: [PATCH 1/3] changing update summary to 3 mins. --- .../coffee_level/coffee_level_script/coffee_level_script.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/distribution/src/core/samples/connectedcup/component/analytics/src/main/resources/carbonapps/coffee_level/coffee_level_script/coffee_level_script.xml b/modules/distribution/src/core/samples/connectedcup/component/analytics/src/main/resources/carbonapps/coffee_level/coffee_level_script/coffee_level_script.xml index 636bffe5..3e965230 100644 --- a/modules/distribution/src/core/samples/connectedcup/component/analytics/src/main/resources/carbonapps/coffee_level/coffee_level_script/coffee_level_script.xml +++ b/modules/distribution/src/core/samples/connectedcup/component/analytics/src/main/resources/carbonapps/coffee_level/coffee_level_script/coffee_level_script.xml @@ -33,5 +33,5 @@ from DeviceCoffeeLevelData group by coffeelevel, meta_deviceType, meta_deviceId, meta_owner, cast(meta_time/1000 as BIGINT); - 0 0/5 * * * ? + 0 0/3 * * * ? From 3eb75d040d985d0a3304e6956ad2b3a50df54c0c Mon Sep 17 00:00:00 2001 From: Nirothipan Date: Thu, 13 Jul 2017 17:50:40 +0530 Subject: [PATCH 2/3] changing update summary to 3 mins --- .../temperature_level_script/temperature_level_script.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/distribution/src/core/samples/connectedcup/component/analytics/src/main/resources/carbonapps/coffee_level/temperature_level_script/temperature_level_script.xml b/modules/distribution/src/core/samples/connectedcup/component/analytics/src/main/resources/carbonapps/coffee_level/temperature_level_script/temperature_level_script.xml index a978e693..ae4e4d9a 100644 --- a/modules/distribution/src/core/samples/connectedcup/component/analytics/src/main/resources/carbonapps/coffee_level/temperature_level_script/temperature_level_script.xml +++ b/modules/distribution/src/core/samples/connectedcup/component/analytics/src/main/resources/carbonapps/coffee_level/temperature_level_script/temperature_level_script.xml @@ -31,5 +31,5 @@ from DeviceTemperatureLevelData group by temperature, meta_deviceType, meta_deviceId, meta_owner, cast(meta_time/1000 as BIGINT); - 0 0/5 * * * ? + 0 0/3c * * * ? From dec82f5b0feda2747a7fde1935ee7930aca1df38 Mon Sep 17 00:00:00 2001 From: Nirothipan Date: Thu, 13 Jul 2017 18:43:10 +0530 Subject: [PATCH 3/3] changing data count to 100 --- .../api/src/main/java/org/coffeeking/api/util/APIUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/distribution/src/core/samples/connectedcup/component/api/src/main/java/org/coffeeking/api/util/APIUtil.java b/modules/distribution/src/core/samples/connectedcup/component/api/src/main/java/org/coffeeking/api/util/APIUtil.java index 06d68c00..efb120c7 100644 --- a/modules/distribution/src/core/samples/connectedcup/component/api/src/main/java/org/coffeeking/api/util/APIUtil.java +++ b/modules/distribution/src/core/samples/connectedcup/component/api/src/main/java/org/coffeeking/api/util/APIUtil.java @@ -91,7 +91,7 @@ public class APIUtil { int eventCount = analyticsDataAPI.searchCount(tenantId, tableName, query); // limiting the data read from the server int start = 0; - int dataCount = 1000; + int dataCount = 100; if (eventCount == 0) { return null; } else if (eventCount >= dataCount){