forked from community/device-mgt-plugins
Merge pull request #644 from Jasintha/cloud-3.1.0
Fixing MQTT adapter and analytics resources for android-sense user story
commit
c386f562eb
@ -1,37 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<eventPublisher name="Geo-Publisher-RDBMS-GeoAlertNotifications"
|
|
||||||
statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventpublisher">
|
|
||||||
<from streamName="org.wso2.geo.AlertsNotifications" version="1.0.0"/>
|
|
||||||
<mapping customMapping="enable" type="map">
|
|
||||||
<property>
|
|
||||||
<from name="id"/>
|
|
||||||
<to name="id"/>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<from name="state"/>
|
|
||||||
<to name="state"/>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<from name="information"/>
|
|
||||||
<to name="information"/>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<from name="timeStamp"/>
|
|
||||||
<to name="timeStamp"/>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<from name="longitude"/>
|
|
||||||
<to name="longitude"/>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<from name="latitude"/>
|
|
||||||
<to name="latitude"/>
|
|
||||||
</property>
|
|
||||||
</mapping>
|
|
||||||
<to eventAdapterType="rdbms">
|
|
||||||
<property name="datasource.name">WSO2_GEO_DB</property>
|
|
||||||
<property name="table.name">alerts_history</property>
|
|
||||||
<property name="execution.mode">insert</property>
|
|
||||||
<property name="update.keys"/>
|
|
||||||
</to>
|
|
||||||
</eventPublisher>
|
|
@ -0,0 +1,66 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
|
<EventStoreConfiguration>
|
||||||
|
<TableSchema>
|
||||||
|
<ColumnDefinition>
|
||||||
|
<Name>id</Name>
|
||||||
|
<IsFacet>false</IsFacet>
|
||||||
|
<EnableIndexing>true</EnableIndexing>
|
||||||
|
<IsPrimaryKey>false</IsPrimaryKey>
|
||||||
|
<EnableScoreParam>false</EnableScoreParam>
|
||||||
|
<Type>STRING</Type>
|
||||||
|
</ColumnDefinition>
|
||||||
|
<ColumnDefinition>
|
||||||
|
<Name>state</Name>
|
||||||
|
<IsFacet>false</IsFacet>
|
||||||
|
<EnableIndexing>true</EnableIndexing>
|
||||||
|
<IsPrimaryKey>false</IsPrimaryKey>
|
||||||
|
<EnableScoreParam>false</EnableScoreParam>
|
||||||
|
<Type>STRING</Type>
|
||||||
|
</ColumnDefinition>
|
||||||
|
<ColumnDefinition>
|
||||||
|
<Name>information</Name>
|
||||||
|
<IsFacet>false</IsFacet>
|
||||||
|
<EnableIndexing>false</EnableIndexing>
|
||||||
|
<IsPrimaryKey>false</IsPrimaryKey>
|
||||||
|
<EnableScoreParam>false</EnableScoreParam>
|
||||||
|
<Type>STRING</Type>
|
||||||
|
</ColumnDefinition>
|
||||||
|
<ColumnDefinition>
|
||||||
|
<Name>timeStamp</Name>
|
||||||
|
<IsFacet>false</IsFacet>
|
||||||
|
<EnableIndexing>true</EnableIndexing>
|
||||||
|
<IsPrimaryKey>false</IsPrimaryKey>
|
||||||
|
<EnableScoreParam>false</EnableScoreParam>
|
||||||
|
<Type>LONG</Type>
|
||||||
|
</ColumnDefinition>
|
||||||
|
<ColumnDefinition>
|
||||||
|
<Name>latitude</Name>
|
||||||
|
<IsFacet>false</IsFacet>
|
||||||
|
<EnableIndexing>false</EnableIndexing>
|
||||||
|
<IsPrimaryKey>false</IsPrimaryKey>
|
||||||
|
<EnableScoreParam>false</EnableScoreParam>
|
||||||
|
<Type>DOUBLE</Type>
|
||||||
|
</ColumnDefinition>
|
||||||
|
<ColumnDefinition>
|
||||||
|
<Name>longitude</Name>
|
||||||
|
<IsFacet>false</IsFacet>
|
||||||
|
<EnableIndexing>false</EnableIndexing>
|
||||||
|
<IsPrimaryKey>false</IsPrimaryKey>
|
||||||
|
<EnableScoreParam>false</EnableScoreParam>
|
||||||
|
<Type>DOUBLE</Type>
|
||||||
|
</ColumnDefinition>
|
||||||
|
<ColumnDefinition>
|
||||||
|
<Name>type</Name>
|
||||||
|
<IsFacet>false</IsFacet>
|
||||||
|
<EnableIndexing>true</EnableIndexing>
|
||||||
|
<IsPrimaryKey>false</IsPrimaryKey>
|
||||||
|
<EnableScoreParam>false</EnableScoreParam>
|
||||||
|
<Type>STRING</Type>
|
||||||
|
</ColumnDefinition>
|
||||||
|
</TableSchema>
|
||||||
|
<Source>
|
||||||
|
<StreamId>Geo-Publisher-RDBMS-GeoAlertNotifications:1.0.0</StreamId>
|
||||||
|
</Source>
|
||||||
|
<MergeSchema>false</MergeSchema>
|
||||||
|
<RecordStoreName>EVENT_STORE</RecordStoreName>
|
||||||
|
</EventStoreConfiguration>
|
@ -1,22 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!--
|
|
||||||
~ Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
|
||||||
~
|
|
||||||
~ WSO2 Inc. licenses this file to you under the Apache License,
|
|
||||||
~ Version 2.0 (the "License"); you may not use this file except
|
|
||||||
~ in compliance with the License.
|
|
||||||
~ You may obtain a copy of the License at
|
|
||||||
~
|
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
~
|
|
||||||
~ Unless required by applicable law or agreed to in writing,
|
|
||||||
~ software distributed under the License is distributed on an
|
|
||||||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
~ KIND, either express or implied. See the License for the
|
|
||||||
~ specific language governing permissions and limitations
|
|
||||||
~ under the License.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<artifact name="android_sense_receiver" version="1.0.0" type="event/receiver" serverRole="DataAnalyticsServer">
|
|
||||||
<file>android_sense_receiver.xml</file>
|
|
||||||
</artifact>
|
|
3
components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_receiver/android_sense_receiver.xml → features/device-types-feature/androidsense-plugin-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/receiver/android_sense_receiver.xml
3
components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_sense_receiver/android_sense_receiver.xml → features/device-types-feature/androidsense-plugin-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/receiver/android_sense_receiver.xml
@ -0,0 +1,63 @@
|
|||||||
|
{
|
||||||
|
"name": "org.wso2.iot.android.sense",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"nickName": "android_sense_stream",
|
||||||
|
"description": "This hold the device type stream of android sense",
|
||||||
|
"metaData": [
|
||||||
|
{"name": "owner", "type": "STRING"},
|
||||||
|
{"name": "deviceId", "type": "STRING"},
|
||||||
|
{"name": "type", "type": "STRING"},
|
||||||
|
{"name": "timestamp", "type": "LONG"}
|
||||||
|
],
|
||||||
|
"payloadData": [
|
||||||
|
{"name": "battery", "type": "INT"},
|
||||||
|
{"name": "battery_state", "type": "STRING"},
|
||||||
|
{"name": "battery_status", "type": "STRING"},
|
||||||
|
{"name": "battery_temperature", "type": "INT"},
|
||||||
|
{"name": "gps_lat", "type": "DOUBLE"},
|
||||||
|
{"name": "gps_long", "type": "DOUBLE"},
|
||||||
|
{"name": "accelerometer_x", "type": "FLOAT"},
|
||||||
|
{"name": "accelerometer_y", "type": "FLOAT"},
|
||||||
|
{"name": "accelerometer_z", "type": "FLOAT"},
|
||||||
|
{"name": "speed_limit", "type": "FLOAT"},
|
||||||
|
{"name": "turn_way", "type": "STRING"},
|
||||||
|
{"name": "magnetic_x", "type": "FLOAT"},
|
||||||
|
{"name": "magnetic_y", "type": "FLOAT"},
|
||||||
|
{"name": "magnetic_z", "type": "FLOAT"},
|
||||||
|
{"name": "gyroscope_x", "type": "FLOAT"},
|
||||||
|
{"name": "gyroscope_y", "type": "FLOAT"},
|
||||||
|
{"name": "gyroscope_z", "type": "FLOAT"},
|
||||||
|
{"name": "light", "type": "FLOAT"},
|
||||||
|
{"name": "pressure", "type": "FLOAT"},
|
||||||
|
{"name": "proximity", "type": "FLOAT"},
|
||||||
|
{"name": "gravity_x", "type": "FLOAT"},
|
||||||
|
{"name": "gravity_y", "type": "FLOAT"},
|
||||||
|
{"name": "gravity_z", "type": "FLOAT"},
|
||||||
|
{"name": "rotation_x", "type": "FLOAT"},
|
||||||
|
{"name": "rotation_y", "type": "FLOAT"},
|
||||||
|
{"name": "rotation_z", "type": "FLOAT"},
|
||||||
|
{"name": "word", "type": "STRING"},
|
||||||
|
{"name": "word_sessionId", "type": "STRING"},
|
||||||
|
{"name": "word_status", "type": "STRING"},
|
||||||
|
{"name": "beacon_major", "type": "INT"},
|
||||||
|
{"name": "beacon_minor", "type": "INT"},
|
||||||
|
{"name": "beacon_proximity", "type": "STRING"},
|
||||||
|
{"name": "beacon_uuid", "type": "INT"},
|
||||||
|
{"name": "call_number", "type": "STRING"},
|
||||||
|
{"name": "call_type", "type": "STRING"},
|
||||||
|
{"name": "call_start_time", "type": "LONG"},
|
||||||
|
{"name": "call_end_time", "type": "LONG"},
|
||||||
|
{"name": "screen_state", "type": "STRING"},
|
||||||
|
{"name": "audio_playing", "type": "BOOL"},
|
||||||
|
{"name": "headset_on", "type": "BOOL"},
|
||||||
|
{"name": "music_volume", "type": "INT"},
|
||||||
|
{"name": "activity_type", "type": "INT"},
|
||||||
|
{"name": "confidence", "type": "INT"},
|
||||||
|
{"name": "sms_number", "type": "STRING"},
|
||||||
|
{"name": "application_name", "type": "STRING"},
|
||||||
|
{"name": "action", "type": "STRING"},
|
||||||
|
{"name": "data_type", "type": "STRING"},
|
||||||
|
{"name": "data_sent", "type": "LONG"},
|
||||||
|
{"name": "data_received", "type": "LONG"}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in new issue