Code

Added several new charts
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 Aug 2010 15:05:17 +0000 (15:05 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 Aug 2010 15:05:17 +0000 (15:05 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19443 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/generic/statistics/chartClasses/class_cpuLoadChart.inc [new file with mode: 0644]
gosa-core/plugins/generic/statistics/chartClasses/class_durationTimeChart.inc [new file with mode: 0644]
gosa-core/plugins/generic/statistics/chartClasses/class_renderTimeChart.inc [new file with mode: 0644]

diff --git a/gosa-core/plugins/generic/statistics/chartClasses/class_cpuLoadChart.inc b/gosa-core/plugins/generic/statistics/chartClasses/class_cpuLoadChart.inc
new file mode 100644 (file)
index 0000000..81c8084
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+class cpuLoadChart extends memoryUsageChart
+{
+    var $title = 'CPU load';
+    var $enableCaching = TRUE;
+
+    function __construct(&$config)
+    {
+        parent::__construct($config);
+        $this->graphName = get_class();
+
+        // Generate graph which displays the memory usage over time
+        $this->series = array(
+                'max_load' => _('Max'),
+                'avg_load' => _('Avergae'),
+                'min_load' => _('Min'));
+        $this->dataName = "usagePerInterval";
+    }
+}
+?>
diff --git a/gosa-core/plugins/generic/statistics/chartClasses/class_durationTimeChart.inc b/gosa-core/plugins/generic/statistics/chartClasses/class_durationTimeChart.inc
new file mode 100644 (file)
index 0000000..874e0b5
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+class durationTimeChart extends memoryUsageChart
+{
+    var $title = 'Plugin duration';
+    var $enableCaching = TRUE;
+
+    function __construct(&$config)
+    {
+        parent::__construct($config);
+        $this->graphName = get_class();
+
+        // Generate graph which displays the memory usage over time
+        $this->series = array(
+                'max_dur' => _('Max'),
+                'avg_dur' => _('Avergae'),
+                'min_dur' => _('Min'));
+        $this->dataName = "usagePerInterval";
+    }
+}
+?>
diff --git a/gosa-core/plugins/generic/statistics/chartClasses/class_renderTimeChart.inc b/gosa-core/plugins/generic/statistics/chartClasses/class_renderTimeChart.inc
new file mode 100644 (file)
index 0000000..0dd0382
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+class renderTimeChart extends memoryUsageChart
+{
+    var $title = 'Render time';
+    var $enableCaching = TRUE;
+
+    function __construct(&$config)
+    {
+        parent::__construct($config);
+        $this->graphName = get_class();
+
+        // Generate graph which displays the memory usage over time
+        $this->series = array(
+                'max_render' => _('Max'),
+                'avg_render' => _('Avergae'),
+                'min_render' => _('Min'));
+        $this->dataName = "usagePerInterval";
+    }
+}
+?>