From c4df8c5fd68109703c439072d5f6238eba24bf3d Mon Sep 17 00:00:00 2001 From: Nirothipan Date: Thu, 13 Jul 2017 18:37:27 +0530 Subject: [PATCH 1/2] limiting the 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){ From 3e188b5176cd0b02fc894d0c659e71476219cdb7 Mon Sep 17 00:00:00 2001 From: Nirothipan Date: Sat, 15 Jul 2017 11:08:33 +0530 Subject: [PATCH 2/2] typing mistake in CronEcpression --- .../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 ae4e4d9a..60d79d3f 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/3c * * * ? + 0 0/3 * * * ?