fc4c80a93bb67a1b2111023e1b30765d7d6e7988
[oweals/luci.git] /
1 /* Licensed to the public under the Apache License 2.0. */
2
3 'use strict';
4
5 return L.Class.extend({
6         title: _('Context Switches'),
7
8         rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
9                 return {
10                         title: "%H: Context switches",
11                         alt_autoscale: true,
12                         vlabel: "Switches/s",
13                         number_format: "%5.0lf",
14                         data: {
15                                 types: [ "contextswitch" ],
16                                 sources: {
17                                         contextswitch: [ "value" ]
18                                 },
19                                 options: {
20                                         contextswitch: { color: "0000ff", title: "Context switches", noarea: true, overlay: true }
21                                 }
22                         }
23                 };
24         }
25 });