Add name property to the delete downtime command

refs #11398
This commit is contained in:
Eric Lippmann 2016-08-31 13:01:19 +02:00
parent b8df909ad5
commit 62f2f92ae8
1 changed files with 36 additions and 0 deletions

View File

@ -17,6 +17,15 @@ class DeleteDowntimeCommand extends IcingaCommand
*/
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
*
@ -47,6 +56,33 @@ class DeleteDowntimeCommand extends IcingaCommand
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
*