af78dd0b9177ab5b3c9dda7df533335415080c26
[oweals/luci.git] /
1 /*
2  * Copyright 2018 Chizhong Jin <pjincz@gmail.com>
3  * Licensed to the public under the BSD 3-clause license
4  */
5
6 'use strict';
7
8 return L.Class.extend({
9         title: _('cUrl'),
10
11         rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
12                 return {
13                         title: "%H: cUrl Response Time for #%pi",
14                         y_min: "0",
15                         alt_autoscale_max: true,
16                         vlabel: "Response Time",
17                         number_format: "%5.1lf%Ss",
18                         data: {
19                                 types: [ "response_time" ],
20                                 options: {
21                                         response_time: {
22                                                 title: ""
23                                         }
24                                 }
25                         }
26                 };
27         }
28 });