diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_accelerometer_stats_event_sink/iot_per_device_stream_android_accelerometer_stats.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_accelerometer_stats_event_sink/iot_per_device_stream_android_accelerometer_stats.xml
new file mode 100755
index 000000000..f092a81df
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_accelerometer_stats_event_sink/iot_per_device_stream_android_accelerometer_stats.xml
@@ -0,0 +1,90 @@
+
+
+
+
+ meta_owner
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_deviceId
+ false
+ true
+ false
+ false
+ STRING
+
+
+ meta_timestamp
+ false
+ true
+ false
+ false
+ LONG
+
+
+ axis
+ false
+ false
+ false
+ false
+ STRING
+
+
+ value
+ false
+ false
+ false
+ false
+ FLOAT
+
+
+ year
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ month
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ day
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ hour
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ minute
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+
+ false
+ EVENT_STORE
+
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_accelerometer_stats_streams/iot.per.device.stream.android.accelerometer.stats_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_accelerometer_stats_streams/iot.per.device.stream.android.accelerometer.stats_1.0.0.json
new file mode 100755
index 000000000..3a48071a8
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_accelerometer_stats_streams/iot.per.device.stream.android.accelerometer.stats_1.0.0.json
@@ -0,0 +1,50 @@
+{
+ "name": "iot.per.device.stream.android.accelerometer.stats",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "axis",
+ "type": "STRING"
+ },
+ {
+ "name": "value",
+ "type": "FLOAT"
+ },
+ {
+ "name": "year",
+ "type": "INT"
+ },
+ {
+ "name": "month",
+ "type": "INT"
+ },
+ {
+ "name": "day",
+ "type": "INT"
+ },
+ {
+ "name": "hour",
+ "type": "INT"
+ },
+ {
+ "name": "minute",
+ "type": "INT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_accelerometer_streams/iot.per.device.stream.android.accelerometer_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_accelerometer_streams/iot.per.device.stream.android.accelerometer_1.0.0.json
new file mode 100755
index 000000000..9b0adbcb7
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_accelerometer_streams/iot.per.device.stream.android.accelerometer_1.0.0.json
@@ -0,0 +1,30 @@
+{
+ "name": "iot.per.device.stream.android.accelerometer",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "axis",
+ "type": "STRING"
+ },
+ {
+ "name": "value",
+ "type": "FLOAT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_activity_stats_event_sink/iot_per_device_stream_android_activity_stats.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_activity_stats_event_sink/iot_per_device_stream_android_activity_stats.xml
new file mode 100755
index 000000000..5536405ef
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_activity_stats_event_sink/iot_per_device_stream_android_activity_stats.xml
@@ -0,0 +1,90 @@
+
+
+
+
+ meta_owner
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_deviceId
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_timestamp
+ false
+ false
+ false
+ false
+ LONG
+
+
+ action
+ false
+ false
+ false
+ false
+ STRING
+
+
+ duration
+ false
+ false
+ false
+ false
+ LONG
+
+
+ year
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ month
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ day
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ hour
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ minute
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+
+ false
+ EVENT_STORE
+
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_activity_stats_streams/iot.per.device.stream.android.activity.stats_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_activity_stats_streams/iot.per.device.stream.android.activity.stats_1.0.0.json
new file mode 100755
index 000000000..d2cb12a9c
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_activity_stats_streams/iot.per.device.stream.android.activity.stats_1.0.0.json
@@ -0,0 +1,50 @@
+{
+ "name": "iot.per.device.stream.android.activity.stats",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "action",
+ "type": "STRING"
+ },
+ {
+ "name": "duration",
+ "type": "LONG"
+ },
+ {
+ "name": "year",
+ "type": "INT"
+ },
+ {
+ "name": "month",
+ "type": "INT"
+ },
+ {
+ "name": "day",
+ "type": "INT"
+ },
+ {
+ "name": "hour",
+ "type": "INT"
+ },
+ {
+ "name": "minute",
+ "type": "INT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_activity_streams/iot.per.device.stream.android.activity_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_activity_streams/iot.per.device.stream.android.activity_1.0.0.json
new file mode 100755
index 000000000..d89df0c7a
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_activity_streams/iot.per.device.stream.android.activity_1.0.0.json
@@ -0,0 +1,26 @@
+{
+ "name": "iot.per.device.stream.android.activity",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "action",
+ "type": "STRING"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_audio_streams/iot.per.device.stream.android.audio_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_audio_streams/iot.per.device.stream.android.audio_1.0.0.json
new file mode 100755
index 000000000..959a7688e
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_audio_streams/iot.per.device.stream.android.audio_1.0.0.json
@@ -0,0 +1,34 @@
+{
+ "name": "iot.per.device.stream.android.audio",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "Intermediate stream to map Android sense stream to audio execution plan",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "audio_playing",
+ "type": "BOOL"
+ },
+ {
+ "name": "headset_on",
+ "type": "BOOL"
+ },
+ {
+ "name": "music_volume",
+ "type": "INT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_battery_stats_event_sink/iot_per_device_stream_android_battery_stats.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_battery_stats_event_sink/iot_per_device_stream_android_battery_stats.xml
new file mode 100755
index 000000000..6a7d67d51
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_battery_stats_event_sink/iot_per_device_stream_android_battery_stats.xml
@@ -0,0 +1,106 @@
+
+
+
+
+ meta_owner
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_deviceId
+ false
+ true
+ false
+ false
+ STRING
+
+
+ meta_timestamp
+ false
+ true
+ false
+ false
+ LONG
+
+
+ level
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ state
+ false
+ false
+ false
+ false
+ STRING
+
+
+ status
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ temperature
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ year
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ month
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ day
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ hour
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ minute
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+
+ false
+ PROCESSED_DATA_STORE
+
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_battery_stats_streams/iot.per.device.stream.android.battery.stats_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_battery_stats_streams/iot.per.device.stream.android.battery.stats_1.0.0.json
new file mode 100755
index 000000000..9b410c691
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_battery_stats_streams/iot.per.device.stream.android.battery.stats_1.0.0.json
@@ -0,0 +1,58 @@
+{
+ "name": "iot.per.device.stream.android.battery.stats",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "level",
+ "type": "INT"
+ },
+ {
+ "name": "state",
+ "type": "STRING"
+ },
+ {
+ "name": "status",
+ "type": "INT"
+ },
+ {
+ "name": "temperature",
+ "type": "INT"
+ },
+ {
+ "name": "year",
+ "type": "INT"
+ },
+ {
+ "name": "month",
+ "type": "INT"
+ },
+ {
+ "name": "day",
+ "type": "INT"
+ },
+ {
+ "name": "hour",
+ "type": "INT"
+ },
+ {
+ "name": "minute",
+ "type": "INT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_battery_streams/iot.per.device.stream.android.battery_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_battery_streams/iot.per.device.stream.android.battery_1.0.0.json
new file mode 100755
index 000000000..5b73e7d47
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_battery_streams/iot.per.device.stream.android.battery_1.0.0.json
@@ -0,0 +1,38 @@
+{
+ "name": "iot.per.device.stream.android.battery",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "Intermediate stream to map Android sense stream to battery execution plan",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "level",
+ "type": "INT"
+ },
+ {
+ "name": "state",
+ "type": "STRING"
+ },
+ {
+ "name": "status",
+ "type": "INT"
+ },
+ {
+ "name": "temperature",
+ "type": "INT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_call_stats_event_sink/iot_per_device_stream_android_call_stats.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_call_stats_event_sink/iot_per_device_stream_android_call_stats.xml
new file mode 100755
index 000000000..7cf8dbb14
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_call_stats_event_sink/iot_per_device_stream_android_call_stats.xml
@@ -0,0 +1,98 @@
+
+
+
+
+ meta_owner
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_deviceId
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_timestamp
+ false
+ false
+ false
+ false
+ LONG
+
+
+ number
+ false
+ false
+ false
+ false
+ STRING
+
+
+ type
+ false
+ false
+ false
+ false
+ STRING
+
+
+ duration
+ false
+ false
+ false
+ false
+ LONG
+
+
+ year
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ month
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ day
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ hour
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ minute
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+
+ false
+ PROCESSED_DATA_STORE
+
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_call_stats_streams/iot.per.device.stream.android.call.stats_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_call_stats_streams/iot.per.device.stream.android.call.stats_1.0.0.json
new file mode 100755
index 000000000..8d06ec636
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_call_stats_streams/iot.per.device.stream.android.call.stats_1.0.0.json
@@ -0,0 +1,54 @@
+{
+ "name": "iot.per.device.stream.android.call.stats",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "number",
+ "type": "STRING"
+ },
+ {
+ "name": "type",
+ "type": "STRING"
+ },
+ {
+ "name": "duration",
+ "type": "LONG"
+ },
+ {
+ "name": "year",
+ "type": "INT"
+ },
+ {
+ "name": "month",
+ "type": "INT"
+ },
+ {
+ "name": "day",
+ "type": "INT"
+ },
+ {
+ "name": "hour",
+ "type": "INT"
+ },
+ {
+ "name": "minute",
+ "type": "INT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_call_streams/iot.per.device.stream.android.call_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_call_streams/iot.per.device.stream.android.call_1.0.0.json
new file mode 100755
index 000000000..63844e8b1
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_call_streams/iot.per.device.stream.android.call_1.0.0.json
@@ -0,0 +1,38 @@
+{
+ "name": "iot.per.device.stream.android.call",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "number",
+ "type": "STRING"
+ },
+ {
+ "name": "type",
+ "type": "STRING"
+ },
+ {
+ "name": "startTime",
+ "type": "LONG"
+ },
+ {
+ "name": "endTime",
+ "type": "LONG"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_data_stats_event_sink/iot_per_device_stream_android_data_stats.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_data_stats_event_sink/iot_per_device_stream_android_data_stats.xml
new file mode 100755
index 000000000..b2f5bf4d8
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_data_stats_event_sink/iot_per_device_stream_android_data_stats.xml
@@ -0,0 +1,90 @@
+
+
+
+
+ meta_owner
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_deviceId
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_timestamp
+ false
+ false
+ false
+ false
+ LONG
+
+
+ type
+ false
+ false
+ false
+ false
+ STRING
+
+
+ total
+ false
+ false
+ false
+ false
+ LONG
+
+
+ year
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ month
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ day
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ hour
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ minute
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+
+ false
+ EVENT_STORE
+
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_data_stats_streams/iot.per.device.stream.android.data.stats_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_data_stats_streams/iot.per.device.stream.android.data.stats_1.0.0.json
new file mode 100755
index 000000000..0bfd45bd7
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_data_stats_streams/iot.per.device.stream.android.data.stats_1.0.0.json
@@ -0,0 +1,50 @@
+{
+ "name": "iot.per.device.stream.android.data.stats",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "type",
+ "type": "STRING"
+ },
+ {
+ "name": "total",
+ "type": "LONG"
+ },
+ {
+ "name": "year",
+ "type": "INT"
+ },
+ {
+ "name": "month",
+ "type": "INT"
+ },
+ {
+ "name": "day",
+ "type": "INT"
+ },
+ {
+ "name": "hour",
+ "type": "INT"
+ },
+ {
+ "name": "minute",
+ "type": "INT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_data_streams/iot.per.device.stream.android.data_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_data_streams/iot.per.device.stream.android.data_1.0.0.json
new file mode 100755
index 000000000..c5f942648
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_data_streams/iot.per.device.stream.android.data_1.0.0.json
@@ -0,0 +1,34 @@
+{
+ "name": "iot.per.device.stream.android.data",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "type",
+ "type": "STRING"
+ },
+ {
+ "name": "received",
+ "type": "LONG"
+ },
+ {
+ "name": "sent",
+ "type": "LONG"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_device_details_event_sink/iot_per_device_stream_android_device_details.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_device_details_event_sink/iot_per_device_stream_android_device_details.xml
new file mode 100644
index 000000000..a2fb1a3ac
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_device_details_event_sink/iot_per_device_stream_android_device_details.xml
@@ -0,0 +1,90 @@
+
+
+
+
+ meta_username
+ false
+ true
+ true
+ false
+ STRING
+
+
+ android_version
+ false
+ false
+ false
+ false
+ STRING
+
+
+ memory
+ false
+ false
+ false
+ false
+ STRING
+
+
+ storage
+ false
+ false
+ false
+ false
+ STRING
+
+
+ installed_apps
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ state
+ false
+ true
+ false
+ false
+ STRING
+
+
+ id
+ false
+ true
+ true
+ false
+ STRING
+
+
+ name
+ false
+ true
+ false
+ false
+ STRING
+
+
+ model
+ false
+ false
+ false
+ false
+ STRING
+
+
+ manufacturer
+ false
+ false
+ false
+ false
+ STRING
+
+
+
+ false
+ EVENT_STORE
+
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_device_details_streams/iot.per.device.stream.android.device.details_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_device_details_streams/iot.per.device.stream.android.device.details_1.0.0.json
new file mode 100644
index 000000000..791d9bf0e
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_device_details_streams/iot.per.device.stream.android.device.details_1.0.0.json
@@ -0,0 +1,50 @@
+{
+ "name": "iot.per.device.stream.android.device.details",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "Details of the Android Device",
+ "metaData": [
+ {
+ "name": "username",
+ "type": "STRING"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "android_version",
+ "type": "STRING"
+ },
+ {
+ "name": "memory",
+ "type": "STRING"
+ },
+ {
+ "name": "storage",
+ "type": "STRING"
+ },
+ {
+ "name": "installed_apps",
+ "type": "INT"
+ },
+ {
+ "name": "state",
+ "type": "STRING"
+ },
+ {
+ "name": "id",
+ "type": "STRING"
+ },
+ {
+ "name": "name",
+ "type": "STRING"
+ },
+ {
+ "name": "model",
+ "type": "STRING"
+ },
+ {
+ "name": "manufacturer",
+ "type": "STRING"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_filtered_audio_streams/iot.per.device.stream.android.filtered.audio_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_filtered_audio_streams/iot.per.device.stream.android.filtered.audio_1.0.0.json
new file mode 100644
index 000000000..f7ed1268b
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_filtered_audio_streams/iot.per.device.stream.android.filtered.audio_1.0.0.json
@@ -0,0 +1,34 @@
+{
+ "name": "iot.per.device.stream.android.filtered.audio",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "audio",
+ "type": "STRING"
+ },
+ {
+ "name": "headset",
+ "type": "STRING"
+ },
+ {
+ "name": "music_volume",
+ "type": "INT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_gravity_stats_event_sink/iot_per_device_stream_android_gravity_stats.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_gravity_stats_event_sink/iot_per_device_stream_android_gravity_stats.xml
new file mode 100755
index 000000000..00a70f9fb
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_gravity_stats_event_sink/iot_per_device_stream_android_gravity_stats.xml
@@ -0,0 +1,98 @@
+
+
+
+
+ meta_owner
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_deviceId
+ false
+ true
+ false
+ false
+ STRING
+
+
+ meta_timestamp
+ false
+ true
+ false
+ false
+ LONG
+
+
+ x
+ false
+ false
+ false
+ false
+ FLOAT
+
+
+ y
+ false
+ false
+ false
+ false
+ FLOAT
+
+
+ z
+ false
+ false
+ false
+ false
+ FLOAT
+
+
+ year
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ month
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ day
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ hour
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ minute
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+
+ false
+ EVENT_STORE
+
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_gravity_stats_streams/iot.per.device.stream.android.gravity.stats_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_gravity_stats_streams/iot.per.device.stream.android.gravity.stats_1.0.0.json
new file mode 100755
index 000000000..1364a9223
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_gravity_stats_streams/iot.per.device.stream.android.gravity.stats_1.0.0.json
@@ -0,0 +1,54 @@
+{
+ "name": "iot.per.device.stream.android.gravity.stats",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "x",
+ "type": "FLOAT"
+ },
+ {
+ "name": "y",
+ "type": "FLOAT"
+ },
+ {
+ "name": "z",
+ "type": "FLOAT"
+ },
+ {
+ "name": "year",
+ "type": "INT"
+ },
+ {
+ "name": "month",
+ "type": "INT"
+ },
+ {
+ "name": "day",
+ "type": "INT"
+ },
+ {
+ "name": "hour",
+ "type": "INT"
+ },
+ {
+ "name": "minute",
+ "type": "INT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_gravity_streams/iot.per.device.stream.android.gravity_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_gravity_streams/iot.per.device.stream.android.gravity_1.0.0.json
new file mode 100755
index 000000000..1877828f6
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_gravity_streams/iot.per.device.stream.android.gravity_1.0.0.json
@@ -0,0 +1,34 @@
+{
+ "name": "iot.per.device.stream.android.gravity",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "x",
+ "type": "FLOAT"
+ },
+ {
+ "name": "y",
+ "type": "FLOAT"
+ },
+ {
+ "name": "z",
+ "type": "FLOAT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_gyroscope_stats_event_sink/iot_per_device_stream_android_gyroscope_stats.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_gyroscope_stats_event_sink/iot_per_device_stream_android_gyroscope_stats.xml
new file mode 100755
index 000000000..a958cd10d
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_gyroscope_stats_event_sink/iot_per_device_stream_android_gyroscope_stats.xml
@@ -0,0 +1,90 @@
+
+
+
+
+ meta_owner
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_deviceId
+ false
+ true
+ false
+ false
+ STRING
+
+
+ meta_timestamp
+ false
+ true
+ false
+ false
+ LONG
+
+
+ axis
+ false
+ false
+ false
+ false
+ STRING
+
+
+ value
+ false
+ false
+ false
+ false
+ FLOAT
+
+
+ year
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ month
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ day
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ hour
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ minute
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+
+ false
+ EVENT_STORE
+
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_gyroscope_stats_streams/iot.per.device.stream.android.gyroscope.stats_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_gyroscope_stats_streams/iot.per.device.stream.android.gyroscope.stats_1.0.0.json
new file mode 100755
index 000000000..7084adb19
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_gyroscope_stats_streams/iot.per.device.stream.android.gyroscope.stats_1.0.0.json
@@ -0,0 +1,50 @@
+{
+ "name": "iot.per.device.stream.android.gyroscope.stats",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "axis",
+ "type": "STRING"
+ },
+ {
+ "name": "value",
+ "type": "FLOAT"
+ },
+ {
+ "name": "year",
+ "type": "INT"
+ },
+ {
+ "name": "month",
+ "type": "INT"
+ },
+ {
+ "name": "day",
+ "type": "INT"
+ },
+ {
+ "name": "hour",
+ "type": "INT"
+ },
+ {
+ "name": "minute",
+ "type": "INT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_gyroscope_streams/iot.per.device.stream.android.gyroscope_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_gyroscope_streams/iot.per.device.stream.android.gyroscope_1.0.0.json
new file mode 100755
index 000000000..bf0dd7ff1
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_gyroscope_streams/iot.per.device.stream.android.gyroscope_1.0.0.json
@@ -0,0 +1,30 @@
+{
+ "name": "iot.per.device.stream.android.gyroscope",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "axis",
+ "type": "STRING"
+ },
+ {
+ "name": "value",
+ "type": "FLOAT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_headset_stats_event_sink/iot_per_device_stream_android_headset_stats.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_headset_stats_event_sink/iot_per_device_stream_android_headset_stats.xml
new file mode 100755
index 000000000..d24d7b007
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_headset_stats_event_sink/iot_per_device_stream_android_headset_stats.xml
@@ -0,0 +1,82 @@
+
+
+
+
+ meta_owner
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_deviceId
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_timestamp
+ false
+ false
+ false
+ false
+ LONG
+
+
+ duration
+ false
+ false
+ false
+ false
+ LONG
+
+
+ year
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ month
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ day
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ hour
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ minute
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+
+ false
+ EVENT_STORE
+
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_headset_stats_streams/iot.per.device.stream.android.headset.stats_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_headset_stats_streams/iot.per.device.stream.android.headset.stats_1.0.0.json
new file mode 100755
index 000000000..40b7fce0c
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_headset_stats_streams/iot.per.device.stream.android.headset.stats_1.0.0.json
@@ -0,0 +1,46 @@
+{
+ "name": "iot.per.device.stream.android.headset.stats",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "End stream of head set state staticstics",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "duration",
+ "type": "LONG"
+ },
+ {
+ "name": "year",
+ "type": "INT"
+ },
+ {
+ "name": "month",
+ "type": "INT"
+ },
+ {
+ "name": "day",
+ "type": "INT"
+ },
+ {
+ "name": "hour",
+ "type": "INT"
+ },
+ {
+ "name": "minute",
+ "type": "INT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_light_stats_event_sink/iot_per_device_stream_android_light_stats.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_light_stats_event_sink/iot_per_device_stream_android_light_stats.xml
new file mode 100755
index 000000000..2239d4b9a
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_light_stats_event_sink/iot_per_device_stream_android_light_stats.xml
@@ -0,0 +1,82 @@
+
+
+
+
+ meta_owner
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_deviceId
+ false
+ true
+ false
+ false
+ STRING
+
+
+ meta_timestamp
+ false
+ true
+ false
+ false
+ LONG
+
+
+ light
+ false
+ false
+ false
+ false
+ FLOAT
+
+
+ year
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ month
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ day
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ hour
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ minute
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+
+ false
+ EVENT_STORE
+
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_light_stats_streams/iot.per.device.stream.android.light.stats_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_light_stats_streams/iot.per.device.stream.android.light.stats_1.0.0.json
new file mode 100755
index 000000000..91be5fea4
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_light_stats_streams/iot.per.device.stream.android.light.stats_1.0.0.json
@@ -0,0 +1,46 @@
+{
+ "name": "iot.per.device.stream.android.light.stats",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "light",
+ "type": "FLOAT"
+ },
+ {
+ "name": "year",
+ "type": "INT"
+ },
+ {
+ "name": "month",
+ "type": "INT"
+ },
+ {
+ "name": "day",
+ "type": "INT"
+ },
+ {
+ "name": "hour",
+ "type": "INT"
+ },
+ {
+ "name": "minute",
+ "type": "INT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_light_streams/iot.per.device.stream.android.light_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_light_streams/iot.per.device.stream.android.light_1.0.0.json
new file mode 100755
index 000000000..b2240d3ad
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_light_streams/iot.per.device.stream.android.light_1.0.0.json
@@ -0,0 +1,26 @@
+{
+ "name": "iot.per.device.stream.android.light",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "light",
+ "type": "FLOAT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_location_event_sink/iot_per_device_stream_android_location.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_location_event_sink/iot_per_device_stream_android_location.xml
new file mode 100755
index 000000000..703d07725
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_location_event_sink/iot_per_device_stream_android_location.xml
@@ -0,0 +1,50 @@
+
+
+
+
+ meta_owner
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_deviceId
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_timestamp
+ false
+ false
+ false
+ false
+ LONG
+
+
+ latitude
+ false
+ false
+ false
+ false
+ DOUBLE
+
+
+ longitude
+ false
+ false
+ false
+ false
+ DOUBLE
+
+
+
+ false
+ EVENT_STORE
+
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_location_stats_event_sink/iot_per_device_stream_android_location_stats.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_location_stats_event_sink/iot_per_device_stream_android_location_stats.xml
new file mode 100755
index 000000000..8e63f319d
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_location_stats_event_sink/iot_per_device_stream_android_location_stats.xml
@@ -0,0 +1,98 @@
+
+
+
+
+ meta_owner
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_deviceId
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_timestamp
+ false
+ false
+ false
+ false
+ LONG
+
+
+ latitude
+ false
+ false
+ false
+ false
+ DOUBLE
+
+
+ longitude
+ false
+ false
+ false
+ false
+ DOUBLE
+
+
+ streetName
+ false
+ false
+ false
+ false
+ STRING
+
+
+ year
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ month
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ day
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ hour
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ minute
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+
+ false
+ EVENT_STORE
+
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_location_stats_streams/iot.per.device.stream.android.location.stats_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_location_stats_streams/iot.per.device.stream.android.location.stats_1.0.0.json
new file mode 100755
index 000000000..5c3da4686
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_location_stats_streams/iot.per.device.stream.android.location.stats_1.0.0.json
@@ -0,0 +1,54 @@
+{
+ "name": "iot.per.device.stream.android.location.stats",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "latitude",
+ "type": "DOUBLE"
+ },
+ {
+ "name": "longitude",
+ "type": "DOUBLE"
+ },
+ {
+ "name": "streetName",
+ "type": "STRING"
+ },
+ {
+ "name": "year",
+ "type": "INT"
+ },
+ {
+ "name": "month",
+ "type": "INT"
+ },
+ {
+ "name": "day",
+ "type": "INT"
+ },
+ {
+ "name": "hour",
+ "type": "INT"
+ },
+ {
+ "name": "minute",
+ "type": "INT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_location_streams/iot.per.device.stream.android.location_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_location_streams/iot.per.device.stream.android.location_1.0.0.json
new file mode 100755
index 000000000..50bdaed7e
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_location_streams/iot.per.device.stream.android.location_1.0.0.json
@@ -0,0 +1,30 @@
+{
+ "name": "iot.per.device.stream.android.location",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "Location stream which is mapped from Android sense stream",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "latitude",
+ "type": "DOUBLE"
+ },
+ {
+ "name": "longitude",
+ "type": "DOUBLE"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_magnetic_stats_event_sink/iot_per_device_stream_android_magnetic_stats.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_magnetic_stats_event_sink/iot_per_device_stream_android_magnetic_stats.xml
new file mode 100755
index 000000000..ac71c9df9
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_magnetic_stats_event_sink/iot_per_device_stream_android_magnetic_stats.xml
@@ -0,0 +1,90 @@
+
+
+
+
+ meta_owner
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_deviceId
+ false
+ true
+ false
+ false
+ STRING
+
+
+ meta_timestamp
+ false
+ true
+ false
+ false
+ LONG
+
+
+ axis
+ false
+ false
+ false
+ false
+ STRING
+
+
+ value
+ false
+ false
+ false
+ false
+ FLOAT
+
+
+ year
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ month
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ day
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ hour
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ minute
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+
+ false
+ EVENT_STORE
+
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_magnetic_stats_streams/iot.per.device.stream.android.magnetic.stats_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_magnetic_stats_streams/iot.per.device.stream.android.magnetic.stats_1.0.0.json
new file mode 100755
index 000000000..fb72355a3
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_magnetic_stats_streams/iot.per.device.stream.android.magnetic.stats_1.0.0.json
@@ -0,0 +1,50 @@
+{
+ "name": "iot.per.device.stream.android.magnetic.stats",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "axis",
+ "type": "STRING"
+ },
+ {
+ "name": "value",
+ "type": "FLOAT"
+ },
+ {
+ "name": "year",
+ "type": "INT"
+ },
+ {
+ "name": "month",
+ "type": "INT"
+ },
+ {
+ "name": "day",
+ "type": "INT"
+ },
+ {
+ "name": "hour",
+ "type": "INT"
+ },
+ {
+ "name": "minute",
+ "type": "INT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_magnetic_streams/iot.per.device.stream.android.magnetic_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_magnetic_streams/iot.per.device.stream.android.magnetic_1.0.0.json
new file mode 100755
index 000000000..4bd43c399
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_magnetic_streams/iot.per.device.stream.android.magnetic_1.0.0.json
@@ -0,0 +1,30 @@
+{
+ "name": "iot.per.device.stream.android.magnetic",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "axis",
+ "type": "STRING"
+ },
+ {
+ "name": "value",
+ "type": "FLOAT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_pressure_stats_event_sink/iot_per_device_stream_android_pressure_stats.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_pressure_stats_event_sink/iot_per_device_stream_android_pressure_stats.xml
new file mode 100755
index 000000000..7cac9fff1
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_pressure_stats_event_sink/iot_per_device_stream_android_pressure_stats.xml
@@ -0,0 +1,82 @@
+
+
+
+
+ meta_owner
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_deviceId
+ false
+ true
+ false
+ false
+ STRING
+
+
+ meta_timestamp
+ false
+ true
+ false
+ false
+ LONG
+
+
+ pressure
+ false
+ false
+ false
+ false
+ FLOAT
+
+
+ year
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ month
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ day
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ hour
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ minute
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+
+ false
+ EVENT_STORE
+
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_pressure_stats_streams/iot.per.device.stream.android.pressure.stats_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_pressure_stats_streams/iot.per.device.stream.android.pressure.stats_1.0.0.json
new file mode 100755
index 000000000..3fa0071b3
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_pressure_stats_streams/iot.per.device.stream.android.pressure.stats_1.0.0.json
@@ -0,0 +1,46 @@
+{
+ "name": "iot.per.device.stream.android.pressure.stats",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "pressure",
+ "type": "FLOAT"
+ },
+ {
+ "name": "year",
+ "type": "INT"
+ },
+ {
+ "name": "month",
+ "type": "INT"
+ },
+ {
+ "name": "day",
+ "type": "INT"
+ },
+ {
+ "name": "hour",
+ "type": "INT"
+ },
+ {
+ "name": "minute",
+ "type": "INT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_pressure_streams/iot.per.device.stream.android.pressure_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_pressure_streams/iot.per.device.stream.android.pressure_1.0.0.json
new file mode 100755
index 000000000..38d3c33c0
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_pressure_streams/iot.per.device.stream.android.pressure_1.0.0.json
@@ -0,0 +1,26 @@
+{
+ "name": "iot.per.device.stream.android.pressure",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "pressure",
+ "type": "FLOAT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_proximity_stats_event_sink/iot_per_device_stream_android_proximity_stats.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_proximity_stats_event_sink/iot_per_device_stream_android_proximity_stats.xml
new file mode 100755
index 000000000..17701ac0b
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_proximity_stats_event_sink/iot_per_device_stream_android_proximity_stats.xml
@@ -0,0 +1,82 @@
+
+
+
+
+ meta_owner
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_deviceId
+ false
+ true
+ false
+ false
+ STRING
+
+
+ meta_timestamp
+ false
+ true
+ false
+ false
+ LONG
+
+
+ proximity
+ false
+ false
+ false
+ false
+ FLOAT
+
+
+ year
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ month
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ day
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ hour
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ minute
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+
+ false
+ EVENT_STORE
+
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_proximity_stats_streams/iot.per.device.stream.android.proximity.stats_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_proximity_stats_streams/iot.per.device.stream.android.proximity.stats_1.0.0.json
new file mode 100755
index 000000000..cef7398c4
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_proximity_stats_streams/iot.per.device.stream.android.proximity.stats_1.0.0.json
@@ -0,0 +1,46 @@
+{
+ "name": "iot.per.device.stream.android.proximity.stats",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "proximity",
+ "type": "FLOAT"
+ },
+ {
+ "name": "year",
+ "type": "INT"
+ },
+ {
+ "name": "month",
+ "type": "INT"
+ },
+ {
+ "name": "day",
+ "type": "INT"
+ },
+ {
+ "name": "hour",
+ "type": "INT"
+ },
+ {
+ "name": "minute",
+ "type": "INT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_proximity_streams/iot.per.device.stream.android.proximity_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_proximity_streams/iot.per.device.stream.android.proximity_1.0.0.json
new file mode 100755
index 000000000..2e708cb56
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_proximity_streams/iot.per.device.stream.android.proximity_1.0.0.json
@@ -0,0 +1,26 @@
+{
+ "name": "iot.per.device.stream.android.proximity",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "proximity",
+ "type": "FLOAT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_rotation_stats_event_sink/iot_per_device_stream_android_rotation_stats.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_rotation_stats_event_sink/iot_per_device_stream_android_rotation_stats.xml
new file mode 100755
index 000000000..e8fec6a96
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_rotation_stats_event_sink/iot_per_device_stream_android_rotation_stats.xml
@@ -0,0 +1,90 @@
+
+
+
+
+ meta_owner
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_deviceId
+ false
+ true
+ false
+ false
+ STRING
+
+
+ meta_timestamp
+ false
+ true
+ false
+ false
+ LONG
+
+
+ axis
+ false
+ false
+ false
+ false
+ STRING
+
+
+ value
+ false
+ false
+ false
+ false
+ FLOAT
+
+
+ year
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ month
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ day
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ hour
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ minute
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+
+ false
+ EVENT_STORE
+
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_rotation_stats_streams/iot.per.device.stream.android.rotation.stats_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_rotation_stats_streams/iot.per.device.stream.android.rotation.stats_1.0.0.json
new file mode 100755
index 000000000..fb57c2d1b
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_rotation_stats_streams/iot.per.device.stream.android.rotation.stats_1.0.0.json
@@ -0,0 +1,50 @@
+{
+ "name": "iot.per.device.stream.android.rotation.stats",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "axis",
+ "type": "STRING"
+ },
+ {
+ "name": "value",
+ "type": "FLOAT"
+ },
+ {
+ "name": "year",
+ "type": "INT"
+ },
+ {
+ "name": "month",
+ "type": "INT"
+ },
+ {
+ "name": "day",
+ "type": "INT"
+ },
+ {
+ "name": "hour",
+ "type": "INT"
+ },
+ {
+ "name": "minute",
+ "type": "INT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_rotation_streams/iot.per.device.stream.android.rotation_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_rotation_streams/iot.per.device.stream.android.rotation_1.0.0.json
new file mode 100755
index 000000000..315c0d130
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_rotation_streams/iot.per.device.stream.android.rotation_1.0.0.json
@@ -0,0 +1,30 @@
+{
+ "name": "iot.per.device.stream.android.rotation",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "axis",
+ "type": "STRING"
+ },
+ {
+ "name": "value",
+ "type": "FLOAT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_screen_stats_event_sink/iot_per_device_stream_android_screen_stats.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_screen_stats_event_sink/iot_per_device_stream_android_screen_stats.xml
new file mode 100755
index 000000000..d9e5d45a2
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_screen_stats_event_sink/iot_per_device_stream_android_screen_stats.xml
@@ -0,0 +1,82 @@
+
+
+
+
+ meta_owner
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_deviceId
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_timestamp
+ false
+ false
+ false
+ false
+ LONG
+
+
+ duration
+ false
+ false
+ false
+ false
+ LONG
+
+
+ year
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ month
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ day
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ hour
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ minute
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+
+ false
+ EVENT_STORE
+
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_screen_stats_streams/iot.per.device.stream.android.screen.stats_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_screen_stats_streams/iot.per.device.stream.android.screen.stats_1.0.0.json
new file mode 100755
index 000000000..361d31378
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_screen_stats_streams/iot.per.device.stream.android.screen.stats_1.0.0.json
@@ -0,0 +1,46 @@
+{
+ "name": "iot.per.device.stream.android.screen.stats",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "End stream of screen state staticstics",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "duration",
+ "type": "LONG"
+ },
+ {
+ "name": "year",
+ "type": "INT"
+ },
+ {
+ "name": "month",
+ "type": "INT"
+ },
+ {
+ "name": "day",
+ "type": "INT"
+ },
+ {
+ "name": "hour",
+ "type": "INT"
+ },
+ {
+ "name": "minute",
+ "type": "INT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_screen_streams/iot.per.device.stream.android.screen_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_screen_streams/iot.per.device.stream.android.screen_1.0.0.json
new file mode 100755
index 000000000..28161bd0b
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_screen_streams/iot.per.device.stream.android.screen_1.0.0.json
@@ -0,0 +1,26 @@
+{
+ "name": "iot.per.device.stream.android.screen",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "Intermediate stream to map Android sense stream to screen execution plan",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "state",
+ "type": "STRING"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sms_stats_event_sink/iot_per_device_stream_android_sms_stats.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sms_stats_event_sink/iot_per_device_stream_android_sms_stats.xml
new file mode 100755
index 000000000..66d87162e
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sms_stats_event_sink/iot_per_device_stream_android_sms_stats.xml
@@ -0,0 +1,90 @@
+
+
+
+
+ meta_owner
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_deviceId
+ false
+ false
+ false
+ false
+ STRING
+
+
+ meta_timestamp
+ false
+ false
+ false
+ false
+ LONG
+
+
+ number
+ false
+ false
+ false
+ false
+ STRING
+
+
+ type
+ false
+ false
+ false
+ false
+ STRING
+
+
+ year
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ month
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ day
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ hour
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+ minute
+ false
+ false
+ false
+ false
+ INTEGER
+
+
+
+ false
+ EVENT_STORE
+
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sms_stats_streams/iot.per.device.stream.android.sms.stats_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sms_stats_streams/iot.per.device.stream.android.sms.stats_1.0.0.json
new file mode 100755
index 000000000..3a6864dab
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sms_stats_streams/iot.per.device.stream.android.sms.stats_1.0.0.json
@@ -0,0 +1,50 @@
+{
+ "name": "iot.per.device.stream.android.sms.stats",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "number",
+ "type": "STRING"
+ },
+ {
+ "name": "type",
+ "type": "STRING"
+ },
+ {
+ "name": "year",
+ "type": "INT"
+ },
+ {
+ "name": "month",
+ "type": "INT"
+ },
+ {
+ "name": "day",
+ "type": "INT"
+ },
+ {
+ "name": "hour",
+ "type": "INT"
+ },
+ {
+ "name": "minute",
+ "type": "INT"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sms_streams/iot.per.device.stream.android.sms_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sms_streams/iot.per.device.stream.android.sms_1.0.0.json
new file mode 100755
index 000000000..e35bda298
--- /dev/null
+++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sms_streams/iot.per.device.stream.android.sms_1.0.0.json
@@ -0,0 +1,34 @@
+{
+ "name": "iot.per.device.stream.android.sms",
+ "version": "1.0.0",
+ "nickName": "",
+ "description": "",
+ "metaData": [
+ {
+ "name": "owner",
+ "type": "STRING"
+ },
+ {
+ "name": "deviceId",
+ "type": "STRING"
+ },
+ {
+ "name": "timestamp",
+ "type": "LONG"
+ }
+ ],
+ "payloadData": [
+ {
+ "name": "number",
+ "type": "STRING"
+ },
+ {
+ "name": "type",
+ "type": "STRING"
+ },
+ {
+ "name": "body",
+ "type": "STRING"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/artifacts.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/artifacts.xml
deleted file mode 100644
index e3a25034f..000000000
--- a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/artifacts.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_receiver/artifact.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_receiver/artifact.xml
deleted file mode 100644
index 81cc82009..000000000
--- a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_receiver/artifact.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
- word_count_receiver.xml
-
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_receiver/word_count_receiver.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_receiver/word_count_receiver.xml
deleted file mode 100644
index fe17694e8..000000000
--- a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_receiver/word_count_receiver.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
- false
-
-
-
-
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_script/artifact.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_script/artifact.xml
deleted file mode 100644
index be0d2bdcb..000000000
--- a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_script/artifact.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
- word_count_script.xml
-
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_script/word_count_script.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_script/word_count_script.xml
deleted file mode 100644
index 4394e958a..000000000
--- a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_script/word_count_script.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
- word_count_script
-
- 0 0/5 * * * ?
-
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_store/artifact.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_store/artifact.xml
deleted file mode 100644
index 15349af02..000000000
--- a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_store/artifact.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
- org_wso2_iot_devices_wordcount.xml
-
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_store/org_wso2_iot_devices_wordcount.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_store/org_wso2_iot_devices_wordcount.xml
deleted file mode 100644
index 8e9649dd1..000000000
--- a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_store/org_wso2_iot_devices_wordcount.xml
+++ /dev/null
@@ -1,76 +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
-
-
- sessionId
- false
- false
- false
- STRING
-
-
- word
- false
- false
- false
- STRING
-
-
- status
- false
- false
- false
- STRING
-
-
-
\ No newline at end of file
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_stream/artifact.xml b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_stream/artifact.xml
deleted file mode 100644
index ebbb4f2e5..000000000
--- a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_stream/artifact.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
- org.wso2.iot.devices.wordcount_1.0.0.json
-
-
diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_stream/org.wso2.iot.devices.wordcount_1.0.0.json b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_stream/org.wso2.iot.devices.wordcount_1.0.0.json
deleted file mode 100644
index c5e6e7748..000000000
--- a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/word_count/word_count_stream/org.wso2.iot.devices.wordcount_1.0.0.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "name": "org.wso2.iot.devices.wordcount",
- "version": "1.0.0",
- "nickName": "Word Count Data",
- "description": "Word Count received from the Device",
- "metaData": [
- {"name":"owner","type":"STRING"},
- {"name":"deviceType","type":"STRING"},
- {"name":"deviceId","type":"STRING"},
- {"name":"time","type":"LONG"}
- ],
- "payloadData": [
- {"name" : "sessionId", "type" : "STRING"},
- {"name" : "word", "type" : "STRING"},
- {"name" : "status", "type" : "STRING"}
- ]
-}
\ No newline at end of file