stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From saj...@apache.org
Subject [11/13] stratos git commit: Add tenant based metering info to metering dashboard - STRATOS-1654 This closes #503
Date Tue, 09 Feb 2016 12:32:24 GMT
http://git-wip-us.apache.org/repos/asf/stratos/blob/c795440d/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/GadgetApplicationSignUps/Application_Signups/css/d3.geomap.css
----------------------------------------------------------------------
diff --git a/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/GadgetApplicationSignUps/Application_Signups/css/d3.geomap.css
b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/GadgetApplicationSignUps/Application_Signups/css/d3.geomap.css
new file mode 100644
index 0000000..f80ca88
--- /dev/null
+++ b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/GadgetApplicationSignUps/Application_Signups/css/d3.geomap.css
@@ -0,0 +1,43 @@
+/*
+ *
+ * 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.
+ *
+ */
+text {
+  fill: #333;
+  font-size: 12px; }
+
+.background {
+  fill: none;
+  pointer-events: all; }
+
+.unit {
+  cursor: pointer;
+  fill: #ccc;
+  stroke: #000;
+  stroke-width: 0.4px; }
+
+.legend-bg {
+  fill: #fff;
+  fill-opacity: 0.8; }
+
+.legend-bar {
+  stroke: #333;
+  stroke-width: 1px; }
+
+/*# sourceMappingURL=geomap.css.map */

