|
|
|
@ -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>
|
|
|
|
|