mirror of
				https://github.com/Icinga/icingaweb2.git
				synced 2025-10-26 17:04:15 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			44 lines
		
	
	
		
			1017 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1017 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| // {{{ICINGA_LICENSE_HEADER}}}
 | |
| // {{{ICINGA_LICENSE_HEADER}}}
 | |
| 
 | |
| namespace Icinga\Module\Monitoring\Command\Instance;
 | |
| 
 | |
| use Icinga\Module\Monitoring\Command\IcingaCommand;
 | |
| 
 | |
| /**
 | |
|  * Disable host and service notifications w/ expire time on an Icinga instance
 | |
|  */
 | |
| class DisableNotificationsExpireCommand extends IcingaCommand
 | |
| {
 | |
|     /**
 | |
|      * The time when notifications should be re-enabled after disabling
 | |
|      *
 | |
|      * @var int|null Unix timestamp
 | |
|      */
 | |
|     protected $expireTime;
 | |
| 
 | |
|     /**
 | |
|      * Set time when notifications should be re-enabled after disabling
 | |
|      *
 | |
|      * @param   $expireTime int Unix timestamp
 | |
|      *
 | |
|      * @return  $this
 | |
|      */
 | |
|     public function setExpireTime($expireTime)
 | |
|     {
 | |
|         $this->expireTime = (int) $expireTime;
 | |
|         return $this;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Get the date and time when notifications should be re-enabled after disabling
 | |
|      *
 | |
|      * @return int|null Unix timestamp
 | |
|      */
 | |
|     public function getExpireTime()
 | |
|     {
 | |
|         return $this->expireTime;
 | |
|     }
 | |
| }
 |