luci/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/dhcpleases.js
Nick Hainke f8552afb1c luci-app-statistics: add dhcpleases
Add the dhcpleases plugin:
https://github.com/openwrt/packages/pull/14204

Added-Frontend-by: Hannu Nyman <hannu.nyman@iki.fi>
Signed-off-by: Nick Hainke <vincent@systemli.org>

[Minor changes to graph: alt_autoscale, precision, label]
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-12-12 18:29:54 +02:00

25 lines
454 B
JavaScript

/* Licensed to the public under the Apache License 2.0. */
'use strict';
'require baseclass';
return baseclass.extend({
title: _('DHCP Leases'),
rrdargs: function(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"
}
}
}
};
}
});