5 return baseclass
.extend({
6 title
: _('CPU Plugin Configuration'),
7 description
: _('The cpu plugin collects basic statistics about the processor usage.'),
9 addFormOptions: function(s
) {
12 o
= s
.option(form
.Flag
, 'enable', _('Enable this plugin'));
14 o
= s
.option(form
.Flag
, 'ReportByCpu', _('Report by CPU'),
15 _('By setting this, CPU is not aggregate of all processors on the system'));
18 o
.depends('enable', '1');
20 o
= s
.option(form
.Flag
, 'ReportByState', _('Report by state'),
21 _('When set to true, reports per-state metric (system, user, idle)'));
24 o
.depends('enable', '1');
26 o
= s
.option(form
.Flag
, 'ShowIdle', _('Show Idle state'),
27 _('Report also the value for the idle metric'));
30 o
.depends({'enable': '1', 'ReportByState': '1'});
32 o
= s
.option(form
.Flag
, 'ValuesPercentage', _('Report in percent'),
33 _('When set to true, we request percentage values'));
36 o
.depends({ 'enable': '1', 'ReportByCpu': '1', 'ReportByState': '1' });
39 configSummary: function(section
) {
40 return _('CPU monitoring is enabled');