mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
parent
b8df909ad5
commit
62f2f92ae8
@ -17,6 +17,15 @@ class DeleteDowntimeCommand extends IcingaCommand
|
|||||||
*/
|
*/
|
||||||
protected $downtimeId;
|
protected $downtimeId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Name of the downtime (Icinga 2.4+)
|
||||||
|
*
|
||||||
|
* Required for removing the downtime via Icinga 2's API.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $downtimeName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether the command affects a service downtime
|
* Whether the command affects a service downtime
|
||||||
*
|
*
|
||||||
@ -47,6 +56,33 @@ class DeleteDowntimeCommand extends IcingaCommand
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the name of the downtime (Icinga 2.4+)
|
||||||
|
*
|
||||||
|
* Required for removing the downtime via Icinga 2's API.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getDowntimeName()
|
||||||
|
{
|
||||||
|
return $this->downtimeName;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the name of the downtime (Icinga 2.4+)
|
||||||
|
*
|
||||||
|
* Required for removing the downtime via Icinga 2's API.
|
||||||
|
*
|
||||||
|
* @param string $downtimeName
|
||||||
|
*
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setDowntimeName($downtimeName)
|
||||||
|
{
|
||||||
|
$this->downtimeName = $downtimeName;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get whether the command affects a service
|
* Get whether the command affects a service
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user