|
@@ -36,11 +36,11 @@ table.dataTable thead tr th, table.dataTable tbody tr td {
|
|
|
<nav class="navbar navbar-default" role="navigation" style="width: auto;">
|
|
|
<div class="container-fluid">
|
|
|
<div class="hidden-xs">
|
|
|
- <ol class="nav navbar-top-links breadcrumb">
|
|
|
- <li><a href="/app_dev.php/admin/dashboard"><i class="fa fa-home"></i></a></li>
|
|
|
- <li><a href="{{url('admin_stats_olt_list')}}">{{"breadcrumb.link_olt_list"|trans({}, 'StatsBundle')}}</a></li>
|
|
|
- <li class="active"><span>{{data['name']}}</span></li>
|
|
|
- </ol>
|
|
|
+ <div style="float:left; padding-top:13px; margin: 0px 10px;"><a href="{{url('admin_stats_olt_list')}}">{{"breadcrumb.link_olt_list"|trans({}, 'StatsBundle')}}</a></div>
|
|
|
+ <div class="menu-slash">/</div>
|
|
|
+ <div style="float:left; padding-top:13px; margin: 0px 10px;"><span><b>{{data.name|upper}}</b></span></div>
|
|
|
+ <div class="menu-slash">/</div>
|
|
|
+ <div style="float:left; padding-top:6px; margin: 0px 10px;">{% include '@Stats/Stats/picker.html.twig' %}</div>
|
|
|
</div>
|
|
|
<div class="navbar-collapse"></div>
|
|
|
</div>
|
|
@@ -75,11 +75,9 @@ table.dataTable thead tr th, table.dataTable tbody tr td {
|
|
|
{% include '@Stats/Stats/Template/olt_info_1.html.twig' %}
|
|
|
</div>
|
|
|
<div class="col-sm-3">
|
|
|
- <div id="onu_count" style="width:75%; margin:0 auto"></div>
|
|
|
+ {% include '@Stats/Stats/Template/olt_status_onu_info.html.twig' %}
|
|
|
</div>
|
|
|
<div class="col-sm-6">
|
|
|
- {% include '@Stats/Stats/picker.html.twig' %}
|
|
|
- <br />
|
|
|
<div id="onu_consumption"></div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -120,46 +118,22 @@ if((to - from) <= 21600) {
|
|
|
markerEnable = true;
|
|
|
}
|
|
|
|
|
|
-Highcharts.chart('onu_count', {
|
|
|
- chart: {type: 'pie'},
|
|
|
- title: {text: "{{onuOnPercent}} % online"},
|
|
|
- subtitle: {text: "{{onuTotal}} onus"},
|
|
|
- tooltip: {pointFormat: '{series.name}: <b>{point.y:.0f}</b>({point.percentage:.1f}%)'},
|
|
|
- plotOptions: {pie: {allowPointSelect: true,cursor: 'pointer',dataLabels: {enabled: true,format: '<b>{point.name}</b>: {point.y:.0f} ({point.percentage:.1f} %)',style: {color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'}}}},
|
|
|
- series: [{
|
|
|
- name: 'Onus',
|
|
|
- colorByPoint: true,
|
|
|
- data: [{
|
|
|
- name: 'Online',
|
|
|
- y: {{onuOn}},
|
|
|
- sliced: true,
|
|
|
- selected: true,
|
|
|
- color: '#4DD351'
|
|
|
- }, {
|
|
|
- name: 'Offline',
|
|
|
- y: {{onuOff}},
|
|
|
- color: '#D75C62'
|
|
|
- }]
|
|
|
- }]
|
|
|
-});
|
|
|
-
|
|
|
-
|
|
|
Highcharts.chart('onu_consumption', {
|
|
|
chart: {type: 'spline'},
|
|
|
title: {text: '{{'Consumption OLT'|trans({}, 'StatsBundle')}}'},
|
|
|
- subtitle: {text: '{{'consumption_subtitle'|trans({},'StatsBundle')}}'},
|
|
|
- xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
|
+ subtitle: {},
|
|
|
+ xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: null}},
|
|
|
yAxis: {labels: {formatter: consumptionAxisLabel,align: 'left'},min: 0},
|
|
|
tooltip: {formatter: consumptionTooltip},
|
|
|
plotOptions: {series: {marker: {enabled: markerEnable}, dataLabels: {enabled: false, color: '#666666', formatter: bandwidthDataLabel}}},
|
|
|
series: [{
|
|
|
- name: "OUT Consumption",
|
|
|
- data: {{series['out_consumption']['data']|json_encode}},
|
|
|
- color: '#e24d42'
|
|
|
- },{
|
|
|
- name: "IN Consumption",
|
|
|
+ name: "in",
|
|
|
data: {{series['in_consumption']['data']|json_encode}},
|
|
|
color: '#3f6833'
|
|
|
+ },{
|
|
|
+ name: "out",
|
|
|
+ data: {{series['out_consumption']['data']|json_encode}},
|
|
|
+ color: '#e24d42'
|
|
|
}]
|
|
|
});
|
|
|
|
|
@@ -167,26 +141,26 @@ Highcharts.chart('olt_bandwidth', {
|
|
|
chart: {type: 'spline'},
|
|
|
title: {text: '{{'Bandwidth OLT'|trans({}, 'StatsBundle')}}'},
|
|
|
subtitle: {},
|
|
|
- xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
|
+ xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: null}},
|
|
|
yAxis: {labels: {formatter: bandwidthAxisLabel,align: 'left'},min: 0},
|
|
|
tooltip: {formatter: bandwidthTooltip},
|
|
|
plotOptions: {series: {marker: {enabled: markerEnable}, dataLabels: {enabled: false, color: '#666666', formatter: bandwidthDataLabel}}},
|
|
|
series: [{
|
|
|
- name: "OUT Bandwidth",
|
|
|
+ name: "in",
|
|
|
+ data: {{series['in_bandwidth']['data']|json_encode}},
|
|
|
+ color: '#3f6833'
|
|
|
+ },{
|
|
|
+ name: "out",
|
|
|
data: {{series['out_bandwidth']['data']|json_encode}},
|
|
|
color: '#e24d42'
|
|
|
- },{
|
|
|
- name: "IN Bandwidth",
|
|
|
- data: {{series['in_bandwidth']['data']|json_encode}},
|
|
|
- color: '#3f6833'
|
|
|
}]
|
|
|
});
|
|
|
|
|
|
Highcharts.chart('olt_cm', {
|
|
|
chart: {type: 'area'},
|
|
|
- title: {text: 'Onus'},
|
|
|
+ title: {text: '{{'Onus'|trans({}, 'StatsBundle')}}'},
|
|
|
subtitle: {text: 'Online / Offline'},
|
|
|
- xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
|
+ xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: null}},
|
|
|
yAxis: {min: 0,stackLabels: {enabled: false,style: {fontWeight: 'bold',color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'}}},
|
|
|
tooltip: {valueSuffix: ' onus',valueDecimals: 0},
|
|
|
plotOptions: {series: {marker: {enabled: false}}, area: {stacking: 'normal', dataLabels: {enabled: false, color: '#666666'}}},
|
|
@@ -255,69 +229,6 @@ Highcharts.chart('olt_signals', {
|
|
|
});
|
|
|
|
|
|
|
|
|
-/*
|
|
|
-{#
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-Highcharts.chart('interface_utilization', {
|
|
|
- chart: {type: 'spline'},
|
|
|
- title: {text: '{{'Interfaces Utilization'|trans({}, 'StatsBundle')}}'},
|
|
|
- subtitle: {},
|
|
|
- xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
|
- yAxis: {labels: {align: 'left'},min: 0, max: 100},
|
|
|
- tooltip: {valueSuffix: ' %',valueDecimals: 2},
|
|
|
- plotOptions: {series: {marker: {enabled: markerEnable}}, spline: {marker: {enabled: false}}},
|
|
|
- series: [
|
|
|
- {% for index in utilizations %}
|
|
|
- {
|
|
|
- name: "Interface {{index}}",
|
|
|
- data: {{series['utilization_' ~ index]['data']|json_encode}}
|
|
|
- },
|
|
|
- {% endfor %}
|
|
|
- ]
|
|
|
-});
|
|
|
-
|
|
|
-Highcharts.chart('interface_snr', {
|
|
|
- chart: {type: 'spline'},
|
|
|
- title: {text: '{{'Interfaces SNR'|trans({}, 'StatsBundle')}}'},
|
|
|
- subtitle: {},
|
|
|
- xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
|
- yAxis: {labels: {align: 'left'}},
|
|
|
- tooltip: {valueSuffix: ' dB',valueDecimals: 2},
|
|
|
- plotOptions: {series: {marker: {enabled: markerEnable}}, spline: {marker: {enabled: false}}},
|
|
|
- series: [
|
|
|
- {% for index in snrs %}
|
|
|
- {
|
|
|
- name: "Interface {{index}}",
|
|
|
- data: {{series['signal_' ~ index]['data']|json_encode}}
|
|
|
- },
|
|
|
- {% endfor %}
|
|
|
- ]
|
|
|
-});
|
|
|
-
|
|
|
-Highcharts.chart('interface_cer', {
|
|
|
- chart: {type: 'spline'},
|
|
|
- title: {text: '{{'Interfaces CER'|trans({}, 'StatsBundle')}}'},
|
|
|
- subtitle: {},
|
|
|
- xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
|
- yAxis: {labels: {align: 'left'}},
|
|
|
- tooltip: {valueSuffix: ' %',valueDecimals: 6},
|
|
|
- plotOptions: {series: {marker: {enabled: markerEnable}}, spline: {marker: {enabled: false}}},
|
|
|
- series: [
|
|
|
- {% for index in cers %}
|
|
|
- {
|
|
|
- name: "Interface {{index}}",
|
|
|
- data: {{series['cer_' ~ index]['data']|json_encode}}
|
|
|
- },
|
|
|
- {% endfor %}
|
|
|
- ]
|
|
|
-});
|
|
|
-
|
|
|
-
|
|
|
-#}
|
|
|
-*/
|
|
|
-
|
|
|
</script>
|
|
|
|
|
|
{% endblock %}
|