summaryrefslogtreecommitdiffstats
path: root/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/dhcpleases.js
blob: 54e6729b58aeb057179bffd48fe331b7794ba796 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* Licensed to the public under the Apache License 2.0. */

'use strict';
'require baseclass';

return baseclass.extend({
	title: _('DHCP Leases'),

	rrdargs(graph, host, plugin, plugin_instance, dtype) {
		return {
			title: "%H: DHCP leases",
			alt_autoscale_max: true,
			vlabel: "Leases given",
			number_format: "%3.0lf",
			data: {
				types: [ "count" ],
				options: {
					count: {
						title: "Leases"
					}
				}
			}
		};
	}
});