Created dummy Network Traffic Top N report
Former-commit-id: 7515d84dd40cc5ef9f50a2922e8a8a8fa5049eeb
This commit is contained in:
parent
1ecd656513
commit
775ebfe1d2
|
@ -579,6 +579,11 @@ switch ($action) {
|
|||
$resolution = $item ['top_n']; // Interval resolution
|
||||
$max_values = $item ['top_n_value']; // Max values
|
||||
break;
|
||||
case 'nt_top_n':
|
||||
$period = $item['period'];
|
||||
$description = $item['description'];
|
||||
$top_n_value = $item ['top_n_value'];
|
||||
break;
|
||||
}
|
||||
switch ($type) {
|
||||
case 'event_report_agent':
|
||||
|
@ -603,6 +608,7 @@ switch ($action) {
|
|||
case 'simple_baseline_graph':
|
||||
case 'event_report_log':
|
||||
case 'increment':
|
||||
case 'nt_top_n':
|
||||
$label = (isset($style['label'])) ? $style['label'] : '';
|
||||
break;
|
||||
default:
|
||||
|
@ -3466,6 +3472,10 @@ function chooseType() {
|
|||
$("#row_resolution").show();
|
||||
$("#row_servers").show();
|
||||
$("#row_historical_db_check").hide();
|
||||
case 'nt_top_n':
|
||||
$("#row_description").show();
|
||||
$("#row_period").show();
|
||||
$("#row_quantity").show();
|
||||
break;
|
||||
}
|
||||
switch (type) {
|
||||
|
|
|
@ -1105,6 +1105,11 @@ switch ($action) {
|
|||
$values['visual_format'] = get_parameter('visual_format');
|
||||
$good_format = true;
|
||||
break;
|
||||
case 'nt_top_n':
|
||||
$values['period'] = get_parameter('period');
|
||||
$values['top_n_value'] = get_parameter('quantity');
|
||||
$good_format = true;
|
||||
break;
|
||||
default:
|
||||
$values['period'] = get_parameter('period');
|
||||
$values['top_n'] = get_parameter('radiobutton_max_min_avg',0);
|
||||
|
@ -1288,6 +1293,7 @@ switch ($action) {
|
|||
case 'MTBF':
|
||||
case 'MTTR':
|
||||
case 'simple_baseline_graph':
|
||||
case 'nt_top_n':
|
||||
if ($label != '')
|
||||
$style['label'] = $label;
|
||||
else
|
||||
|
@ -1452,6 +1458,11 @@ switch ($action) {
|
|||
$values['visual_format'] = get_parameter('visual_format');
|
||||
$good_format = true;
|
||||
break;
|
||||
case 'nt_top_n':
|
||||
$values['top_n_value'] = get_parameter('quantity');
|
||||
$values['period'] = get_parameter('period');
|
||||
$good_format = true;
|
||||
break;
|
||||
default:
|
||||
$values['period'] = get_parameter('period');
|
||||
$values['top_n'] = get_parameter('radiobutton_max_min_avg',0);
|
||||
|
@ -1648,6 +1659,7 @@ switch ($action) {
|
|||
case 'MTBF':
|
||||
case 'MTTR':
|
||||
case 'simple_baseline_graph':
|
||||
case 'nt_top_n':
|
||||
if ($label != '')
|
||||
$style['label'] = $label;
|
||||
else
|
||||
|
|
|
@ -657,7 +657,10 @@ function reports_get_report_types ($template = false, $not_editor = false) {
|
|||
$types['event_report_log'] = array('optgroup' => __('Log'),
|
||||
'name' => __('Log report'));
|
||||
}
|
||||
|
||||
|
||||
$types['nt_top_n'] = array('optgroup' => __('Network traffic'),
|
||||
'name' => __('Network Traffic Top N'));
|
||||
|
||||
return $types;
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue