luci-app-statistics: rearrange graph display
[project/luci.git] / applications / luci-app-statistics / htdocs / luci-static / resources / statistics / rrdtool / definitions / tcpconns.js
1 /* Licensed to the public under the Apache License 2.0. */
2
3 'use strict';
4
5 return L.Class.extend({
6 title: _('TCP Connections'),
7
8 rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
9 return {
10 title: "%H: TCP connections to port %pi",
11 vlabel: "Connections/s",
12 number_format: "%5.0lf",
13 data: {
14 types: [ "tcp_connections" ],
15 instances: {
16 tcp_connections: [
17 "SYN_SENT", "SYN_RECV", "LISTEN", "ESTABLISHED",
18 "LAST_ACK", "TIME_WAIT", "CLOSING", "CLOSE_WAIT",
19 "CLOSED", "FIN_WAIT1", "FIN_WAIT2"
20 ],
21 options: {
22 load__ESTABLISHED: { title: "%di", noarea: true }
23 }
24 },
25 options: {
26 tcp_connections__value: {
27 title: '%di'
28 }
29 }
30 }
31 };
32 }
33 });