From 12c9e9a7c7675f5238ca1ef6886bf260b7f7f678 Mon Sep 17 00:00:00 2001 From: charitha Date: Fri, 6 Oct 2017 13:30:46 +0530 Subject: [PATCH] Add DeviceInfo event reporting --- .../WSO2IoT-DeviceInfo-Receiver.xml | 27 +++++ .../artifact.xml | 21 ++++ .../main/resources/carbonapps/artifacts.xml | 2 + .../artifact.xml | 21 ++++ .../org.wso2.iot.DeviceInfoStream-1.0.0.json | 98 +++++++++++++++++++ 5 files changed, 169 insertions(+) create mode 100644 components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/WSO2IoT-DeviceInfo-Receiver_1.0.0/WSO2IoT-DeviceInfo-Receiver.xml create mode 100644 components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/WSO2IoT-DeviceInfo-Receiver_1.0.0/artifact.xml create mode 100644 components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/org.wso2.iot.DeviceInfoStream_1.0.0/artifact.xml create mode 100644 components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/org.wso2.iot.DeviceInfoStream_1.0.0/org.wso2.iot.DeviceInfoStream-1.0.0.json diff --git a/components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/WSO2IoT-DeviceInfo-Receiver_1.0.0/WSO2IoT-DeviceInfo-Receiver.xml b/components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/WSO2IoT-DeviceInfo-Receiver_1.0.0/WSO2IoT-DeviceInfo-Receiver.xml new file mode 100644 index 000000000..53cb45ec1 --- /dev/null +++ b/components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/WSO2IoT-DeviceInfo-Receiver_1.0.0/WSO2IoT-DeviceInfo-Receiver.xml @@ -0,0 +1,27 @@ + + + + + + false + + + + \ No newline at end of file diff --git a/components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/WSO2IoT-DeviceInfo-Receiver_1.0.0/artifact.xml b/components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/WSO2IoT-DeviceInfo-Receiver_1.0.0/artifact.xml new file mode 100644 index 000000000..6515e8034 --- /dev/null +++ b/components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/WSO2IoT-DeviceInfo-Receiver_1.0.0/artifact.xml @@ -0,0 +1,21 @@ + + + + WSO2IoT-DeviceInfo-Receiver.xml + diff --git a/components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/artifacts.xml b/components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/artifacts.xml index f0fdfa066..04ee848f6 100644 --- a/components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/artifacts.xml +++ b/components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/artifacts.xml @@ -21,6 +21,7 @@ + @@ -31,6 +32,7 @@ + diff --git a/components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/org.wso2.iot.DeviceInfoStream_1.0.0/artifact.xml b/components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/org.wso2.iot.DeviceInfoStream_1.0.0/artifact.xml new file mode 100644 index 000000000..7071501ef --- /dev/null +++ b/components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/org.wso2.iot.DeviceInfoStream_1.0.0/artifact.xml @@ -0,0 +1,21 @@ + + + + org.wso2.iot.DeviceInfoStream-1.0.0.json + diff --git a/components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/org.wso2.iot.DeviceInfoStream_1.0.0/org.wso2.iot.DeviceInfoStream-1.0.0.json b/components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/org.wso2.iot.DeviceInfoStream_1.0.0/org.wso2.iot.DeviceInfoStream-1.0.0.json new file mode 100644 index 000000000..129b96c72 --- /dev/null +++ b/components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/org.wso2.iot.DeviceInfoStream_1.0.0/org.wso2.iot.DeviceInfoStream-1.0.0.json @@ -0,0 +1,98 @@ +{ + "name": "org.wso2.iot.DeviceInfoStream", + "version": "1.0.0", + "nickName": "", + "description": "IoT Server Device Info Stream", + "metaData": [ + { + "name": "deviceId", + "type": "STRING" + }, + { + "name": "deviceType", + "type": "STRING" + } + ], + "payloadData": [ + { + "name": "timeStamp", + "type": "LONG" + }, + { + "name": "imei", + "type": "STRING" + }, + { + "name": "imsi", + "type": "STRING" + }, + { + "name": "deviceModel", + "type": "STRING" + }, + { + "name": "vendor", + "type": "STRING" + }, + { + "name": "osVersion", + "type": "STRING" + }, + { + "name": "osBuildDate", + "type": "STRING" + }, + { + "name": "batteryLevel", + "type": "DOUBLE" + }, + { + "name": "totalInternalMemory", + "type": "DOUBLE" + }, + { + "name": "availableInternalMemory", + "type": "DOUBLE" + }, + { + "name": "totalExternalMemory", + "type": "DOUBLE" + }, + { + "name": "availableExternalMemory", + "type": "DOUBLE" + }, + { + "name": "operator", + "type": "STRING" + }, + { + "name": "connectionType", + "type": "STRING" + }, + { + "name": "mobileSignalStrength", + "type": "DOUBLE" + }, + { + "name": "ssid", + "type": "STRING" + }, + { + "name": "cpuUsage", + "type": "DOUBLE" + }, + { + "name": "totalRAM", + "type": "DOUBLE" + }, + { + "name": "availableRAM", + "type": "DOUBLE" + }, + { + "name": "pluggedIn", + "type": "BOOL" + } + ] +} \ No newline at end of file