2014-03-10 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_reporting.php: sla reports with sla completion equal to 100 are ok, not "inside limits". git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9539 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
18129d30d7
commit
77068e72d8
|
@ -1,3 +1,8 @@
|
|||
2014-03-10 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* include/functions_reporting.php: sla reports with sla
|
||||
completion equal to 100 are ok, not "inside limits".
|
||||
|
||||
2014-03-09 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* include/help/ja/help_ipam.php: Added japanese ipam help file.
|
||||
|
|
|
@ -3263,10 +3263,15 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
|
|||
}
|
||||
|
||||
$data_graph = array ();
|
||||
$data_horin_graph = array();
|
||||
$data_graph[__('Inside limits')] = 0;
|
||||
$data_graph[__('Out of limits')] = 0;
|
||||
$data_graph[__('On the edge')] = 0;
|
||||
$data_graph[__('Unknown')] = 0;
|
||||
$data_horin_graph[__('Inside limits')] = 0;
|
||||
$data_horin_graph[__('Out of limits')] = 0;
|
||||
$data_horin_graph[__('On the edge')] = 0;
|
||||
$data_horin_graph[__('Unknown')] = 0;
|
||||
|
||||
$data_graph[__('Plannified downtime')] = 0;
|
||||
|
||||
|
@ -3341,6 +3346,11 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
|
|||
$data_graph[__('Unknown')]++;
|
||||
$data_horin_graph[__('Unknown')]['g']++;
|
||||
}
|
||||
# Fix : 100% accurance is 'inside limits' although 10% was not overrun
|
||||
else if (($sla_value == 100 && $sla_value >= $sla['sla_limit']) ) {
|
||||
$data_graph[__('Inside limits')]++;
|
||||
$data_horin_graph[__('Inside limits')]['g']++;
|
||||
}
|
||||
else if ($sla_value <= ($sla['sla_limit']+10) && $sla_value >= ($sla['sla_limit']-10)) {
|
||||
$data_graph[__('On the edge')]++;
|
||||
$data_horin_graph[__('On the edge')]['g']++;
|
||||
|
@ -3393,7 +3403,8 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
|
|||
}
|
||||
|
||||
// Print icon with status including edge
|
||||
if ($sla_value > ($sla['sla_limit'] + $edge_interval)) {
|
||||
# Fix : 100% accurance is 'inside limits' although 10% was not overrun
|
||||
if (($sla_value == 100 && $sla_value >= $sla['sla_limit']) || ($sla_value > ($sla['sla_limit'] + $edge_interval))) {
|
||||
$data[6] = html_print_image('images/status_sets/default/severity_normal.png',true,array('title'=>__('Inside limits')));
|
||||
}
|
||||
elseif (($sla_value <= $sla['sla_limit'] + $edge_interval)
|
||||
|
|
Loading…
Reference in New Issue