forked from community/product-iots
parent
fa112b28e5
commit
e2ce28767e
@ -1,62 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
||||||
<!--
|
|
||||||
~ 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.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<EventStoreConfiguration>
|
|
||||||
<Source>
|
|
||||||
<StreamId>org.wso2.iot.devices.sensor:1.0.0</StreamId>
|
|
||||||
</Source>
|
|
||||||
<RecordStoreName>EVENT_STORE</RecordStoreName>
|
|
||||||
<TableSchema>
|
|
||||||
<ColumnDefinition>
|
|
||||||
<Name>meta_owner</Name>
|
|
||||||
<EnableIndexing>true</EnableIndexing>
|
|
||||||
<IsPrimaryKey>true</IsPrimaryKey>
|
|
||||||
<EnableScoreParam>false</EnableScoreParam>
|
|
||||||
<Type>STRING</Type>
|
|
||||||
</ColumnDefinition>
|
|
||||||
<ColumnDefinition>
|
|
||||||
<Name>meta_deviceType</Name>
|
|
||||||
<EnableIndexing>true</EnableIndexing>
|
|
||||||
<IsPrimaryKey>true</IsPrimaryKey>
|
|
||||||
<EnableScoreParam>false</EnableScoreParam>
|
|
||||||
<Type>STRING</Type>
|
|
||||||
</ColumnDefinition>
|
|
||||||
<ColumnDefinition>
|
|
||||||
<Name>meta_deviceId</Name>
|
|
||||||
<EnableIndexing>true</EnableIndexing>
|
|
||||||
<IsPrimaryKey>true</IsPrimaryKey>
|
|
||||||
<EnableScoreParam>false</EnableScoreParam>
|
|
||||||
<Type>STRING</Type>
|
|
||||||
</ColumnDefinition>
|
|
||||||
<ColumnDefinition>
|
|
||||||
<Name>meta_time</Name>
|
|
||||||
<EnableIndexing>true</EnableIndexing>
|
|
||||||
<IsPrimaryKey>true</IsPrimaryKey>
|
|
||||||
<EnableScoreParam>false</EnableScoreParam>
|
|
||||||
<Type>LONG</Type>
|
|
||||||
</ColumnDefinition>
|
|
||||||
<ColumnDefinition>
|
|
||||||
<Name>sensorValue</Name>
|
|
||||||
<EnableIndexing>false</EnableIndexing>
|
|
||||||
<IsPrimaryKey>false</IsPrimaryKey>
|
|
||||||
<EnableScoreParam>false</EnableScoreParam>
|
|
||||||
<Type>FLOAT</Type>
|
|
||||||
</ColumnDefinition>
|
|
||||||
</TableSchema>
|
|
||||||
</EventStoreConfiguration>
|
|
@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "org.wso2.iot.devices.sensor",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"nickName": "Flow Rate Data",
|
|
||||||
"description": "Sensor data received from the Device",
|
|
||||||
"metaData": [
|
|
||||||
{"name":"owner","type":"STRING"},
|
|
||||||
{"name":"deviceType","type":"STRING"},
|
|
||||||
{"name":"deviceId","type":"STRING"},
|
|
||||||
{"name":"time","type":"LONG"}
|
|
||||||
],
|
|
||||||
"payloadData": [
|
|
||||||
{
|
|
||||||
"name": "sensorValue","type": "FLOAT"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
@ -0,0 +1,62 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
|
<!--
|
||||||
|
~ 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<EventStoreConfiguration>
|
||||||
|
<Source>
|
||||||
|
<StreamId>org.wso2.iot.devices.smartLock:1.0.0</StreamId>
|
||||||
|
</Source>
|
||||||
|
<RecordStoreName>EVENT_STORE</RecordStoreName>
|
||||||
|
<TableSchema>
|
||||||
|
<ColumnDefinition>
|
||||||
|
<Name>meta_owner</Name>
|
||||||
|
<EnableIndexing>true</EnableIndexing>
|
||||||
|
<IsPrimaryKey>true</IsPrimaryKey>
|
||||||
|
<EnableScoreParam>false</EnableScoreParam>
|
||||||
|
<Type>STRING</Type>
|
||||||
|
</ColumnDefinition>
|
||||||
|
<ColumnDefinition>
|
||||||
|
<Name>meta_deviceType</Name>
|
||||||
|
<EnableIndexing>true</EnableIndexing>
|
||||||
|
<IsPrimaryKey>true</IsPrimaryKey>
|
||||||
|
<EnableScoreParam>false</EnableScoreParam>
|
||||||
|
<Type>STRING</Type>
|
||||||
|
</ColumnDefinition>
|
||||||
|
<ColumnDefinition>
|
||||||
|
<Name>meta_deviceId</Name>
|
||||||
|
<EnableIndexing>true</EnableIndexing>
|
||||||
|
<IsPrimaryKey>true</IsPrimaryKey>
|
||||||
|
<EnableScoreParam>false</EnableScoreParam>
|
||||||
|
<Type>STRING</Type>
|
||||||
|
</ColumnDefinition>
|
||||||
|
<ColumnDefinition>
|
||||||
|
<Name>meta_time</Name>
|
||||||
|
<EnableIndexing>true</EnableIndexing>
|
||||||
|
<IsPrimaryKey>true</IsPrimaryKey>
|
||||||
|
<EnableScoreParam>false</EnableScoreParam>
|
||||||
|
<Type>LONG</Type>
|
||||||
|
</ColumnDefinition>
|
||||||
|
<ColumnDefinition>
|
||||||
|
<Name>smartLock</Name>
|
||||||
|
<EnableIndexing>false</EnableIndexing>
|
||||||
|
<IsPrimaryKey>false</IsPrimaryKey>
|
||||||
|
<EnableScoreParam>false</EnableScoreParam>
|
||||||
|
<Type>FLOAT</Type>
|
||||||
|
</ColumnDefinition>
|
||||||
|
</TableSchema>
|
||||||
|
</EventStoreConfiguration>
|
@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
"name": "org.wso2.iot.devices.smartLock",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"nickName": "smartLock",
|
||||||
|
"description": "smartLock data received from the Device",
|
||||||
|
"metaData": [
|
||||||
|
{
|
||||||
|
"name": "owner",
|
||||||
|
"type": "STRING"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "deviceType",
|
||||||
|
"type": "STRING"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "deviceId",
|
||||||
|
"type": "STRING"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "time",
|
||||||
|
"type": "LONG"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"payloadData": [
|
||||||
|
{
|
||||||
|
"name": "smartLock",
|
||||||
|
"type": "FLOAT"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in new issue