blob: ff30944ef9ad9bc20ef408b3b9b81aa0812d1685 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
~ Copyright 2005-2015 WSO2, Inc. (http://wso2.com)
~
~ Licensed 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.
-->
<Analytics>
<Name>member_lifecycle</Name>
<Script>
CREATE TEMPORARY TABLE memberstatus
USING CarbonAnalytics
OPTIONS (tableName "MEMBER_LIFECYCLE");
create temporary table member_status_new
using CarbonJDBC options (dataSource "WSO2_ANALYTICS_PROCESSED_DATA_STORE_DB", tableName "MEMBER_STATUS");
INSERT OVERWRITE TABLE member_status_new select timestamp, application_id, cluster_alias, member_id,
member_status from memberstatus;
create temporary table member_list
using CarbonJDBC options (dataSource "WSO2_ANALYTICS_EVENT_STORE_DB", tableName "MEMBER_LIST");
INSERT OVERWRITE TABLE member_list select cluster_id, member_id,
member_status from memberstatus;
</Script>
<CronExpression>0 0/15 * 1/1 * ? *</CronExpression>
</Analytics>