Author: croberts
Date: 2012-05-21 18:43:55 +0000 (Mon, 21 May 2012)
New Revision: 5386
Modified:
trunk/cumin/model/plumage/rosemary.xml
trunk/cumin/python/cumin/grid/dashboard.py
Log:
Adding new history tab on grid::overview to house the pool efficiency historical chart.
Modified: trunk/cumin/model/plumage/rosemary.xml
===================================================================
--- trunk/cumin/model/plumage/rosemary.xml 2012-05-21 14:22:22 UTC (rev 5385)
+++ trunk/cumin/model/plumage/rosemary.xml 2012-05-21 18:43:55 UTC (rev 5386)
@@ -30,7 +30,7 @@
</statistic>
<statistic name="efficiency">
- <title>Efficiency</title>
+ <title>Efficiency percentage</title>
</statistic>
</class>
Modified: trunk/cumin/python/cumin/grid/dashboard.py
===================================================================
--- trunk/cumin/python/cumin/grid/dashboard.py 2012-05-21 14:22:22 UTC (rev 5385)
+++ trunk/cumin/python/cumin/grid/dashboard.py 2012-05-21 18:43:55 UTC (rev 5386)
@@ -34,10 +34,30 @@
capacity = DashboardCapacity(app, "c")
self.add_tab(capacity)
+
+ history = DashboardHistory(app, "h")
+ self.add_tab(history)
def render_title(self, session):
return "Overview"
+class DashboardHistory(Widget):
+ def __init__(self, app, name):
+ super(DashboardHistory, self).__init__(app, name)
+
+ chart = self.PoolEfficiencyChart(app, "eff",
app.model.com_redhat_grid_plumage.OSUtil)
+ chart.stats = ["efficiency"]
+ chart.max_samples = 250
+ chart.duration.param.default = "3600"
+ self.add_child(chart)
+
+ def render_title(self, session):
+ return "History"
+
+ class PoolEfficiencyChart(ReportingChart):
+ def render_title(self, session):
+ return "Pool efficiency"
+
class DashboardSummary(Widget):
def __init__(self, app, name, collector):
super(DashboardSummary, self).__init__(app, name)
Show replies by date