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
, 'ValuesPercentage', _('Report in percent'),
27 _('When set to true, we request percentage values'));
28 o
.depends({ 'enable': '1', 'ReportByCpu': '1', 'ReportByState': '1' });
31 configSummary: function(section
) {
32 return _('CPU monitoring is enabled');