stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject [14/51] [abbrv] [partial] stratos git commit: Restructing das extension repository
Date Tue, 13 Oct 2015 10:05:05 GMT
http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Status_Filter/Member_Status_Filter/js/member-status-filter.js
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Status_Filter/Member_Status_Filter/js/member-status-filter.js b/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Status_Filter/Member_Status_Filter/js/member-status-filter.js
deleted file mode 100644
index da08330..0000000
--- a/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Status_Filter/Member_Status_Filter/js/member-status-filter.js
+++ /dev/null
@@ -1,140 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF 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.
- *
- */
-
-var applicationId;
-var clusterId;
-var time = '30 Min';
-$(document).ready(function () {
-    loadApplication();
-
-    setTimeout(function () {
-        if (applicationId != null) {
-            loadCluster(applicationId);
-            $('#' + window.frameElement.id).ready(function () {
-                $(this).contents().find('body').contents().find('#application-filter').val(applicationId);
-                publish(time);
-            });
-        }
-    }, 2000);
-
-    setTimeout(function () {
-        if (clusterId != null) {
-            $('#' + window.frameElement.id).ready(function () {
-                $(this).contents().find('body').contents().find('#cluster-filter').val(clusterId);
-                publish(time);
-            });
-        }
-    }, 3000);
-
-
-});
-
-gadgets.HubSettings.onConnect = function () {
-    gadgets.Hub.subscribe("request-params", function (topic, data) {
-        applicationId = data.applicationId;
-        clusterId = data.clusterId;
-        console.log("Application Id: " + applicationId);
-        console.log("Cluster Id: " + clusterId);
-    });
-};
-
-$('body').on('change', '#application-filter', function () {
-    var e = document.getElementById("application-filter");
-    applicationId = e.options[e.selectedIndex].value;
-    loadCluster(applicationId);
-    publish(time);
-});
-
-$('body').on('change', '#cluster-filter', function () {
-    var e = document.getElementById("cluster-filter");
-    clusterId = e.options[e.selectedIndex].value;
-    publish(time);
-});
-
-function loadApplication() {
-    console.log("Getting Application Ids");
-    $.ajax({
-        url: '/portal/apis/applications',
-        dataType: 'json',
-        success: function (result) {
-            console.log(JSON.stringify(result));
-            var applicationIds = [];
-            var records = JSON.parse(JSON.stringify(result));
-            records.forEach(function (record, i) {
-                applicationIds.push(record.ApplicationId);
-            });
-
-            var elem = document.getElementById('application-filter');
-            for (i = 0; i < applicationIds.length; i = i + 1) {
-                var option = document.createElement("option");
-                option.text = applicationIds[i];
-                option.value = applicationIds[i];
-                elem.appendChild(option);
-            }
-            document.getElementById('application').appendChild(elem);
-        }
-    });
-}
-
-function loadCluster(application) {
-    $.ajax({
-        url: '/portal/apis/clusters?applicationId=' + application,
-        dataType: 'json',
-        success: function (result) {
-            var elem = document.getElementById('cluster-filter');
-            var clusterAlias = [];
-            var records = JSON.parse(JSON.stringify(result));
-            records.forEach(function (record, i) {
-                clusterAlias.push(record.ClusterAlias);
-            });
-
-            if (elem != null) {
-                elem.parentNode.removeChild(elem);
-            }
-
-            var clusterList = document.createElement('select');
-            clusterList.id = "cluster-filter";
-
-            var optionList = "";
-
-            optionList += "<option value= 'All Clusters'>All Clusters</option>";
-            for (i = 0; i < clusterAlias.length; i = i + 1) {
-                optionList += "<option value='" + clusterAlias[i] + "'>" + clusterAlias[i] + "</option>";
-            }
-
-            clusterList.innerHTML = optionList;
-            document.getElementById('cluster').appendChild(clusterList);
-        }
-    });
-    if (clusterId == null) {
-        var e = document.getElementById("cluster-filter");
-        clusterId = e.options[e.selectedIndex].value;
-    }
-
-}
-
-function publish(timeInterval) {
-    time = timeInterval;
-    var data = {applicationId: applicationId, clusterId: clusterId, timeInterval: time};
-    gadgets.Hub.publish("member-status-filter", data);
-    console.log("Publishing filter values: " + JSON.stringify(data));
-}
-

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Status_Filter/artifact.xml
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Status_Filter/artifact.xml b/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Status_Filter/artifact.xml
deleted file mode 100644
index 22ac7bd..0000000
--- a/extensions/das/metering-service/capps/stratos-metering-service/Gadget_Member_Status_Filter/artifact.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF 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.
-
--->
-<artifact name="Gadget_Member_Status_Filter" version="1.0.0" type="dashboards/gadget" serverRole="DataAnalyticsServer">
-    <file>Member_Status_Filter</file>
-</artifact>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/metering-service/capps/stratos-metering-service/Layout/artifact.xml
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/capps/stratos-metering-service/Layout/artifact.xml b/extensions/das/metering-service/capps/stratos-metering-service/Layout/artifact.xml
deleted file mode 100644
index 7ba8375..0000000
--- a/extensions/das/metering-service/capps/stratos-metering-service/Layout/artifact.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF 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.
-
--->
-<artifact name="Layout" version="1.0.0" type="dashboards/layout" serverRole="DataAnalyticsServer">
-    <file>single-column</file>
-</artifact>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/metering-service/capps/stratos-metering-service/Layout/single-column/index.hbs
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/capps/stratos-metering-service/Layout/single-column/index.hbs b/extensions/das/metering-service/capps/stratos-metering-service/Layout/single-column/index.hbs
deleted file mode 100644
index ee20924..0000000
--- a/extensions/das/metering-service/capps/stratos-metering-service/Layout/single-column/index.hbs
+++ /dev/null
@@ -1,27 +0,0 @@
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF 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.
-
--->
-<div class="container">
-<div class="row">
-    <div id="a" class="col-md-12 ues-component-box"></div>
-    <div id="b" class="col-md-12 ues-component-box"></div>
-    <div id="c" class="col-md-12 ues-component-box"></div>
-</div>
-</div>

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/metering-service/capps/stratos-metering-service/Layout/single-column/index.jpg
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/capps/stratos-metering-service/Layout/single-column/index.jpg b/extensions/das/metering-service/capps/stratos-metering-service/Layout/single-column/index.jpg
deleted file mode 100644
index 62a72c7..0000000
Binary files a/extensions/das/metering-service/capps/stratos-metering-service/Layout/single-column/index.jpg and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/metering-service/capps/stratos-metering-service/Layout/single-column/index.png
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/capps/stratos-metering-service/Layout/single-column/index.png b/extensions/das/metering-service/capps/stratos-metering-service/Layout/single-column/index.png
deleted file mode 100644
index 51e0fa6..0000000
Binary files a/extensions/das/metering-service/capps/stratos-metering-service/Layout/single-column/index.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/metering-service/capps/stratos-metering-service/Layout/single-column/layout.json
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/capps/stratos-metering-service/Layout/single-column/layout.json b/extensions/das/metering-service/capps/stratos-metering-service/Layout/single-column/layout.json
deleted file mode 100644
index a1328f5..0000000
--- a/extensions/das/metering-service/capps/stratos-metering-service/Layout/single-column/layout.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
-    "id": "single-column",
-    "title": "Single Column",
-    "description": "This is a layout generated through single-column.io",
-    "thumbnail": "store://layout/single-column/index.png",
-    "url": "store://layout/single-column/index.hbs"
-}
-

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/metering-service/capps/stratos-metering-service/SparkScript_MemberInfo/artifact.xml
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/capps/stratos-metering-service/SparkScript_MemberInfo/artifact.xml b/extensions/das/metering-service/capps/stratos-metering-service/SparkScript_MemberInfo/artifact.xml
deleted file mode 100644
index 406f982..0000000
--- a/extensions/das/metering-service/capps/stratos-metering-service/SparkScript_MemberInfo/artifact.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF 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.
-
--->
-<artifact name="SparkScript_MemberInfo" version="1.0.0" type="analytics/spark" serverRole="DataAnalyticsServer">
-    <file>member_information.xml</file>
-</artifact>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/metering-service/capps/stratos-metering-service/SparkScript_MemberInfo/member_information.xml
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/capps/stratos-metering-service/SparkScript_MemberInfo/member_information.xml b/extensions/das/metering-service/capps/stratos-metering-service/SparkScript_MemberInfo/member_information.xml
deleted file mode 100644
index ef838b6..0000000
--- a/extensions/das/metering-service/capps/stratos-metering-service/SparkScript_MemberInfo/member_information.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF 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.
-
--->
-<Analytics>
-    <Name>member_information</Name>
-    <Script>
-        CREATE TEMPORARY TABLE memberinfo
-        USING CarbonAnalytics
-        OPTIONS (tableName "MEMBER_INFO");
-
-        create temporary table member_details
-        using CarbonJDBC options (dataSource "WSO2_ANALYTICS_PROCESSED_DATA_STORE_DB", tableName "MEMBER_INFORMATION");
-
-        INSERT OVERWRITE TABLE member_details select member_id, instance_type, image_id, host_name,
-        private_IP_addresses, public_IP_addresses, hypervisor, cpu, ram, os_name, os_version from memberinfo;
-    </Script>
-    <CronExpression>29 * * * * ?</CronExpression>
-</Analytics>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/metering-service/capps/stratos-metering-service/SparkScript_MemberLifecycle/artifact.xml
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/capps/stratos-metering-service/SparkScript_MemberLifecycle/artifact.xml b/extensions/das/metering-service/capps/stratos-metering-service/SparkScript_MemberLifecycle/artifact.xml
deleted file mode 100644
index 7ac2591..0000000
--- a/extensions/das/metering-service/capps/stratos-metering-service/SparkScript_MemberLifecycle/artifact.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF 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.
-
--->
-<artifact name="SparkScript_MemberLifecycle" version="1.0.0" type="analytics/spark" serverRole="DataAnalyticsServer">
-    <file>member_count.xml</file>
-</artifact>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/metering-service/capps/stratos-metering-service/SparkScript_MemberLifecycle/member_count.xml
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/capps/stratos-metering-service/SparkScript_MemberLifecycle/member_count.xml b/extensions/das/metering-service/capps/stratos-metering-service/SparkScript_MemberLifecycle/member_count.xml
deleted file mode 100644
index efebc24..0000000
--- a/extensions/das/metering-service/capps/stratos-metering-service/SparkScript_MemberLifecycle/member_count.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF 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.
-
--->
-<Analytics>
-    <Name>member_count</Name>
-    <Script>
-        CREATE TEMPORARY TABLE memberstatus
-        USING CarbonAnalytics
-        OPTIONS (tableName "MEMBER_LIFECYCLE");
-
-        create temporary table member_count
-        using CarbonJDBC options (dataSource "WSO2_ANALYTICS_PROCESSED_DATA_STORE_DB", tableName "MEMBER_COUNT");
-
-        ;WITH MemberCount as
-        (select application_id, cluster_alias,
-        count(case when member_status='Created' and timestamp &gt; current_time(null)-10000 and
-        timestamp&lt;= current_time(null) then 1 else NULL end) as created_instance_count,
-        count(case when member_status='Initialized' and timestamp &gt; current_time(null)-10000 and
-        timestamp&lt;= current_time(null) then 1 else NULL end) as initialized_instance_count,
-        count(case when member_status='Active' and timestamp &gt; current_time(null)-10000 and
-        timestamp&lt;= current_time(null) then 1 else NULL end) as active_instance_count,
-        count(case when member_status='Terminated' and timestamp &gt; current_time(null)-10000 and
-        timestamp&lt;= current_time(null) then 1 else NULL end) as terminated_instance_count
-        from memberstatus group by application_id, cluster_alias)
-        INSERT INTO table member_count
-        select current_time(null), application_id, cluster_alias,
-        created_instance_count,initialized_instance_count,active_instance_count,
-        terminated_instance_count from MemberCount;
-
-        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;
-    </Script>
-    <CronExpression>0/10 * * * * ?</CronExpression>
-</Analytics>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/metering-service/capps/stratos-metering-service/artifacts.xml
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/capps/stratos-metering-service/artifacts.xml b/extensions/das/metering-service/capps/stratos-metering-service/artifacts.xml
deleted file mode 100644
index 6a097e8..0000000
--- a/extensions/das/metering-service/capps/stratos-metering-service/artifacts.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF 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.
-
--->
-<artifacts>
-    <artifact name="stratos-metering-service" version="1.0.0" type="carbon/application">
-        <dependency artifact="EventStream_MemberInfo" version="1.0.0" include="true" serverRole="DataAnalyticsServer"/>
-        <dependency artifact="EventStream_MemberLifecycle" version="1.0.0" include="true"
-                    serverRole="DataAnalyticsServer"/>
-        <dependency artifact="EventStore_MemberInfo" version="1.0.0" include="true" serverRole="DataAnalyticsServer"/>
-        <dependency artifact="EventStore_MemberLifecycle" version="1.0.0" include="true"
-                    serverRole="DataAnalyticsServer"/>
-        <dependency artifact="EventReceiver_MemberInfo" version="1.0.0" include="true"
-                    serverRole="DataAnalyticsServer"/>
-        <dependency artifact="EventReceiver_MemberLifecycle" version="1.0.0" include="true"
-                    serverRole="DataAnalyticsServer"/>
-        <dependency artifact="SparkScript_MemberInfo" version="1.0.0" include="true" serverRole="DataAnalyticsServer"/>
-        <dependency artifact="SparkScript_MemberLifecycle" version="1.0.0" include="true"
-                    serverRole="DataAnalyticsServer"/>
-        <dependency artifact="Gadget_Member_Count" version="1.0.0" include="true" serverRole="DataAnalyticsServer"/>
-        <dependency artifact="Gadget_Member_Information" version="1.0.0" include="true"
-                    serverRole="DataAnalyticsServer"/>
-        <dependency artifact="Gadget_Member_Status" version="1.0.0" include="true" serverRole="DataAnalyticsServer"/>
-        <dependency artifact="Gadget_Member_Status_Filter" version="1.0.0" include="true"
-                    serverRole="DataAnalyticsServer"/>
-        <dependency artifact="Gadget_Member_Details_Filter" version="1.0.0" include="true"
-                    serverRole="DataAnalyticsServer"/>
-        <dependency artifact="Layout" version="1.0.0" include="true" serverRole="DataAnalyticsServer"/>
-        <dependency artifact="Dashboard" version="1.0.0" include="true" serverRole="DataAnalyticsServer"/>
-    </artifact>
-</artifacts>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/metering-service/pom.xml
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/pom.xml b/extensions/das/metering-service/pom.xml
deleted file mode 100644
index d429072..0000000
--- a/extensions/das/metering-service/pom.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF 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.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <parent>
-        <artifactId>stratos-das-extension</artifactId>
-        <groupId>org.apache.stratos</groupId>
-        <version>4.1.4-SNAPSHOT</version>
-    </parent>
-    <modelVersion>4.0.0</modelVersion>
-
-    <artifactId>apache-stratos-metering-service</artifactId>
-    <packaging>pom</packaging>
-    <name>Apache Stratos - Metering Service</name>
-    <description>Apache Stratos Metering Service</description>
-    <modules>
-        <module>spark-udfs</module>
-        <module>capps</module>
-    </modules>
-</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/metering-service/spark-udfs/README.md
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/spark-udfs/README.md b/extensions/das/metering-service/spark-udfs/README.md
deleted file mode 100644
index 12eac18..0000000
--- a/extensions/das/metering-service/spark-udfs/README.md
+++ /dev/null
@@ -1,8 +0,0 @@
-# Apache Stratos Metering Dashboard Spark UDFs (User Defined Functions)
-
-This directory contains Spark UDFs (user Defined Function) required for executing the spark queries with UDFs.
-Follow the below steps to use UDF in spark environment:
-1. Add the jar files of each spark-udfs to '<DAS-HOME>/repository/components/lib'.
-    Example: spark-time-udf-4.1.4-SNAPSHOT.jar
-2. Add each UDF class path to 'spark-udf-config.xml' file in '<DAS-HOME>/repository/conf/spark/' folder.
-    Example: <class-name>org.apache.stratos.das.extension.spark.udf.TimeUDF</class-name>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/metering-service/spark-udfs/pom.xml
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/spark-udfs/pom.xml b/extensions/das/metering-service/spark-udfs/pom.xml
deleted file mode 100644
index 68ee649..0000000
--- a/extensions/das/metering-service/spark-udfs/pom.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF 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.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <parent>
-        <artifactId>apache-stratos-metering-service</artifactId>
-        <groupId>org.apache.stratos</groupId>
-        <version>4.1.4-SNAPSHOT</version>
-    </parent>
-    <modelVersion>4.0.0</modelVersion>
-
-    <artifactId>spark-udfs</artifactId>
-    <packaging>pom</packaging>
-    <name>apache-stratos-spark-udfs</name>
-    <description>Apache Stratos - Metering Service Spark UDFs</description>
-    <modules>
-        <module>spark-time-udf</module>
-    </modules>
-
-</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/metering-service/spark-udfs/spark-time-udf/pom.xml
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/spark-udfs/spark-time-udf/pom.xml b/extensions/das/metering-service/spark-udfs/spark-time-udf/pom.xml
deleted file mode 100644
index 8cc1029..0000000
--- a/extensions/das/metering-service/spark-udfs/spark-time-udf/pom.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF 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.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <parent>
-        <artifactId>spark-udfs</artifactId>
-        <groupId>org.apache.stratos</groupId>
-        <version>4.1.4-SNAPSHOT</version>
-    </parent>
-    <modelVersion>4.0.0</modelVersion>
-
-    <groupId>org.apache.stratos</groupId>
-    <artifactId>spark-time-udf</artifactId>
-    <name>apache-stratos-spark-time-udf</name>
-    <description>Apache Stratos - Metering Service Spark Time UDF</description>
-
-</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/metering-service/spark-udfs/spark-time-udf/src/main/java/org/apache/stratos/das/extension/spark/udf/TimeUDF.java
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/spark-udfs/spark-time-udf/src/main/java/org/apache/stratos/das/extension/spark/udf/TimeUDF.java b/extensions/das/metering-service/spark-udfs/spark-time-udf/src/main/java/org/apache/stratos/das/extension/spark/udf/TimeUDF.java
deleted file mode 100644
index 0b8f408..0000000
--- a/extensions/das/metering-service/spark-udfs/spark-time-udf/src/main/java/org/apache/stratos/das/extension/spark/udf/TimeUDF.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF 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.
- */
-package org.apache.stratos.das.extension.spark.udf;
-
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-/**
- * Implementing UDF for implementing spark sql query related to time.
- */
-public class TimeUDF {
-    /**
-     * Convert time(ms) to DateFormat
-     *
-     * @param timeStamp time in ms
-     * @return date as String
-     */
-    public String time(Long timeStamp) {
-        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
-        Date date = new Date(timeStamp.longValue());
-        return sdf.format(date);
-    }
-
-    /**
-     * Get the current time in ms
-     *
-     * @param param
-     * @return
-     */
-    public long current_time(Integer param) {
-        return System.currentTimeMillis();
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/metering-service/ues-patch/README.md
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/ues-patch/README.md b/extensions/das/metering-service/ues-patch/README.md
deleted file mode 100644
index 69e065c..0000000
--- a/extensions/das/metering-service/ues-patch/README.md
+++ /dev/null
@@ -1,8 +0,0 @@
-This folder (ues-patch) contains fix for DAS-3.0.0 analytics dashboard to  support reading request parameters from 
-dashboard url and publish the values to gadgets.
-
-You can find the related UES product jira here: https://wso2.org/jira/browse/UES-582
-Please follow below steps to apply the patch locally:
-
-1. Copy 'ues-dashboard.js' and 'ues-pubsub.js' files to <DAS-HOME>/repository/deployment/server/jaggeryapps/portal/js/ folder.
-2. Copy 'dashboard.jag' file to <DAS-HOME>/repository/deployment/server/jaggeryapps/portal/theme/templates/ folder.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/metering-service/ues-patch/dashboard.jag
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/ues-patch/dashboard.jag b/extensions/das/metering-service/ues-patch/dashboard.jag
deleted file mode 100644
index cccda65..0000000
--- a/extensions/das/metering-service/ues-patch/dashboard.jag
+++ /dev/null
@@ -1,85 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
-    <meta charset="utf-8">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width, initial-scale=1">
-    <link rel="icon" href="<%=urlPrefix%><%=utils.resolveUrl('images/favicon.png')%>" type="image/x-icon" />
-    <link rel="stylesheet" href="<%=urlPrefix%>css/bootstrap.min.css">
-    <link rel="stylesheet" href="<%=urlPrefix%>css/fontwso2.css">
-    <link rel="stylesheet" href="<%=urlPrefix%>css/fontwso2-extend.css">
-    <link rel="stylesheet" href="<%=urlPrefix%>css/OpenSans.css">
-    <link rel="stylesheet" href="<%=urlPrefix%>css/common.css">
-    <link rel="stylesheet" href="<%=urlPrefix%>css/dashboard.css">
-    <% include('/controllers/includes/theme-dashboard-styles.jag'); %>
-    <title>Dashboards</title>
-</head>
-<body>
-<div id="navigation" role="navigation" class="navbar navbar-inverse navbar-fixed-top">
-    <div class="container">
-        <div class="navbar-header">
-            <button data-target=".horizontal-bar" data-toggle="collapse" class="navbar-toggle" type="button">
-                <span class="sr-only">Toggle navigation</span>
-                <span class="icon-bar"></span>
-                <span class="icon-bar"></span>
-                <span class="icon-bar"></span>
-            </button>
-            <a href="<%=dbRoot%>" class="navbar-brand"><%=dashboard.title%></a>
-        </div>
-        <div class="collapse navbar-collapse horizontal-bar">
-            <ul class="nav navbar-nav">
-                <li<% if(dashboard.landing === pageId) { %> class="active"<% } %>>
-                    <a href="<%=dbRoot%>">Home</a>
-                </li>
-                <%
-var pages = dashboard.pages;
-pages.forEach(function (p) {
-    if (dashboard.landing !== p.id) {
-        %>
-                <li<%if (p.id === pageId) { %> class="active"<% } %>>
-                            <a href="<%=dbRoot%><%=p.id%>"><%=p.title%></a>
-                        </li>
-                    <% } %>
-                <% }); %>
-            </ul>
-            <ul class="nav navbar-nav navbar-right">
-            <% if (user) { %>
-                <li>
-                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
-                               <%=user.username%> <span class="caret"></span>
-                    </a>
-                    <ul class="dropdown-menu" role="menu">
-                        <li><a href="<%=urlPrefix%>logout?destination=<%=dest%>">Logout</a></li>
-                    </ul>
-                </li>
-            <% } else { %>
-                <li><a href="<%=urlPrefix%>login?destination=<%=dest%>">Login</a></li>
-                <% } %>
-            </ul>
-        </div>
-           <!--/.nav-collapse -->
-     </div>
-</div>
-<div id="wrapper"></div>
-<!--<iframe id="sandbox" src="preview.jag"></iframe>-->
-<script src="<%=urlPrefix%>js/jquery-1.10.2.js"></script>
-<script src="<%=urlPrefix%>js/bootstrap.min.js"></script>
-<!-- TODO fix shindig url -->
-<script src="/shindig/gadgets/js/container:open-views:opensearch:rpc:xmlutil:pubsub-2.js?c=1&debug=1&container=default"></script>
-<script src="<%=urlPrefix%>js/ues.js"></script>
-<script src="<%=urlPrefix%>js/ues-prefs.js"></script>
-<% include('/controllers/includes/common-scripts.jag'); %>
-<% include('/controllers/includes/dashboard-scripts.jag'); %>
-<script src="<%=urlPrefix%>js/ues-gadgets.js"></script>
-<script src="<%=urlPrefix%>js/ues-dashboards.js"></script>
-<script src="<%=urlPrefix%>js/ues-pubsub.js"></script>
-<script src="<%=urlPrefix%>extensions/components/gadget/index.js"></script>
-<script src="<%=urlPrefix%>extensions/components/widget/index.js"></script>
-<script src="<%=urlPrefix%>extensions/uris/local/index.js"></script>
-<script src="<%=urlPrefix%>extensions/uris/store/index.js"></script>
-<% include('/controllers/includes/theme-dashboard-scripts.jag'); %>
-<script>
-    ues.dashboards.render($('#wrapper'), ues.global.dashboard, ues.global.page);
-</script>
-</body>
-</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/metering-service/ues-patch/ues-dashboards.js
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/ues-patch/ues-dashboards.js b/extensions/das/metering-service/ues-patch/ues-dashboards.js
deleted file mode 100644
index 9d0742e..0000000
--- a/extensions/das/metering-service/ues-patch/ues-dashboards.js
+++ /dev/null
@@ -1,188 +0,0 @@
-(function () {
-
-    var findPlugin = function (type) {
-        var plugin = ues.plugins.components[type];
-        if (!plugin) {
-            throw 'ues dashboard plugin for ' + type + ' cannot be found';
-        }
-        return plugin;
-    };
-
-    var createComponent = function (container, component, done) {
-        var type = component.content.type;
-        var plugin = findPlugin(type);
-        var sandbox = $('<div id="' + component.id + '" class="ues-component"></div>');
-        sandbox.appendTo(container);
-        plugin.create(sandbox, component, ues.hub, done);
-    };
-
-    var updateComponent = function (component, done) {
-        var plugin = findPlugin(component.content.type);
-        var container = $('#' + component.id);
-        plugin.update(container, component, ues.hub, done);
-    };
-
-    var destroyComponent = function (component, done) {
-        var plugin = findPlugin(component.content.type);
-        var container = $('#' + component.id);
-        plugin.destroy(container, component, ues.hub, done);
-    };
-
-    var componentId = function (clientId) {
-        return clientId.split('-').pop();
-    };
-
-    var wirings;
-
-    var publishForClient = ues.hub.publishForClient;
-    ues.hub.publishForClient = function (container, topic, data) {
-        console.log('publishing data container:%s, topic:%s, data:%j', container.getClientID(), topic, data);
-        var clientId = componentId(container.getClientID());
-        var channels = wirings[clientId + '.' + topic];
-        if (!channels) {
-            return;
-        }
-        channels.forEach(function (channel) {
-            publishForClient.apply(ues.hub, [container, channel, data]);
-        });
-    };
-
-
-    var publish = ues.hub.publish;
-    ues.hub.publish = function (topic, data){
-        $(".container").find('.ues-component').each(function () {
-            var id = $(this).attr('id');
-            var channel = id + "." + topic;
-            publish.apply(ues.hub, [channel, data]);
-        });
-    }
-
-    var wires = function (page) {
-        var content = page.content;
-        var area;
-        var blocks;
-        var wirez = {};
-
-        var wire = function (wirez, id, listeners) {
-            var event;
-            var listener;
-            for (event in listeners) {
-                if (listeners.hasOwnProperty(event)) {
-                    listener = listeners[event];
-                    if (!listener.on) {
-                        continue;
-                    }
-                    listener.on.forEach(function (notifier) {
-                        var channel = notifier.from + '.' + notifier.event;
-                        var wire = wirez[channel] || (wirez[channel] = []);
-                        wire.push(id + '.' + event);
-                    });
-                }
-            }
-        };
-
-        for (area in content) {
-            if (content.hasOwnProperty(area)) {
-                blocks = content[area];
-                blocks.forEach(function (block) {
-                    var listeners = block.content.listen;
-                    if (!listeners) {
-                        return;
-                    }
-                    wire(wirez, block.id, listeners);
-                });
-            }
-        }
-        console.log(wirez);
-        return wirez;
-    };
-
-    var setDocumentTitle = function (dashboard, page) {
-        document.title = dashboard.title + ' | ' + page.title;
-    };
-
-    var renderPage = function (element, dashboard, page, done) {
-        setDocumentTitle(dashboard, page);
-        wirings = wires(page);
-        var container;
-        var area;
-        var layout = $(page.layout.content);
-        var content = page.content;
-        element.html(layout);
-        for (area in content) {
-            if (content.hasOwnProperty(area)) {
-                container = $('#' + area, layout);
-                content[area].forEach(function (options) {
-                    createComponent(container, options, function (err) {
-                        if (err) {
-                            console.error(err);
-                        }
-                    });
-                });
-            }
-        }
-        if (!done) {
-            return;
-        }
-        done();
-    };
-
-    var findPage = function (dashboard, id) {
-        var i;
-        var page;
-        var pages = dashboard.pages;
-        var length = pages.length;
-        for (i = 0; i < length; i++) {
-            page = pages[i];
-            if (page.id === id) {
-                return page;
-            }
-        }
-    };
-
-    var renderDashboard = function (element, dashboard, name, done) {
-        name = name || dashboard.landing;
-        var page = findPage(dashboard, name);
-        if (!page) {
-            throw 'requested page : ' + name + ' cannot be found';
-        }
-        renderPage(element, dashboard, page, done);
-    };
-
-    var rewireDashboard = function (page) {
-        wirings = wires(page);
-    };
-
-    var resolveURI = function (uri) {
-        var index = uri.indexOf('://');
-        var scheme = uri.substring(0, index);
-        var uriPlugin = ues.plugins.uris[scheme];
-        if (!uriPlugin) {
-            return uri;
-        }
-        var path = uri.substring(index + 3);
-        return uriPlugin(path);
-    };
-
-    ues.components = {
-        create: createComponent,
-        update: updateComponent,
-        destroy: destroyComponent
-    };
-
-    ues.dashboards = {
-        render: renderDashboard,
-        rewire: rewireDashboard,
-        findPage: findPage,
-        resolveURI: resolveURI
-    };
-
-    ues.assets = {};
-
-    ues.plugins = {
-        assets: {},
-        components: {},
-        uris: {}
-    };
-
-}());
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/metering-service/ues-patch/ues-pubsub.js
----------------------------------------------------------------------
diff --git a/extensions/das/metering-service/ues-patch/ues-pubsub.js b/extensions/das/metering-service/ues-patch/ues-pubsub.js
deleted file mode 100644
index b7b2537..0000000
--- a/extensions/das/metering-service/ues-patch/ues-pubsub.js
+++ /dev/null
@@ -1,27 +0,0 @@
-var applicationId;
-var clusterId;
-var vars;
-$(document).ready(function () {
-    var query = window.location.search.substring(1);
-    vars = query.split("&");
-
-    applicationId = getRequestParam('applicationId');
-    clusterId = getRequestParam('clusterId');
-
-    setTimeout(function () {
-        var data = {applicationId: applicationId, clusterId: clusterId};
-        console.log("Publishing request params: " + JSON.stringify(data));
-        ues.hub.publish("request-params",data);
-    }, 2000);
-
-});
-
-function getRequestParam(variable) {
-    for (var i = 0; i < vars.length; i++) {
-        var pair = vars[i].split("=");
-        if (pair[0] == variable) {
-            return pair[1];
-        }
-    }
-    return null;
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/modules/artifacts/metering-dashboard/README.md
----------------------------------------------------------------------
diff --git a/extensions/das/modules/artifacts/metering-dashboard/README.md b/extensions/das/modules/artifacts/metering-dashboard/README.md
new file mode 100644
index 0000000..2207b8f
--- /dev/null
+++ b/extensions/das/modules/artifacts/metering-dashboard/README.md
@@ -0,0 +1,12 @@
+# Apache Stratos Metering Dashboard
+
+This directory contains following artifacts:
+(1) capps - Includes stratos-metering-service car file which bundles all Event Stream, Event receiver, Even Store, Gadgets and Dashboard artifacts.
+(2) jaggery-files
+(3) ues-patch
+
+Follow the below steps to generate the metering dashboard:
+1. Add the jaggery files which can be found inside directory 'jaggery-files' to DAS server path '/jaggeryapps/portal/controllers/apis'
+2. Create MySQL database and tables using queries in 'mysqlscript.sql' manually.
+3. Apply ues-patch to DAS server as mentioned in its README file.
+3. Add stratos-metering-service car file to DAS server to generate the metering dashboard.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/modules/artifacts/metering-dashboard/capps/build.xml
----------------------------------------------------------------------
diff --git a/extensions/das/modules/artifacts/metering-dashboard/capps/build.xml b/extensions/das/modules/artifacts/metering-dashboard/capps/build.xml
new file mode 100644
index 0000000..185569c
--- /dev/null
+++ b/extensions/das/modules/artifacts/metering-dashboard/capps/build.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF 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.
+
+-->
+<project name="stratos-metering-service" default="zip" basedir="">
+
+    <property name="project-name" value="${ant.project.name}"/>
+    <property name="target-dir" value="target"/>
+
+    <property name="stratos_metering_service_dir" value="stratos-metering-service"/>
+
+    <target name="clean">
+        <delete dir="${target-dir}"/>
+    </target>
+
+    <target name="zip" depends="clean">
+        <zip destfile="${target-dir}/${stratos_metering_service_dir}.car">
+            <zipfileset dir="${stratos_metering_service_dir}"/>
+        </zip>
+    </target>
+
+</project>
+

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/modules/artifacts/metering-dashboard/capps/pom.xml
----------------------------------------------------------------------
diff --git a/extensions/das/modules/artifacts/metering-dashboard/capps/pom.xml b/extensions/das/modules/artifacts/metering-dashboard/capps/pom.xml
new file mode 100644
index 0000000..a6a53ff
--- /dev/null
+++ b/extensions/das/modules/artifacts/metering-dashboard/capps/pom.xml
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF 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.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>stratos-das-extension</artifactId>
+        <groupId>org.apache.stratos</groupId>
+        <version>4.1.4-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>metring-service-capps</artifactId>
+    <name>Apache Stratos - Metering Service Composite Applications</name>
+    <description>Apache Stratos Metering Service Composite Applications</description>
+    <packaging>pom</packaging>
+
+    <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-clean-plugin</artifactId>
+                <version>2.4.1</version>
+                <executions>
+                    <execution>
+                        <id>auto-clean</id>
+                        <phase>initialize</phase>
+                        <goals>
+                            <goal>clean</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <version>1.7</version>
+                <executions>
+                    <execution>
+                        <phase>process-resources</phase>
+                        <configuration>
+                            <target>
+                                <ant antfile="build.xml" target="zip"/>
+                            </target>
+                        </configuration>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/Dashboard_1.0.0/artifact.xml
----------------------------------------------------------------------
diff --git a/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/Dashboard_1.0.0/artifact.xml b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/Dashboard_1.0.0/artifact.xml
new file mode 100644
index 0000000..bd6d164
--- /dev/null
+++ b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/Dashboard_1.0.0/artifact.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF 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.
+
+-->
+<artifact name="Dashboard" version="1.0.0" type="dashboards/dashboard" serverRole="DataAnalyticsServer">
+    <file>stratos-metering-dashboard.json</file>
+</artifact>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/Dashboard_1.0.0/stratos-metering-dashboard.json
----------------------------------------------------------------------
diff --git a/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/Dashboard_1.0.0/stratos-metering-dashboard.json b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/Dashboard_1.0.0/stratos-metering-dashboard.json
new file mode 100644
index 0000000..96413db
--- /dev/null
+++ b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/Dashboard_1.0.0/stratos-metering-dashboard.json
@@ -0,0 +1,267 @@
+{
+  "id": "stratos-metering-dashboard",
+  "title": "Stratos Metering Dashboard",
+  "description": "This dashboard is to show metering data.",
+  "permissions": {
+    "viewers": [],
+    "editors": [
+      "Internal/everyone"
+    ]
+  },
+  "pages": [
+    {
+      "id": "member-status",
+      "title": "Member Status",
+      "layout": {
+        "id": "single-column",
+        "title": "Single Column",
+        "description": "This is a layout generated through single-column.io",
+        "thumbnail": "store://layout/single-column/index.png",
+        "url": "store://layout/single-column/index.hbs",
+        "content": "<!--\n\n Licensed to the Apache Software Foundation (ASF) under one\n or more contributor license agreements.  See the NOTICE file\n distributed with this work for additional information\n regarding copyright ownership.  The ASF licenses this file\n to you under the Apache License, Version 2.0 (the\n \"License\"); you may not use this file except in compliance\n with the License.  You may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing,\n software distributed under the License is distributed on an\n \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n KIND, either express or implied.  See the License for the\n specific language governing permissions and limitations\n under the License.\n\n-->\n<div class=\"container\">\n<div class=\"row\">\n    <div id=\"a\" class=\"col-md-12 ues-component-box\"></div>\n    <div id=\"b\" class=\"col-md-12 ues-component-box\"></div
 >\n    <div id=\"c\" class=\"col-md-12 ues-component-box\"></div>\n</div>\n</div>\n"
+      },
+      "content": {
+        "a": [
+          {
+            "id": "ehng97cyk3kxogvi",
+            "content": {
+              "id": "Member_Status_Filter",
+              "title": "Member Status Filter",
+              "type": "gadget",
+              "thumbnail": "store://gadget/Member_Status_Filter/index.png",
+              "data": {
+                "url": "store://gadget/Member_Status_Filter/index.xml"
+              },
+              "styles": {
+                "title": "",
+                "height": "100",
+                "borders": false,
+                "titlePosition": "left"
+              },
+              "notify": {
+                "member-status-filter": {
+                  "type": "address",
+                  "description": "This notifies time interval"
+                },
+                "cancel": {
+                  "type": "boolean",
+                  "description": "This notifies cancellation of state selection"
+                }
+              },
+              "options": {},
+              "settings": {}
+            }
+          }
+        ],
+        "b": [
+          {
+            "id": "q1pf6m8s5bq08uxr",
+            "content": {
+              "id": "Member_Count",
+              "title": "Member Count",
+              "type": "gadget",
+              "thumbnail": "local://store/carbon.super/gadget/usa-business-revenue/index.png",
+              "data": {
+                "url": "local://store/carbon.super/gadget/Member_Count/index.xml"
+              },
+              "listen": {
+                "member-status-filter": {
+                  "type": "address",
+                  "description": "Used to filter based on state",
+                  "on": [
+                    {
+                      "from": "ehng97cyk3kxogvi",
+                      "event": "member-status-filter"
+                    }
+                  ]
+                },
+                "auto-update": {
+                  "type": "boolean",
+                  "description": "Used to filter based on state",
+                  "on": []
+                }
+              },
+              "styles": {
+                "title": "",
+                "height": "400",
+                "borders": true,
+                "titlePosition": "left"
+              },
+              "options": {
+                "dataSource": {
+                  "type": "STRING",
+                  "title": "Data Source",
+                  "value": "/portal/gadgets/bar-chart/datasource/dataFile4.jag",
+                  "options": [],
+                  "required": false
+                },
+                "updateGraph": {
+                  "type": "STRING",
+                  "title": "Update Interval (s)",
+                  "value": "No",
+                  "options": [],
+                  "required": false
+                }
+              },
+              "settings": {}
+            }
+          }
+        ],
+        "c": [
+          {
+            "id": "qf9lnn9oiv1pds4i",
+            "content": {
+              "id": "Member_Update",
+              "title": "Member Status",
+              "type": "gadget",
+              "thumbnail": "local://store/carbon.super/gadget/usa-business-revenue/index.png",
+              "data": {
+                "url": "local://store/carbon.super/gadget/Member_Status/index.xml"
+              },
+              "listen": {
+                "member-status-filter": {
+                  "type": "address",
+                  "description": "Used to filter based on state",
+                  "on": [
+                    {
+                      "from": "ehng97cyk3kxogvi",
+                      "event": "member-status-filter"
+                    }
+                  ]
+                },
+                "auto-update": {
+                  "type": "boolean",
+                  "description": "Used to filter based on state",
+                  "on": []
+                }
+              },
+              "styles": {
+                "title": "",
+                "height": "800",
+                "borders": true,
+                "titlePosition": "left"
+              },
+              "options": {
+                "dataSource": {
+                  "type": "STRING",
+                  "title": "Data Source",
+                  "value": "/portal/gadgets/bar-chart/datasource/dataFile4.jag",
+                  "options": [],
+                  "required": false
+                },
+                "updateGraph": {
+                  "type": "STRING",
+                  "title": "Update Interval (s)",
+                  "value": "No",
+                  "options": [],
+                  "required": false
+                }
+              },
+              "settings": {}
+            }
+          }
+        ]
+      }
+    },
+    {
+      "id": "member-details",
+      "title": "Member Details",
+      "layout": {
+        "id": "single-column",
+        "title": "Single Column",
+        "description": "This is a layout generated through single-column.io",
+        "thumbnail": "store://layout/single-column/index.png",
+        "url": "store://layout/single-column/index.hbs",
+        "content": "<!--\n\n Licensed to the Apache Software Foundation (ASF) under one\n or more contributor license agreements.  See the NOTICE file\n distributed with this work for additional information\n regarding copyright ownership.  The ASF licenses this file\n to you under the Apache License, Version 2.0 (the\n \"License\"); you may not use this file except in compliance\n with the License.  You may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing,\n software distributed under the License is distributed on an\n \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n KIND, either express or implied.  See the License for the\n specific language governing permissions and limitations\n under the License.\n\n-->\n<div class=\"container\">\n<div class=\"row\">\n    <div id=\"a\" class=\"col-md-12 ues-component-box\"></div>\n    <div id=\"b\" class=\"col-md-12 ues-component-box\"></div
 >\n    <div id=\"c\" class=\"col-md-12 ues-component-box\"></div>\n</div>\n</div>\n"
+      },
+      "content": {
+        "a": [
+          {
+            "id": "8zgl65uoackgldi",
+            "content": {
+              "id": "Member_Details_Filter",
+              "title": "Member Details Filter",
+              "type": "gadget",
+              "thumbnail": "store://gadget/Member_Details_Filter/index.png",
+              "data": {
+                "url": "store://gadget/Member_Details_Filter/index.xml"
+              },
+              "styles": {
+                "title": "",
+                "height": "100",
+                "borders": false,
+                "titlePosition": "left"
+              },
+              "notify": {
+                "member-details-filter": {
+                  "type": "address",
+                  "description": "This notifies applicationId and clusterId"
+                }
+              },
+              "cancel": {
+                "type": "boolean",
+                "description": "This notifies cancellation of state selection"
+              },
+              "options": {},
+              "settings": {}
+            }
+          }
+        ],
+        "b": [
+          {
+            "id": "hoqfz4b6z91nstt9",
+            "content": {
+              "id": "Member_Details",
+              "title": "Member Details",
+              "type": "gadget",
+              "thumbnail": "local://store/carbon.super/gadget/usa-business-revenue/index.png",
+              "data": {
+                "url": "local://store/carbon.super/gadget/Member_Information/index.xml"
+              },
+              "listen": {
+                "member-details-filter": {
+                  "type": "address",
+                  "description": "Used to filter based on state",
+                  "on": [
+                    {
+                      "from": "8zgl65uoackgldi",
+                      "event": "member-details-filter"
+                    }
+                  ]
+                },
+                "auto-update": {
+                  "type": "boolean",
+                  "description": "Used to filter based on state"
+                }
+              },
+              "styles": {
+                "title": "",
+                "height": "800",
+                "borders": true,
+                "titlePosition": "left"
+              },
+              "options": {
+                "dataSource": {
+                  "type": "STRING",
+                  "title": "Data Source",
+                  "value": "/portal/gadgets/bar-chart/datasource/dataFile4.jag",
+                  "options": [],
+                  "required": false
+                },
+                "updateGraph": {
+                  "type": "STRING",
+                  "title": "Update Interval (s)",
+                  "value": "No",
+                  "options": [],
+                  "required": false
+                }
+              },
+              "settings": {}
+            }
+          }
+        ]
+      }
+    }
+  ],
+  "landing": "member-status"
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventreceiverMemberInfo_1.0.0/artifact.xml
----------------------------------------------------------------------
diff --git a/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventreceiverMemberInfo_1.0.0/artifact.xml b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventreceiverMemberInfo_1.0.0/artifact.xml
new file mode 100644
index 0000000..c64b395
--- /dev/null
+++ b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventreceiverMemberInfo_1.0.0/artifact.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF 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.
+
+-->
+<artifact name="EventreceiverMemberInfo" version="1.0.0" type="event/receiver" serverRole="DataAnalyticsServer">
+    <file>member_info_receiver.xml</file>
+</artifact>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventreceiverMemberInfo_1.0.0/member_info_receiver.xml
----------------------------------------------------------------------
diff --git a/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventreceiverMemberInfo_1.0.0/member_info_receiver.xml b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventreceiverMemberInfo_1.0.0/member_info_receiver.xml
new file mode 100644
index 0000000..509788e
--- /dev/null
+++ b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventreceiverMemberInfo_1.0.0/member_info_receiver.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF 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.
+
+-->
+<eventReceiver name="MemberInfoEventReceiver" statistics="disable"
+               trace="disable" xmlns="http://wso2.org/carbon/eventreceiver">
+    <from eventAdapterType="wso2event">
+        <property name="events.duplicated.in.cluster">false</property>
+    </from>
+    <mapping customMapping="disable" type="wso2event"/>
+    <to streamName="member_info" version="1.0.0"/>
+</eventReceiver>

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventreceiverMemberLifecycle_1.0.0/artifact.xml
----------------------------------------------------------------------
diff --git a/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventreceiverMemberLifecycle_1.0.0/artifact.xml b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventreceiverMemberLifecycle_1.0.0/artifact.xml
new file mode 100644
index 0000000..a6a68ff
--- /dev/null
+++ b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventreceiverMemberLifecycle_1.0.0/artifact.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF 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.
+
+-->
+<artifact name="EventreceiverMemberLifecycle" version="1.0.0" type="event/receiver" serverRole="DataAnalyticsServer">
+    <file>member_lifecycle_receiver.xml</file>
+</artifact>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventreceiverMemberLifecycle_1.0.0/member_lifecycle_receiver.xml
----------------------------------------------------------------------
diff --git a/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventreceiverMemberLifecycle_1.0.0/member_lifecycle_receiver.xml b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventreceiverMemberLifecycle_1.0.0/member_lifecycle_receiver.xml
new file mode 100644
index 0000000..146a5bc
--- /dev/null
+++ b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventreceiverMemberLifecycle_1.0.0/member_lifecycle_receiver.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF 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.
+
+-->
+<eventReceiver name="MemberLifecycleEventReceiver" statistics="disable"
+               trace="disable" xmlns="http://wso2.org/carbon/eventreceiver">
+    <from eventAdapterType="wso2event">
+        <property name="events.duplicated.in.cluster">false</property>
+    </from>
+    <mapping customMapping="disable" type="wso2event"/>
+    <to streamName="member_lifecycle" version="1.0.0"/>
+</eventReceiver>

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventstoreMemberInfo_1.0.0/artifact.xml
----------------------------------------------------------------------
diff --git a/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventstoreMemberInfo_1.0.0/artifact.xml b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventstoreMemberInfo_1.0.0/artifact.xml
new file mode 100644
index 0000000..e018b0c
--- /dev/null
+++ b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventstoreMemberInfo_1.0.0/artifact.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF 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.
+
+-->
+<artifact name="EventstoreMemberInfo" version="1.0.0" type="analytics/eventstore" serverRole="DataAnalyticsServer">
+    <file>member_info.xml</file>
+</artifact>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventstoreMemberInfo_1.0.0/member_info.xml
----------------------------------------------------------------------
diff --git a/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventstoreMemberInfo_1.0.0/member_info.xml b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventstoreMemberInfo_1.0.0/member_info.xml
new file mode 100644
index 0000000..8b33298
--- /dev/null
+++ b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventstoreMemberInfo_1.0.0/member_info.xml
@@ -0,0 +1,148 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF 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>
+    <TableSchema>
+        <ColumnDefinition>
+            <Name>member_id</Name>
+            <EnableIndexing>true</EnableIndexing>
+            <IsPrimaryKey>true</IsPrimaryKey>
+            <EnableScoreParam>false</EnableScoreParam>
+            <Type>STRING</Type>
+        </ColumnDefinition>
+        <ColumnDefinition>
+            <Name>instance_type</Name>
+            <EnableIndexing>false</EnableIndexing>
+            <IsPrimaryKey>false</IsPrimaryKey>
+            <EnableScoreParam>false</EnableScoreParam>
+            <Type>STRING</Type>
+        </ColumnDefinition>
+        <ColumnDefinition>
+            <Name>scaling_decision_id</Name>
+            <EnableIndexing>false</EnableIndexing>
+            <IsPrimaryKey>false</IsPrimaryKey>
+            <EnableScoreParam>false</EnableScoreParam>
+            <Type>STRING</Type>
+        </ColumnDefinition>
+        <ColumnDefinition>
+            <Name>is_multi_tenant</Name>
+            <EnableIndexing>false</EnableIndexing>
+            <IsPrimaryKey>false</IsPrimaryKey>
+            <EnableScoreParam>false</EnableScoreParam>
+            <Type>STRING</Type>
+        </ColumnDefinition>
+        <ColumnDefinition>
+            <Name>private_IP_addresses</Name>
+            <EnableIndexing>false</EnableIndexing>
+            <IsPrimaryKey>false</IsPrimaryKey>
+            <EnableScoreParam>false</EnableScoreParam>
+            <Type>STRING</Type>
+        </ColumnDefinition>
+        <ColumnDefinition>
+            <Name>public_IP_addresses</Name>
+            <EnableIndexing>false</EnableIndexing>
+            <IsPrimaryKey>false</IsPrimaryKey>
+            <EnableScoreParam>false</EnableScoreParam>
+            <Type>STRING</Type>
+        </ColumnDefinition>
+        <ColumnDefinition>
+            <Name>allocated_IP_addresses</Name>
+            <EnableIndexing>false</EnableIndexing>
+            <IsPrimaryKey>false</IsPrimaryKey>
+            <EnableScoreParam>false</EnableScoreParam>
+            <Type>STRING</Type>
+        </ColumnDefinition>
+        <ColumnDefinition>
+            <Name>host_name</Name>
+            <EnableIndexing>false</EnableIndexing>
+            <IsPrimaryKey>false</IsPrimaryKey>
+            <EnableScoreParam>false</EnableScoreParam>
+            <Type>STRING</Type>
+        </ColumnDefinition>
+        <ColumnDefinition>
+            <Name>hypervisor</Name>
+            <EnableIndexing>false</EnableIndexing>
+            <IsPrimaryKey>false</IsPrimaryKey>
+            <EnableScoreParam>false</EnableScoreParam>
+            <Type>STRING</Type>
+        </ColumnDefinition>
+        <ColumnDefinition>
+            <Name>cpu</Name>
+            <EnableIndexing>false</EnableIndexing>
+            <IsPrimaryKey>false</IsPrimaryKey>
+            <EnableScoreParam>false</EnableScoreParam>
+            <Type>STRING</Type>
+        </ColumnDefinition>
+        <ColumnDefinition>
+            <Name>ram</Name>
+            <EnableIndexing>false</EnableIndexing>
+            <IsPrimaryKey>false</IsPrimaryKey>
+            <EnableScoreParam>false</EnableScoreParam>
+            <Type>STRING</Type>
+        </ColumnDefinition>
+        <ColumnDefinition>
+            <Name>image_id</Name>
+            <EnableIndexing>false</EnableIndexing>
+            <IsPrimaryKey>false</IsPrimaryKey>
+            <EnableScoreParam>false</EnableScoreParam>
+            <Type>STRING</Type>
+        </ColumnDefinition>
+        <ColumnDefinition>
+            <Name>login_port</Name>
+            <EnableIndexing>false</EnableIndexing>
+            <IsPrimaryKey>false</IsPrimaryKey>
+            <EnableScoreParam>false</EnableScoreParam>
+            <Type>INTEGER</Type>
+        </ColumnDefinition>
+        <ColumnDefinition>
+            <Name>os_name</Name>
+            <EnableIndexing>false</EnableIndexing>
+            <IsPrimaryKey>false</IsPrimaryKey>
+            <EnableScoreParam>false</EnableScoreParam>
+            <Type>STRING</Type>
+        </ColumnDefinition>
+        <ColumnDefinition>
+            <Name>os_version</Name>
+            <EnableIndexing>false</EnableIndexing>
+            <IsPrimaryKey>false</IsPrimaryKey>
+            <EnableScoreParam>false</EnableScoreParam>
+            <Type>STRING</Type>
+        </ColumnDefinition>
+        <ColumnDefinition>
+            <Name>os_architecture</Name>
+            <EnableIndexing>false</EnableIndexing>
+            <IsPrimaryKey>false</IsPrimaryKey>
+            <EnableScoreParam>false</EnableScoreParam>
+            <Type>STRING</Type>
+        </ColumnDefinition>
+        <ColumnDefinition>
+            <Name>is_64bit_os</Name>
+            <EnableIndexing>false</EnableIndexing>
+            <IsPrimaryKey>false</IsPrimaryKey>
+            <EnableScoreParam>false</EnableScoreParam>
+            <Type>BOOLEAN</Type>
+        </ColumnDefinition>
+    </TableSchema>
+    <Source>
+        <StreamId>member_info:1.0.0</StreamId>
+    </Source>
+    <RecordStoreName>EVENT_STORE</RecordStoreName>
+</EventStoreConfiguration>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/53c98dd9/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventstoreMemberLifecycle_1.0.0/artifact.xml
----------------------------------------------------------------------
diff --git a/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventstoreMemberLifecycle_1.0.0/artifact.xml b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventstoreMemberLifecycle_1.0.0/artifact.xml
new file mode 100644
index 0000000..b6b4438
--- /dev/null
+++ b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/EventstoreMemberLifecycle_1.0.0/artifact.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF 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.
+
+-->
+<artifact name="EventstoreMemberLifecycle" version="1.0.0" type="analytics/eventstore" serverRole="DataAnalyticsServer">
+    <file>member_lifecycle.xml</file>
+</artifact>
\ No newline at end of file


Mime
View raw message