treewide: import utility classes explicitly
[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 'require baseclass';
5
6 return baseclass.extend({
7 title: _('TCP Connections'),
8
9 rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
10 return {
11 title: "%H: TCP connections to port %pi",
12 vlabel: "Connections/s",
13 number_format: "%5.0lf",
14 data: {
15 types: [ "tcp_connections" ],
16 instances: {
17 tcp_connections: [
18 "SYN_SENT", "SYN_RECV", "LISTEN", "ESTABLISHED",
19 "LAST_ACK", "TIME_WAIT", "CLOSING", "CLOSE_WAIT",
20 "CLOSED", "FIN_WAIT1", "FIN_WAIT2"
21 ],
22 options: {
23 load__ESTABLISHED: { title: "%di", noarea: true }
24 }
25 },
26 options: {
27 tcp_connections__value: {
28 title: '%di'
29 }
30 }
31 }
32 };
33 }
34 });