8b1e6c2844da8eb69facee9ac5ae78bed25f2dac
[project/luci.git] / applications / luci-app-statistics / htdocs / luci-static / resources / statistics / rrdtool / definitions / load.js
1 /* Licensed to the public under the Apache License 2.0. */
2
3 'use strict';
4
5 return L.Class.extend({
6 title: _('System Load'),
7
8 rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
9 return {
10 title: "%H: Load", vlabel: "Load",
11 y_min: "0",
12 units_exponent: "0",
13 number_format: "%5.2lf", data: {
14 sources: {
15 load: [ "shortterm", "midterm", "longterm" ]
16 },
17
18 options: {
19 load__shortterm: {
20 color: "ff0000",
21 title: "1 minute",
22 noarea: true,
23 weight: 3
24 },
25 load__midterm: {
26 color: "ff6600",
27 title: "5 minutes",
28 overlay: true,
29 weight: 1
30 },
31 load__longterm: {
32 color: "ffaa00",
33 title: "15 minutes",
34 overlay: true,
35 weight: 2
36 }
37 }
38 }
39 };
40 }
41 });