f2a2d7c2223bf244234b1fd3b185fa27f9f8ca7a
[oweals/luci.git] /
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                         }
26                 };
27         }
28 });