http://git-wip-us.apache.org/repos/asf/stratos/blob/c795440d/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/GadgetApplicationSignUps/Application_Signups/css/igviz.css
----------------------------------------------------------------------
diff --git a/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/GadgetApplicationSignUps/Application_Signups/css/igviz.css
b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/GadgetApplicationSignUps/Application_Signups/css/igviz.css
new file mode 100644
index 0000000..8c5d607
--- /dev/null
+++ b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/GadgetApplicationSignUps/Application_Signups/css/igviz.css
@@ -0,0 +1,89 @@
+/*
+ *
+ * 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.
+ *
+ */
+#rect {
+    fill: none;
+    stroke: rgb(0, 0, 0);
+    stroke-width: 2;
+}
+
+#rectCurve {
+    fill: none;
+    stroke: rgb(0, 0, 0);
+    stroke-width: 0.5;
+}
+
+.axis path,
+.axis line {
+    fill: none;
+    shape-rendering: crispEdges;
+    stroke: grey;
+    stroke-width: 2;
+}
+
+.line {
+    fill: none;
+    stroke: steelblue;
+    stroke-width: 1.5px;
+}
+
+
+.label{
+    font-size: 16.844px !important;
+}
+
+/* arc tween shit*/
+.background {
+    fill: #FFFFFF;
+    fill-opacity: 0.01;
+}
+
+.component {
+    fill: #e1e1e1;
+}
+
+.component .label {
+    font-family: Myriad, "Helvetic Neue", Helvetica, Arial;
+    text-anchor: middle;
+    fill: #0000FF;
+}
+
+.arc {
+    stroke-weight:0.1;
+    fill: #4e8fff;
+}
+
+
+.arc2 {
+    stroke-weight:0.1;
+    fill: #3660b0;
+}
+
+
+.label {
+    font-family:  Myriad, "Helvetic Neue", Helvetica, Arial;
+    text-anchor: middle;
+}
+
+.labelArc {
+    font-family: Myriad, "Helvetic Neue", Helvetica, Arial;
+    text-anchor: middle;
+    fill: #0000FF;
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/c795440d/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/GadgetApplicationSignUps/Application_Signups/gadget.json
----------------------------------------------------------------------
diff --git a/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/GadgetApplicationSignUps/Application_Signups/gadget.json
b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/GadgetApplicationSignUps/Application_Signups/gadget.json
new file mode 100644
index 0000000..70f25da
--- /dev/null
+++ b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/GadgetApplicationSignUps/Application_Signups/gadget.json
@@ -0,0 +1,19 @@
+{
+  "id": "Application_Signups",
+  "title": "Tenant Metering",
+  "type": "gadget",
+  "thumbnail": "local://images/gadgetIcon.png",
+  "data": {
+    "url": "local://store/carbon.super/gadget/Application_Signups/index.xml"
+  },
+  "listen": {
+    "application-signups-filter": {
+      "type": "address",
+      "description": "Used to filter based on state"
+    },
+    "auto-update": {
+      "type": "boolean",
+      "description": "Used to filter based on state"
+    }
+  }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/c795440d/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/GadgetApplicationSignUps/Application_Signups/index.xml
----------------------------------------------------------------------
diff --git a/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/GadgetApplicationSignUps/Application_Signups/index.xml
b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/GadgetApplicationSignUps/Application_Signups/index.xml
new file mode 100644
index 0000000..cd9be65
--- /dev/null
+++ b/extensions/das/modules/artifacts/metering-dashboard/capps/stratos-metering-service/GadgetApplicationSignUps/Application_Signups/index.xml
@@ -0,0 +1,89 @@
+<?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.
+
+-->
+<Module>
+    <ModulePrefs title="Bar Chart"
+                 author="WSO2 Gadget Server"
+                 height="230"
+                 scrolling="true"
+                 tags="charts,bar,visualization,data"
+                 description="A generic Bar Chart gadget, that takes a json datasource as
an input. It can be configured to fetch data in defined intervals. This gadget can be used
to create dashboards with statistical data. This gadget can be reused as an iframe in any
web page as it is self contained.">
+        <!-- This is used to import the pubsub-2 feature -->
+        <Require feature="pubsub-2">
+            <Param name="topics">
+                <!-- subscribe="true" needs to be set to define the gadget as a subscriber
gadget.-->
+                <![CDATA[
+                    <Topic title="application-signups-filter" name="application-signups-filter"
+                    description="Subscribes to application-signups-filter channel" type="object"
+                    subscribe="true"/>
+                ]]>
+            </Param>
+        </Require>
+    </ModulePrefs>
+    <UserPref name="dataSource"
+              display_name="Data Source"
+              default_value="/portal/gadgets/bar-chart/datasource/dataFile4.jag">
+    </UserPref>
+    <!--UserPref name="options"
+              display_name="Chart Options"
+              default_value="/portal/gadgets/bar-chart/js/options-bar.js">
+    </UserPref-->
+    <UserPref name="updateGraph"
+              display_name="Update Interval (s)"
+              default_value="No">
+    </UserPref>
+    <Content type="html">
+        <![CDATA[
+             <html>
+             <head>
+                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+                <title>Bar Chart</title>
+                <link href="css/flot-graph.css" rel="stylesheet" type="text/css">
+                <link href="css/igviz.css" rel="stylesheet" type="text/css">
+                <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
+                <link href="css/d3.geomap.css" rel="stylesheet" type="text/css">
+                <script language="javascript" type="text/javascript" src="js/excanvas.min.js"></script>
+                <script language="javascript" type="text/javascript" src="js/jquery.js"></script>
+                <script language="javascript" type="text/javascript" src="js/d3.min.js"></script>
+                <script language="javascript" type="text/javascript" src="js/vega.js"></script>
+                <script language="javascript" type="text/javascript" src="../../../../js/igviz.js"></script>
+                <script language="javascript" type="text/javascript" src="js/gadgetconf.js"></script>
+                <script language="javascript" type="text/javascript" src="js/outputAdapterUiLibrary.js"></script>
+                <script language="javascript" type="text/javascript" src="js/main.js"></script>
+                <script language="javascript" type="text/javascript" src="js/d3.geomap.dependencies.min.js"></script>
+                <script language="javascript" type="text/javascript" src="js/d3.geomap.min.js"></script>
+
+            </head>
+
+            <body>
+                <div id="placeholder" class="demo-placeholder" style="height:90%"></div>
+                <script language="javascript" type="text/javascript">
+                  if(jQuery("#placeholder").html() == ""){
+                    jQuery("#placeholder").append('<div id="noChart"><table><tr><td
style="padding:30px 20px 0px 20px"><img src="../../portal/images/noEvents.png" align="left"
style="width:24;height:24"/></td><td><br/><b><p><br/>
Data is not available for plotting</p></b></td></tr><tr><td></td><td><p>The
chart will be loaded once the dashboard receives events</p><td/></tr></table></div>');
+                  }
+                </script>
+            </body>
+            </html>
+    ]]>
+    </Content>
+</Module>
+
+


Mime
View raw message