mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Renamed device details and SMS stream names
This commit is contained in:
parent
9b02e40e18
commit
26bc2d5716
@ -2,10 +2,10 @@
|
||||
|
||||
@Plan:description('Process received and sent SMS details')
|
||||
|
||||
@Import('org.wso2.iot.android.sms:1.0.0')
|
||||
@Import('iot.per.device.stream.android.sms:1.0.0')
|
||||
define stream SmsStream (meta_owner string, meta_deviceId string, meta_timestamp long, number string, type string, body string);
|
||||
|
||||
@Export('org.wso2.iot.android.sms.stats:1.0.0')
|
||||
@Export('iot.per.device.stream.android.sms.stats:1.0.0')
|
||||
define stream SmsStatsStream (meta_owner string, meta_deviceId string, meta_timestamp long, number string, type string, year int, month int, day int, hour int, minute int);
|
||||
|
||||
partition with (meta_deviceId of SmsStream)
|
||||
|
||||
@ -18,6 +18,6 @@
|
||||
-->
|
||||
|
||||
<artifact name= "android_device_details_event_sink" version="1.0.0" type="analytics/eventstore" serverRole="DataAnalyticsServer">
|
||||
<file>org_wso2_iot_android_device_details.xml</file>
|
||||
<file>iot_per_device_stream_android_device_details.xml</file>
|
||||
</artifact>
|
||||
|
||||
|
||||
@ -18,6 +18,6 @@
|
||||
-->
|
||||
|
||||
<artifact name= "android_device_details_streams" version="1.0.0" type="event/stream" serverRole="DataAnalyticsServer">
|
||||
<file>org.wso2.iot.android.device.details_1.0.0.json</file>
|
||||
<file>iot.per.device.stream.android.device.details_1.0.0.json</file>
|
||||
</artifact>
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<Analytics>
|
||||
<Editable>true</Editable>
|
||||
<Name>AndroidSmsScript</Name>
|
||||
<Script> CREATE TEMPORARY TABLE AndroidSmsData USING CarbonAnalytics OPTIONS(tableName "ORG_WSO2_IOT_ANDROID_SMS_STATS", incrementalParams "ORG_WSO2_IOT_ANDROID_SMS_STATS, DAY");
|
||||
<Script> CREATE TEMPORARY TABLE AndroidSmsData USING CarbonAnalytics OPTIONS(tableName "IOT_PER_DEVICE_STREAM_ANDROID_SMS_STATS", incrementalParams "IOT_PER_DEVICE_STREAM_ANDROID_SMS_STATS, DAY");
|
||||
|
||||
CREATE TEMPORARY TABLE Android_Sms_Stat_Per_Day USING CarbonAnalytics
|
||||
OPTIONS (tableName "Android_Sms_Stat_Per_Day",
|
||||
@ -15,7 +15,7 @@
|
||||
FROM AndroidSmsData
|
||||
GROUP BY year, month, day, meta_deviceId, meta_owner, type ORDER BY timestamp DESC;
|
||||
|
||||
INCREMENTAL_TABLE_COMMIT ORG_WSO2_IOT_ANDROID_SMS_STATS;
|
||||
INCREMENTAL_TABLE_COMMIT IOT_PER_DEVICE_STREAM_ANDROID_SMS_STATS;
|
||||
</Script>
|
||||
<CronExpression>0 0/5 * * * ?</CronExpression>
|
||||
</Analytics>
|
||||
|
||||
@ -18,6 +18,6 @@
|
||||
-->
|
||||
|
||||
<artifact name= "android_sms_stats_event_sink" version="1.0.0" type="analytics/eventstore" serverRole="DataAnalyticsServer">
|
||||
<file>org_wso2_iot_android_sms_stats.xml</file>
|
||||
<file>iot_per_device_stream_android_sms_stats.xml</file>
|
||||
</artifact>
|
||||
|
||||
|
||||
@ -18,6 +18,6 @@
|
||||
-->
|
||||
|
||||
<artifact name= "android_sms_stats_streams" version="1.0.0" type="event/stream" serverRole="DataAnalyticsServer">
|
||||
<file>org.wso2.iot.android.sms.stats_1.0.0.json</file>
|
||||
<file>iot.per.device.stream.android.sms.stats_1.0.0.json</file>
|
||||
</artifact>
|
||||
|
||||
|
||||
@ -18,6 +18,6 @@
|
||||
-->
|
||||
|
||||
<artifact name= "android_sms_streams" version="1.0.0" type="event/stream" serverRole="DataAnalyticsServer">
|
||||
<file>org.wso2.iot.android.sms_1.0.0.json</file>
|
||||
<file>iot.per.device.stream.android.sms_1.0.0.json</file>
|
||||
</artifact>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user