From b1c9246ffa4e44606c9be3a18baecf66bc716f41 Mon Sep 17 00:00:00 2001 From: menaka Date: Fri, 11 Dec 2015 11:29:26 +0530 Subject: [PATCH 1/6] db script error resolved --- modules/distribution/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/distribution/pom.xml b/modules/distribution/pom.xml index 8b4d6540..f4211bb4 100644 --- a/modules/distribution/pom.xml +++ b/modules/distribution/pom.xml @@ -284,7 +284,7 @@ + file="${basedir}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/cdm/plugins/androidsense/h2.sql"/> From 43cdc86543d6040a096094c27e5f3911dbd66d74 Mon Sep 17 00:00:00 2001 From: menaka Date: Fri, 11 Dec 2015 12:22:39 +0530 Subject: [PATCH 2/6] db script error resolved --- modules/distribution/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/distribution/pom.xml b/modules/distribution/pom.xml index f4211bb4..8b4d6540 100644 --- a/modules/distribution/pom.xml +++ b/modules/distribution/pom.xml @@ -284,7 +284,7 @@ + file="${basedir}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/cdm/plugins/android_sense/h2.sql"/> From 194843c91aefce807b455b17d88c0f886b7694ec Mon Sep 17 00:00:00 2001 From: Menaka Madushanka Date: Fri, 11 Dec 2015 14:27:40 +0530 Subject: [PATCH 3/6] spark scripts for the other sensors --- .../EventReceiver_gravity.xml | 8 ++++ .../Eventreceiver_gravaity_1.0.0/artifact.xml | 4 ++ .../Eventstore_gravity_1.0.0/artifact.xml | 4 ++ .../org_wso2_iot_devices_gravity.xml | 44 +++++++++++++++++++ .../Eventstream_gravity_1.0.0/artifact.xml | 5 +++ .../org.wso2.iot.devices.gravity_1.0.0.json | 20 +++++++++ .../Gravity_Sensor_Script.xml | 13 ++++++ .../Gravity/Sparkscripts_1.0.0/artifact.xml | 4 ++ .../carbonapps/Gravity/artifacts.xml | 11 +++++ .../EventReceiver_gyroscope.xml | 8 ++++ .../artifact.xml | 4 ++ .../Eventstore_gyroscope_1.0.0/artifact.xml | 4 ++ .../org_wso2_iot_devices_gyroscope.xml | 44 +++++++++++++++++++ .../Eventstream_gyroscope_1.0.0/artifact.xml | 5 +++ .../org.wso2.iot.devices.gyroscope_1.0.0.json | 20 +++++++++ .../Gyroscope_Sensor_Script.xml | 13 ++++++ .../Gyroscope/Sparkscripts_1.0.0/artifact.xml | 4 ++ .../carbonapps/Gyroscope/artifacts.xml | 11 +++++ .../EventReceiver_pressure.xml | 8 ++++ .../Eventreceiver_pressure_1.0.0/artifact.xml | 4 ++ .../Eventstore_pressure_1.0.0/artifact.xml | 4 ++ .../org_wso2_iot_devices_pressure.xml | 44 +++++++++++++++++++ .../Eventstream_pressure_1.0.0/artifact.xml | 5 +++ .../org.wso2.iot.devices.pressure_1.0.0.json | 20 +++++++++ .../Gyroscope_Sensor_Script.xml | 13 ++++++ .../Pressure/Sparkscripts_1.0.0/artifact.xml | 4 ++ .../carbonapps/Pressure/artifacts.xml | 11 +++++ .../EventReceiver_proximity.xml | 8 ++++ .../artifact.xml | 4 ++ .../Eventstore_proximity_1.0.0/artifact.xml | 4 ++ .../org_wso2_iot_devices_proximity.xml | 44 +++++++++++++++++++ .../Eventstream_proximity_1.0.0/artifact.xml | 5 +++ .../org.wso2.iot.devices.proximity_1.0.0.json | 20 +++++++++ .../Proximity_Sensor_Script.xml | 13 ++++++ .../Proximity/Sparkscripts_1.0.0/artifact.xml | 4 ++ .../carbonapps/Proximity/artifacts.xml | 11 +++++ .../EventReceiver_rotation.xml | 8 ++++ .../Eventreceiver_rotation_1.0.0/artifact.xml | 4 ++ .../Eventstore_rotation_1.0.0/artifact.xml | 4 ++ .../org_wso2_iot_devices_rotation.xml | 44 +++++++++++++++++++ .../Eventstream_rotation_1.0.0/artifact.xml | 5 +++ .../org.wso2.iot.devices.rotation_1.0.0.json | 20 +++++++++ .../Rotation_Sensor_Script.xml | 13 ++++++ .../Rotation/Sparkscripts_1.0.0/artifact.xml | 4 ++ .../carbonapps/Rotation/artifacts.xml | 11 +++++ 45 files changed, 565 insertions(+) create mode 100644 modules/distribution/src/statistics/carbonapps/Gravity/Eventreceiver_gravaity_1.0.0/EventReceiver_gravity.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Gravity/Eventreceiver_gravaity_1.0.0/artifact.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Gravity/Eventstore_gravity_1.0.0/artifact.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Gravity/Eventstore_gravity_1.0.0/org_wso2_iot_devices_gravity.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Gravity/Eventstream_gravity_1.0.0/artifact.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Gravity/Eventstream_gravity_1.0.0/org.wso2.iot.devices.gravity_1.0.0.json create mode 100644 modules/distribution/src/statistics/carbonapps/Gravity/Sparkscripts_1.0.0/Gravity_Sensor_Script.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Gravity/Sparkscripts_1.0.0/artifact.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Gravity/artifacts.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Gyroscope/Eventreceiver_gyroscope_1.0.0/EventReceiver_gyroscope.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Gyroscope/Eventreceiver_gyroscope_1.0.0/artifact.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Gyroscope/Eventstore_gyroscope_1.0.0/artifact.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Gyroscope/Eventstore_gyroscope_1.0.0/org_wso2_iot_devices_gyroscope.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Gyroscope/Eventstream_gyroscope_1.0.0/artifact.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Gyroscope/Eventstream_gyroscope_1.0.0/org.wso2.iot.devices.gyroscope_1.0.0.json create mode 100644 modules/distribution/src/statistics/carbonapps/Gyroscope/Sparkscripts_1.0.0/Gyroscope_Sensor_Script.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Gyroscope/Sparkscripts_1.0.0/artifact.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Gyroscope/artifacts.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Pressure/Eventreceiver_pressure_1.0.0/EventReceiver_pressure.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Pressure/Eventreceiver_pressure_1.0.0/artifact.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Pressure/Eventstore_pressure_1.0.0/artifact.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Pressure/Eventstore_pressure_1.0.0/org_wso2_iot_devices_pressure.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Pressure/Eventstream_pressure_1.0.0/artifact.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Pressure/Eventstream_pressure_1.0.0/org.wso2.iot.devices.pressure_1.0.0.json create mode 100644 modules/distribution/src/statistics/carbonapps/Pressure/Sparkscripts_1.0.0/Gyroscope_Sensor_Script.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Pressure/Sparkscripts_1.0.0/artifact.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Pressure/artifacts.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Proximity/Eventreceiver_proximity_1.0.0/EventReceiver_proximity.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Proximity/Eventreceiver_proximity_1.0.0/artifact.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Proximity/Eventstore_proximity_1.0.0/artifact.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Proximity/Eventstore_proximity_1.0.0/org_wso2_iot_devices_proximity.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Proximity/Eventstream_proximity_1.0.0/artifact.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Proximity/Eventstream_proximity_1.0.0/org.wso2.iot.devices.proximity_1.0.0.json create mode 100644 modules/distribution/src/statistics/carbonapps/Proximity/Sparkscripts_1.0.0/Proximity_Sensor_Script.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Proximity/Sparkscripts_1.0.0/artifact.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Proximity/artifacts.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Rotation/Eventreceiver_rotation_1.0.0/EventReceiver_rotation.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Rotation/Eventreceiver_rotation_1.0.0/artifact.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Rotation/Eventstore_rotation_1.0.0/artifact.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Rotation/Eventstore_rotation_1.0.0/org_wso2_iot_devices_rotation.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Rotation/Eventstream_rotation_1.0.0/artifact.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Rotation/Eventstream_rotation_1.0.0/org.wso2.iot.devices.rotation_1.0.0.json create mode 100644 modules/distribution/src/statistics/carbonapps/Rotation/Sparkscripts_1.0.0/Rotation_Sensor_Script.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Rotation/Sparkscripts_1.0.0/artifact.xml create mode 100644 modules/distribution/src/statistics/carbonapps/Rotation/artifacts.xml diff --git a/modules/distribution/src/statistics/carbonapps/Gravity/Eventreceiver_gravaity_1.0.0/EventReceiver_gravity.xml b/modules/distribution/src/statistics/carbonapps/Gravity/Eventreceiver_gravaity_1.0.0/EventReceiver_gravity.xml new file mode 100644 index 00000000..86efcbfb --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Gravity/Eventreceiver_gravaity_1.0.0/EventReceiver_gravity.xml @@ -0,0 +1,8 @@ + + + + false + + + + diff --git a/modules/distribution/src/statistics/carbonapps/Gravity/Eventreceiver_gravaity_1.0.0/artifact.xml b/modules/distribution/src/statistics/carbonapps/Gravity/Eventreceiver_gravaity_1.0.0/artifact.xml new file mode 100644 index 00000000..e150a5c6 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Gravity/Eventreceiver_gravaity_1.0.0/artifact.xml @@ -0,0 +1,4 @@ + + + EventReceiver_gravity.xml + diff --git a/modules/distribution/src/statistics/carbonapps/Gravity/Eventstore_gravity_1.0.0/artifact.xml b/modules/distribution/src/statistics/carbonapps/Gravity/Eventstore_gravity_1.0.0/artifact.xml new file mode 100644 index 00000000..d54e89a9 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Gravity/Eventstore_gravity_1.0.0/artifact.xml @@ -0,0 +1,4 @@ + + + org_wso2_iot_devices_gravity.xml + diff --git a/modules/distribution/src/statistics/carbonapps/Gravity/Eventstore_gravity_1.0.0/org_wso2_iot_devices_gravity.xml b/modules/distribution/src/statistics/carbonapps/Gravity/Eventstore_gravity_1.0.0/org_wso2_iot_devices_gravity.xml new file mode 100644 index 00000000..3a575434 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Gravity/Eventstore_gravity_1.0.0/org_wso2_iot_devices_gravity.xml @@ -0,0 +1,44 @@ + + + + org.wso2.iot.devices.gravity:1.0.0 + + EVENT_STORE + + + meta_owner + true + true + false + STRING + + + meta_deviceType + true + true + false + STRING + + + meta_deviceId + true + true + false + STRING + + + meta_time + true + true + false + LONG + + + gravity + false + false + false + FLOAT + + + \ No newline at end of file diff --git a/modules/distribution/src/statistics/carbonapps/Gravity/Eventstream_gravity_1.0.0/artifact.xml b/modules/distribution/src/statistics/carbonapps/Gravity/Eventstream_gravity_1.0.0/artifact.xml new file mode 100644 index 00000000..2953fd5b --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Gravity/Eventstream_gravity_1.0.0/artifact.xml @@ -0,0 +1,5 @@ + + + org.wso2.iot.devices.gravity_1.0.0.json + + diff --git a/modules/distribution/src/statistics/carbonapps/Gravity/Eventstream_gravity_1.0.0/org.wso2.iot.devices.gravity_1.0.0.json b/modules/distribution/src/statistics/carbonapps/Gravity/Eventstream_gravity_1.0.0/org.wso2.iot.devices.gravity_1.0.0.json new file mode 100644 index 00000000..f18bd87b --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Gravity/Eventstream_gravity_1.0.0/org.wso2.iot.devices.gravity_1.0.0.json @@ -0,0 +1,20 @@ +{ + "name": "org.wso2.iot.devices.gravity", + "version": "1.0.0", + "nickName": "Gravity Data", + "description": "Gravity data received from the Device", + "metaData": [ + {"name":"owner","type":"STRING"}, + {"name":"deviceType","type":"STRING"}, + {"name":"deviceId","type":"STRING"}, + {"name":"time","type":"LONG"} + ], + "payloadData": [ + { + "name": "gravity","type": "FLOAT" + } + ] +} + + + diff --git a/modules/distribution/src/statistics/carbonapps/Gravity/Sparkscripts_1.0.0/Gravity_Sensor_Script.xml b/modules/distribution/src/statistics/carbonapps/Gravity/Sparkscripts_1.0.0/Gravity_Sensor_Script.xml new file mode 100644 index 00000000..34bcb8d0 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Gravity/Sparkscripts_1.0.0/Gravity_Sensor_Script.xml @@ -0,0 +1,13 @@ + + + IoTServer_Sensor_Script + + 0 * * * * ? + diff --git a/modules/distribution/src/statistics/carbonapps/Gravity/Sparkscripts_1.0.0/artifact.xml b/modules/distribution/src/statistics/carbonapps/Gravity/Sparkscripts_1.0.0/artifact.xml new file mode 100644 index 00000000..0d5f122e --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Gravity/Sparkscripts_1.0.0/artifact.xml @@ -0,0 +1,4 @@ + + + Gravity_Sensor_Script.xml + diff --git a/modules/distribution/src/statistics/carbonapps/Gravity/artifacts.xml b/modules/distribution/src/statistics/carbonapps/Gravity/artifacts.xml new file mode 100644 index 00000000..1a9e815e --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Gravity/artifacts.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/modules/distribution/src/statistics/carbonapps/Gyroscope/Eventreceiver_gyroscope_1.0.0/EventReceiver_gyroscope.xml b/modules/distribution/src/statistics/carbonapps/Gyroscope/Eventreceiver_gyroscope_1.0.0/EventReceiver_gyroscope.xml new file mode 100644 index 00000000..f5aa74ea --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Gyroscope/Eventreceiver_gyroscope_1.0.0/EventReceiver_gyroscope.xml @@ -0,0 +1,8 @@ + + + + false + + + + diff --git a/modules/distribution/src/statistics/carbonapps/Gyroscope/Eventreceiver_gyroscope_1.0.0/artifact.xml b/modules/distribution/src/statistics/carbonapps/Gyroscope/Eventreceiver_gyroscope_1.0.0/artifact.xml new file mode 100644 index 00000000..4d4a7b91 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Gyroscope/Eventreceiver_gyroscope_1.0.0/artifact.xml @@ -0,0 +1,4 @@ + + + EventReceiver_gyroscope.xml + diff --git a/modules/distribution/src/statistics/carbonapps/Gyroscope/Eventstore_gyroscope_1.0.0/artifact.xml b/modules/distribution/src/statistics/carbonapps/Gyroscope/Eventstore_gyroscope_1.0.0/artifact.xml new file mode 100644 index 00000000..73fbde21 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Gyroscope/Eventstore_gyroscope_1.0.0/artifact.xml @@ -0,0 +1,4 @@ + + + org_wso2_iot_devices_gyroscope.xml + diff --git a/modules/distribution/src/statistics/carbonapps/Gyroscope/Eventstore_gyroscope_1.0.0/org_wso2_iot_devices_gyroscope.xml b/modules/distribution/src/statistics/carbonapps/Gyroscope/Eventstore_gyroscope_1.0.0/org_wso2_iot_devices_gyroscope.xml new file mode 100644 index 00000000..603711c1 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Gyroscope/Eventstore_gyroscope_1.0.0/org_wso2_iot_devices_gyroscope.xml @@ -0,0 +1,44 @@ + + + + org.wso2.iot.devices.gyroscope:1.0.0 + + EVENT_STORE + + + meta_owner + true + true + false + STRING + + + meta_deviceType + true + true + false + STRING + + + meta_deviceId + true + true + false + STRING + + + meta_time + true + true + false + LONG + + + gyroscope + false + false + false + FLOAT + + + \ No newline at end of file diff --git a/modules/distribution/src/statistics/carbonapps/Gyroscope/Eventstream_gyroscope_1.0.0/artifact.xml b/modules/distribution/src/statistics/carbonapps/Gyroscope/Eventstream_gyroscope_1.0.0/artifact.xml new file mode 100644 index 00000000..e09e166e --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Gyroscope/Eventstream_gyroscope_1.0.0/artifact.xml @@ -0,0 +1,5 @@ + + + org.wso2.iot.devices.gyroscope_1.0.0.json + + diff --git a/modules/distribution/src/statistics/carbonapps/Gyroscope/Eventstream_gyroscope_1.0.0/org.wso2.iot.devices.gyroscope_1.0.0.json b/modules/distribution/src/statistics/carbonapps/Gyroscope/Eventstream_gyroscope_1.0.0/org.wso2.iot.devices.gyroscope_1.0.0.json new file mode 100644 index 00000000..0583da29 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Gyroscope/Eventstream_gyroscope_1.0.0/org.wso2.iot.devices.gyroscope_1.0.0.json @@ -0,0 +1,20 @@ +{ + "name": "org.wso2.iot.devices.gyroscope", + "version": "1.0.0", + "nickName": "Gyroscope Data", + "description": "Gyroscope data received from the Device", + "metaData": [ + {"name":"owner","type":"STRING"}, + {"name":"deviceType","type":"STRING"}, + {"name":"deviceId","type":"STRING"}, + {"name":"time","type":"LONG"} + ], + "payloadData": [ + { + "name": "gyroscope","type": "FLOAT" + } + ] +} + + + diff --git a/modules/distribution/src/statistics/carbonapps/Gyroscope/Sparkscripts_1.0.0/Gyroscope_Sensor_Script.xml b/modules/distribution/src/statistics/carbonapps/Gyroscope/Sparkscripts_1.0.0/Gyroscope_Sensor_Script.xml new file mode 100644 index 00000000..f26032cf --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Gyroscope/Sparkscripts_1.0.0/Gyroscope_Sensor_Script.xml @@ -0,0 +1,13 @@ + + + IoTServer_Sensor_Script + + 0 * * * * ? + diff --git a/modules/distribution/src/statistics/carbonapps/Gyroscope/Sparkscripts_1.0.0/artifact.xml b/modules/distribution/src/statistics/carbonapps/Gyroscope/Sparkscripts_1.0.0/artifact.xml new file mode 100644 index 00000000..3fcf3d50 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Gyroscope/Sparkscripts_1.0.0/artifact.xml @@ -0,0 +1,4 @@ + + + Gyroscope_Sensor_Script.xml + diff --git a/modules/distribution/src/statistics/carbonapps/Gyroscope/artifacts.xml b/modules/distribution/src/statistics/carbonapps/Gyroscope/artifacts.xml new file mode 100644 index 00000000..6a3ea818 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Gyroscope/artifacts.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/modules/distribution/src/statistics/carbonapps/Pressure/Eventreceiver_pressure_1.0.0/EventReceiver_pressure.xml b/modules/distribution/src/statistics/carbonapps/Pressure/Eventreceiver_pressure_1.0.0/EventReceiver_pressure.xml new file mode 100644 index 00000000..76ac8619 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Pressure/Eventreceiver_pressure_1.0.0/EventReceiver_pressure.xml @@ -0,0 +1,8 @@ + + + + false + + + + diff --git a/modules/distribution/src/statistics/carbonapps/Pressure/Eventreceiver_pressure_1.0.0/artifact.xml b/modules/distribution/src/statistics/carbonapps/Pressure/Eventreceiver_pressure_1.0.0/artifact.xml new file mode 100644 index 00000000..c611037c --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Pressure/Eventreceiver_pressure_1.0.0/artifact.xml @@ -0,0 +1,4 @@ + + + EventReceiver_pressure.xml + diff --git a/modules/distribution/src/statistics/carbonapps/Pressure/Eventstore_pressure_1.0.0/artifact.xml b/modules/distribution/src/statistics/carbonapps/Pressure/Eventstore_pressure_1.0.0/artifact.xml new file mode 100644 index 00000000..dfae64f1 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Pressure/Eventstore_pressure_1.0.0/artifact.xml @@ -0,0 +1,4 @@ + + + org_wso2_iot_devices_pressure.xml + diff --git a/modules/distribution/src/statistics/carbonapps/Pressure/Eventstore_pressure_1.0.0/org_wso2_iot_devices_pressure.xml b/modules/distribution/src/statistics/carbonapps/Pressure/Eventstore_pressure_1.0.0/org_wso2_iot_devices_pressure.xml new file mode 100644 index 00000000..2533da29 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Pressure/Eventstore_pressure_1.0.0/org_wso2_iot_devices_pressure.xml @@ -0,0 +1,44 @@ + + + + org.wso2.iot.devices.pressure:1.0.0 + + EVENT_STORE + + + meta_owner + true + true + false + STRING + + + meta_deviceType + true + true + false + STRING + + + meta_deviceId + true + true + false + STRING + + + meta_time + true + true + false + LONG + + + pressure + false + false + false + FLOAT + + + \ No newline at end of file diff --git a/modules/distribution/src/statistics/carbonapps/Pressure/Eventstream_pressure_1.0.0/artifact.xml b/modules/distribution/src/statistics/carbonapps/Pressure/Eventstream_pressure_1.0.0/artifact.xml new file mode 100644 index 00000000..2a2f8868 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Pressure/Eventstream_pressure_1.0.0/artifact.xml @@ -0,0 +1,5 @@ + + + org.wso2.iot.devices.pressure_1.0.0.json + + diff --git a/modules/distribution/src/statistics/carbonapps/Pressure/Eventstream_pressure_1.0.0/org.wso2.iot.devices.pressure_1.0.0.json b/modules/distribution/src/statistics/carbonapps/Pressure/Eventstream_pressure_1.0.0/org.wso2.iot.devices.pressure_1.0.0.json new file mode 100644 index 00000000..f58059d2 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Pressure/Eventstream_pressure_1.0.0/org.wso2.iot.devices.pressure_1.0.0.json @@ -0,0 +1,20 @@ +{ + "name": "org.wso2.iot.devices.pressure", + "version": "1.0.0", + "nickName": "Pressure Data", + "description": "Pressure data received from the Device", + "metaData": [ + {"name":"owner","type":"STRING"}, + {"name":"deviceType","type":"STRING"}, + {"name":"deviceId","type":"STRING"}, + {"name":"time","type":"LONG"} + ], + "payloadData": [ + { + "name": "pressure","type": "FLOAT" + } + ] +} + + + diff --git a/modules/distribution/src/statistics/carbonapps/Pressure/Sparkscripts_1.0.0/Gyroscope_Sensor_Script.xml b/modules/distribution/src/statistics/carbonapps/Pressure/Sparkscripts_1.0.0/Gyroscope_Sensor_Script.xml new file mode 100644 index 00000000..d6c0e353 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Pressure/Sparkscripts_1.0.0/Gyroscope_Sensor_Script.xml @@ -0,0 +1,13 @@ + + + IoTServer_Sensor_Script + + 0 * * * * ? + diff --git a/modules/distribution/src/statistics/carbonapps/Pressure/Sparkscripts_1.0.0/artifact.xml b/modules/distribution/src/statistics/carbonapps/Pressure/Sparkscripts_1.0.0/artifact.xml new file mode 100644 index 00000000..3fcf3d50 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Pressure/Sparkscripts_1.0.0/artifact.xml @@ -0,0 +1,4 @@ + + + Gyroscope_Sensor_Script.xml + diff --git a/modules/distribution/src/statistics/carbonapps/Pressure/artifacts.xml b/modules/distribution/src/statistics/carbonapps/Pressure/artifacts.xml new file mode 100644 index 00000000..249b33da --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Pressure/artifacts.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/modules/distribution/src/statistics/carbonapps/Proximity/Eventreceiver_proximity_1.0.0/EventReceiver_proximity.xml b/modules/distribution/src/statistics/carbonapps/Proximity/Eventreceiver_proximity_1.0.0/EventReceiver_proximity.xml new file mode 100644 index 00000000..d57d2e0a --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Proximity/Eventreceiver_proximity_1.0.0/EventReceiver_proximity.xml @@ -0,0 +1,8 @@ + + + + false + + + + diff --git a/modules/distribution/src/statistics/carbonapps/Proximity/Eventreceiver_proximity_1.0.0/artifact.xml b/modules/distribution/src/statistics/carbonapps/Proximity/Eventreceiver_proximity_1.0.0/artifact.xml new file mode 100644 index 00000000..1e3fbccb --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Proximity/Eventreceiver_proximity_1.0.0/artifact.xml @@ -0,0 +1,4 @@ + + + EventReceiver_proximity.xml + diff --git a/modules/distribution/src/statistics/carbonapps/Proximity/Eventstore_proximity_1.0.0/artifact.xml b/modules/distribution/src/statistics/carbonapps/Proximity/Eventstore_proximity_1.0.0/artifact.xml new file mode 100644 index 00000000..bdcffa5b --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Proximity/Eventstore_proximity_1.0.0/artifact.xml @@ -0,0 +1,4 @@ + + + org_wso2_iot_devices_proximity.xml + diff --git a/modules/distribution/src/statistics/carbonapps/Proximity/Eventstore_proximity_1.0.0/org_wso2_iot_devices_proximity.xml b/modules/distribution/src/statistics/carbonapps/Proximity/Eventstore_proximity_1.0.0/org_wso2_iot_devices_proximity.xml new file mode 100644 index 00000000..f0958f01 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Proximity/Eventstore_proximity_1.0.0/org_wso2_iot_devices_proximity.xml @@ -0,0 +1,44 @@ + + + + org.wso2.iot.devices.proximity:1.0.0 + + EVENT_STORE + + + meta_owner + true + true + false + STRING + + + meta_deviceType + true + true + false + STRING + + + meta_deviceId + true + true + false + STRING + + + meta_time + true + true + false + LONG + + + proximity + false + false + false + FLOAT + + + \ No newline at end of file diff --git a/modules/distribution/src/statistics/carbonapps/Proximity/Eventstream_proximity_1.0.0/artifact.xml b/modules/distribution/src/statistics/carbonapps/Proximity/Eventstream_proximity_1.0.0/artifact.xml new file mode 100644 index 00000000..bec60673 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Proximity/Eventstream_proximity_1.0.0/artifact.xml @@ -0,0 +1,5 @@ + + + org.wso2.iot.devices.proximity_1.0.0.json + + diff --git a/modules/distribution/src/statistics/carbonapps/Proximity/Eventstream_proximity_1.0.0/org.wso2.iot.devices.proximity_1.0.0.json b/modules/distribution/src/statistics/carbonapps/Proximity/Eventstream_proximity_1.0.0/org.wso2.iot.devices.proximity_1.0.0.json new file mode 100644 index 00000000..88fb9008 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Proximity/Eventstream_proximity_1.0.0/org.wso2.iot.devices.proximity_1.0.0.json @@ -0,0 +1,20 @@ +{ + "name": "org.wso2.iot.devices.proximity", + "version": "1.0.0", + "nickName": "Proximity Data", + "description": "Proximity data received from the Device", + "metaData": [ + {"name":"owner","type":"STRING"}, + {"name":"deviceType","type":"STRING"}, + {"name":"deviceId","type":"STRING"}, + {"name":"time","type":"LONG"} + ], + "payloadData": [ + { + "name": "proximity","type": "FLOAT" + } + ] +} + + + diff --git a/modules/distribution/src/statistics/carbonapps/Proximity/Sparkscripts_1.0.0/Proximity_Sensor_Script.xml b/modules/distribution/src/statistics/carbonapps/Proximity/Sparkscripts_1.0.0/Proximity_Sensor_Script.xml new file mode 100644 index 00000000..889cfca6 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Proximity/Sparkscripts_1.0.0/Proximity_Sensor_Script.xml @@ -0,0 +1,13 @@ + + + IoTServer_Sensor_Script + + 0 * * * * ? + diff --git a/modules/distribution/src/statistics/carbonapps/Proximity/Sparkscripts_1.0.0/artifact.xml b/modules/distribution/src/statistics/carbonapps/Proximity/Sparkscripts_1.0.0/artifact.xml new file mode 100644 index 00000000..c3bc1d61 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Proximity/Sparkscripts_1.0.0/artifact.xml @@ -0,0 +1,4 @@ + + + Proximity_Sensor_Script.xml + diff --git a/modules/distribution/src/statistics/carbonapps/Proximity/artifacts.xml b/modules/distribution/src/statistics/carbonapps/Proximity/artifacts.xml new file mode 100644 index 00000000..d682d5b6 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Proximity/artifacts.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/modules/distribution/src/statistics/carbonapps/Rotation/Eventreceiver_rotation_1.0.0/EventReceiver_rotation.xml b/modules/distribution/src/statistics/carbonapps/Rotation/Eventreceiver_rotation_1.0.0/EventReceiver_rotation.xml new file mode 100644 index 00000000..df0dfb57 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Rotation/Eventreceiver_rotation_1.0.0/EventReceiver_rotation.xml @@ -0,0 +1,8 @@ + + + + false + + + + diff --git a/modules/distribution/src/statistics/carbonapps/Rotation/Eventreceiver_rotation_1.0.0/artifact.xml b/modules/distribution/src/statistics/carbonapps/Rotation/Eventreceiver_rotation_1.0.0/artifact.xml new file mode 100644 index 00000000..3395400e --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Rotation/Eventreceiver_rotation_1.0.0/artifact.xml @@ -0,0 +1,4 @@ + + + EventReceiver_rotation.xml + diff --git a/modules/distribution/src/statistics/carbonapps/Rotation/Eventstore_rotation_1.0.0/artifact.xml b/modules/distribution/src/statistics/carbonapps/Rotation/Eventstore_rotation_1.0.0/artifact.xml new file mode 100644 index 00000000..6a75eba8 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Rotation/Eventstore_rotation_1.0.0/artifact.xml @@ -0,0 +1,4 @@ + + + org_wso2_iot_devices_rotation.xml + diff --git a/modules/distribution/src/statistics/carbonapps/Rotation/Eventstore_rotation_1.0.0/org_wso2_iot_devices_rotation.xml b/modules/distribution/src/statistics/carbonapps/Rotation/Eventstore_rotation_1.0.0/org_wso2_iot_devices_rotation.xml new file mode 100644 index 00000000..8e6863f5 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Rotation/Eventstore_rotation_1.0.0/org_wso2_iot_devices_rotation.xml @@ -0,0 +1,44 @@ + + + + org.wso2.iot.devices.rotation:1.0.0 + + EVENT_STORE + + + meta_owner + true + true + false + STRING + + + meta_deviceType + true + true + false + STRING + + + meta_deviceId + true + true + false + STRING + + + meta_time + true + true + false + LONG + + + rotation + false + false + false + FLOAT + + + \ No newline at end of file diff --git a/modules/distribution/src/statistics/carbonapps/Rotation/Eventstream_rotation_1.0.0/artifact.xml b/modules/distribution/src/statistics/carbonapps/Rotation/Eventstream_rotation_1.0.0/artifact.xml new file mode 100644 index 00000000..21982655 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Rotation/Eventstream_rotation_1.0.0/artifact.xml @@ -0,0 +1,5 @@ + + + org.wso2.iot.devices.rotation_1.0.0.json + + diff --git a/modules/distribution/src/statistics/carbonapps/Rotation/Eventstream_rotation_1.0.0/org.wso2.iot.devices.rotation_1.0.0.json b/modules/distribution/src/statistics/carbonapps/Rotation/Eventstream_rotation_1.0.0/org.wso2.iot.devices.rotation_1.0.0.json new file mode 100644 index 00000000..03881bcf --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Rotation/Eventstream_rotation_1.0.0/org.wso2.iot.devices.rotation_1.0.0.json @@ -0,0 +1,20 @@ +{ + "name": "org.wso2.iot.devices.rotation", + "version": "1.0.0", + "nickName": "Rotation Data", + "description": "Rotation data received from the Device", + "metaData": [ + {"name":"owner","type":"STRING"}, + {"name":"deviceType","type":"STRING"}, + {"name":"deviceId","type":"STRING"}, + {"name":"time","type":"LONG"} + ], + "payloadData": [ + { + "name": "rotation","type": "FLOAT" + } + ] +} + + + diff --git a/modules/distribution/src/statistics/carbonapps/Rotation/Sparkscripts_1.0.0/Rotation_Sensor_Script.xml b/modules/distribution/src/statistics/carbonapps/Rotation/Sparkscripts_1.0.0/Rotation_Sensor_Script.xml new file mode 100644 index 00000000..ed2730eb --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Rotation/Sparkscripts_1.0.0/Rotation_Sensor_Script.xml @@ -0,0 +1,13 @@ + + + IoTServer_Sensor_Script + + 0 * * * * ? + diff --git a/modules/distribution/src/statistics/carbonapps/Rotation/Sparkscripts_1.0.0/artifact.xml b/modules/distribution/src/statistics/carbonapps/Rotation/Sparkscripts_1.0.0/artifact.xml new file mode 100644 index 00000000..59ec9383 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Rotation/Sparkscripts_1.0.0/artifact.xml @@ -0,0 +1,4 @@ + + + Rotation_Sensor_Script.xml + diff --git a/modules/distribution/src/statistics/carbonapps/Rotation/artifacts.xml b/modules/distribution/src/statistics/carbonapps/Rotation/artifacts.xml new file mode 100644 index 00000000..4a2b6e95 --- /dev/null +++ b/modules/distribution/src/statistics/carbonapps/Rotation/artifacts.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + From 88a09c8cab1587db883932f3857691502c7226bf Mon Sep 17 00:00:00 2001 From: Menaka Madushanka Date: Fri, 11 Dec 2015 14:41:04 +0530 Subject: [PATCH 4/6] spark scripts for the other sensors + build.xml edited --- .../src/statistics/carbonapps/build.xml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/modules/distribution/src/statistics/carbonapps/build.xml b/modules/distribution/src/statistics/carbonapps/build.xml index 129ecab7..8ac17852 100644 --- a/modules/distribution/src/statistics/carbonapps/build.xml +++ b/modules/distribution/src/statistics/carbonapps/build.xml @@ -33,5 +33,20 @@ + + + + + + + + + + + + + + + From 454b24db1f30493120ac1de73ac237329ed4d09a Mon Sep 17 00:00:00 2001 From: Menaka Madushanka Date: Fri, 11 Dec 2015 14:47:50 +0530 Subject: [PATCH 5/6] spark scripts for the other sensors + build.xml edited --- modules/distribution/src/statistics/carbonapps/build.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/distribution/src/statistics/carbonapps/build.xml b/modules/distribution/src/statistics/carbonapps/build.xml index 8ac17852..b3d87e62 100644 --- a/modules/distribution/src/statistics/carbonapps/build.xml +++ b/modules/distribution/src/statistics/carbonapps/build.xml @@ -10,6 +10,11 @@ + + + + + From 9857e2f2b4cbcc4ef836e6deb89c9c023893d8ce Mon Sep 17 00:00:00 2001 From: Menaka Madushanka Date: Fri, 11 Dec 2015 15:30:34 +0530 Subject: [PATCH 6/6] spark script for pressure --- .../{Gyroscope_Sensor_Script.xml => Pressure_Sensor_Script.xml} | 0 .../carbonapps/Pressure/Sparkscripts_1.0.0/artifact.xml | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename modules/distribution/src/statistics/carbonapps/Pressure/Sparkscripts_1.0.0/{Gyroscope_Sensor_Script.xml => Pressure_Sensor_Script.xml} (100%) diff --git a/modules/distribution/src/statistics/carbonapps/Pressure/Sparkscripts_1.0.0/Gyroscope_Sensor_Script.xml b/modules/distribution/src/statistics/carbonapps/Pressure/Sparkscripts_1.0.0/Pressure_Sensor_Script.xml similarity index 100% rename from modules/distribution/src/statistics/carbonapps/Pressure/Sparkscripts_1.0.0/Gyroscope_Sensor_Script.xml rename to modules/distribution/src/statistics/carbonapps/Pressure/Sparkscripts_1.0.0/Pressure_Sensor_Script.xml diff --git a/modules/distribution/src/statistics/carbonapps/Pressure/Sparkscripts_1.0.0/artifact.xml b/modules/distribution/src/statistics/carbonapps/Pressure/Sparkscripts_1.0.0/artifact.xml index 3fcf3d50..046bc619 100644 --- a/modules/distribution/src/statistics/carbonapps/Pressure/Sparkscripts_1.0.0/artifact.xml +++ b/modules/distribution/src/statistics/carbonapps/Pressure/Sparkscripts_1.0.0/artifact.xml @@ -1,4 +1,4 @@ - Gyroscope_Sensor_Script.xml + Pressure_Sensor_Script.xml