2014-09-11 17:18:07 +02:00
|
|
|
<?php
|
2015-02-03 16:27:59 +01:00
|
|
|
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | http://www.gnu.org/licenses/gpl-2.0.txt */
|
2014-09-11 17:18:07 +02:00
|
|
|
|
|
|
|
namespace Icinga\Module\Monitoring\Command\Object;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Schedule and propagate host downtime
|
|
|
|
*/
|
|
|
|
class PropagateHostDowntimeCommand extends ScheduleServiceDowntimeCommand
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* (non-PHPDoc)
|
|
|
|
* @see \Icinga\Module\Monitoring\Command\Object\ObjectCommand::$allowedObjects For the property documentation.
|
|
|
|
*/
|
|
|
|
protected $allowedObjects = array(
|
|
|
|
self::TYPE_HOST
|
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether the downtime for child hosts are all set to be triggered by this' host downtime
|
|
|
|
*
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
protected $triggered = false;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set whether the downtime for child hosts are all set to be triggered by this' host downtime
|
|
|
|
*
|
|
|
|
* @param bool $triggered
|
|
|
|
*
|
|
|
|
* @return $this
|
|
|
|
*/
|
|
|
|
public function setTriggered($triggered = true)
|
|
|
|
{
|
|
|
|
$this->triggered = (bool) $triggered;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get whether the downtime for child hosts are all set to be triggered by this' host downtime
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function getTriggered()
|
|
|
|
{
|
|
|
|
return $this->triggered;
|
|
|
|
}
|
|
|
|
}
|