monitoring/commands: Add (ENABLE|DISABLE)_PERFORMANCE_DATA commands
`TogglePerformanceData' is the command object for enabling/disabling the processing of host and service performance data on an Icinga instance. refs #6593
This commit is contained in:
parent
0edd14559c
commit
920c0b9c6d
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
// {{{ICINGA_LICENSE_HEADER}}}
|
||||
// {{{ICINGA_LICENSE_HEADER}}}
|
||||
|
||||
namespace Icinga\Module\Monitoring\Command\Instance;
|
||||
|
||||
use Icinga\Module\Monitoring\Command\Common\ToggleFeature;
|
||||
|
||||
/**
|
||||
* Enable/disable the processing of host and service performance data on an Icinga instance
|
||||
*/
|
||||
class TogglePerformanceData extends ToggleFeature
|
||||
{
|
||||
/**
|
||||
* (non-PHPDoc)
|
||||
* @see \Icinga\Module\Monitoring\Command\IcingaCommand::getCommandString() For the method documentation.
|
||||
*/
|
||||
public function getCommandString()
|
||||
{
|
||||
return $this->enable === true ? 'ENABLE_PERFORMANCE_DATA' : 'DISABLE_PERFORMANCE_DATA';
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue