summaryrefslogtreecommitdiffstats
path: root/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/curl.js
blob: 798912de08910e98a9bed025454af11cacd03054 (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
26
27
28
29
/*
 * Copyright 2018 Chizhong Jin <pjincz@gmail.com>
 * Licensed to the public under the BSD 3-clause license
 */

'use strict';
'require baseclass';

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

	rrdargs(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: ""
					}
				}
			}
		};
	}
});