diff --git a/provisioning_status.phtml b/provisioning_status.phtml index f0e74ab..d7c1fdf 100644 --- a/provisioning_status.phtml +++ b/provisioning_status.phtml @@ -1,81 +1,81 @@ "CDRTool_Session", "auth" => "CDRTool_Auth", "perm" => "CDRTool_Perm" ) ); require("provisioning_statistics.php"); $perm->check("statistics"); $title="Provisioning usage statistics"; include("header.phtml"); global $CDRTool; if (strlen($CDRTool['filter']['domain'])) { $allowedDomains = explode(' ', $CDRTool['filter']['domain']); } $layout = new pageLayoutLocal(); $layout->showTopMenu($title); $start_date = isset($_REQUEST['start_date']) ? new DateTime($_REQUEST['start_date']) : new DateTime('-30 days'); $stop_date = isset($_REQUEST['stop_date']) ? new DateTime($_REQUEST['stop_date']) : new DateTime('now'); if ($start_date == $stop_date) { $start_date = $start_date->setTime(00, 00, 00); $stop_date = $stop_date->setTime(00, 00, 00); $stop_date->add(new DateInterval('P1D')); } print ""; foreach (array_keys($DATASOURCES) as $datasource) { if (isset($DATASOURCES[$datasource]['db_ngnpro_stats'])) { $stats= new ProvisioningStatistics(); list($data1, $data2) = $stats->getTopRequestsProvisioning($DATASOURCES[$datasource]['db_ngnpro_stats'], $start_date, $stop_date); // Fetch the required data $donutData = $stats->getData($data1, $data2); $requests_number = $stats->getNumber($DATASOURCES[$datasource]['db_ngnpro_stats'], $start_date, $stop_date); $interval = $start_date->diff($stop_date); $requests_time_new = $stats->getRequestsTime($DATASOURCES[$datasource]['db_ngnpro_stats'], $interval->days, $start_date, $stop_date); $requests_new = $stats->getRequestsProvisioning($DATASOURCES[$datasource]['db_ngnpro_stats'], $interval->days, $start_date, $stop_date); print "
Top 5 percentages are calculated from the total amount of requests in the top 5. The Top 5 donut can be zoomed to reveal distribution from each source IP.
The percentages in the zoomed donut are based on the total amount of the specific SOAP port.
The Line graphs can be zoomed by selecting an area in the graph. The graphs can be zoomed out with a mouse-click on the graph.