luci/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/curl.js
Jo-Philipp Wich 9680fdea9e luci-app-statistics: convert graph rendering to client side js
This conversion requires cgi-io >= version 17 and uhttpd version >= 2020-02-12
to function properly.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-02-13 20:45:26 +01:00

28 lines
524 B
JavaScript

/*
* Copyright 2018 Chizhong Jin <pjincz@gmail.com>
* Licensed to the public under the BSD 3-clause license
*/
'use strict';
return L.Class.extend({
title: _('cUrl'),
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
return {
title: "%H: cUrl Response Time for #%pi",
y_min: "0",
alt_autoscale_max: true,
vlabel: "Response Time",
number_format: "%5.1lf%Ss",
data: {
types: [ "response_time" ],
options: {
response_time: {
title: ""
}
}
}
};
}
});