|
|
@ -2,10 +2,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
@Plan:description('Process magnetic field changes.')
|
|
|
|
@Plan:description('Process magnetic field changes.')
|
|
|
|
|
|
|
|
|
|
|
|
@Import('org.wso2.iot.android.magnetic:1.0.0')
|
|
|
|
@Import('iot.per.device.stream.android.magnetic:1.0.0')
|
|
|
|
define stream MagneticStream (meta_owner string, meta_deviceId string, meta_timestamp long, axis string, value float);
|
|
|
|
define stream MagneticStream (meta_owner string, meta_deviceId string, meta_timestamp long, axis string, value float);
|
|
|
|
|
|
|
|
|
|
|
|
@Export('org.wso2.iot.android.magnetic.stats:1.0.0')
|
|
|
|
@Export('iot.per.device.stream.android.magnetic.stats:1.0.0')
|
|
|
|
define stream MagneticStatsStream (meta_owner string, meta_deviceId string, meta_timestamp long, axis string, value float, year int, month int, day int, hour int, minute int);
|
|
|
|
define stream MagneticStatsStream (meta_owner string, meta_deviceId string, meta_timestamp long, axis string, value float, year int, month int, day int, hour int, minute int);
|
|
|
|
|
|
|
|
|
|
|
|
partition with (meta_deviceId of MagneticStream)
|
|
|
|
partition with (meta_deviceId of MagneticStream)
|
|
|
|