3a27a67dfe3a75814634ba27ab9c7d415f426381
4 return L
.Class
.extend({
5 title
: _('CPU Plugin Configuration'),
6 description
: _('The cpu plugin collects basic statistics about the processor usage.'),
8 addFormOptions: function(s
) {
11 o
= s
.option(form
.Flag
, 'enable', _('Enable this plugin'));
13 o
= s
.option(form
.Flag
, 'ReportByCpu', _('Report by CPU'),
14 _('By setting this, CPU is not aggregate of all processors on the system'));
17 o
.depends('enable', '1');
19 o
= s
.option(form
.Flag
, 'ReportByState', _('Report by state'),
20 _('When set to true, reports per-state metric (system, user, idle)'));
23 o
.depends('enable', '1');
25 o
= s
.option(form
.Flag
, 'ValuesPercentage', _('Report in percent'),
26 _('When set to true, we request percentage values'));
27 o
.depends({ 'enable': '1', 'ReportByCpu': '1', 'ReportByState': '1' });
30 configSummary: function(section
) {
31 return _('CPU monitoring is enabled');