2021-01-16 15:04:29 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Icinga\Module\Director\DirectorObject\Lookup;
|
|
|
|
|
|
|
|
use gipfl\IcingaWeb2\Url;
|
|
|
|
use Icinga\Module\Director\Objects\IcingaHost;
|
2022-07-11 10:05:22 +02:00
|
|
|
use Ramsey\Uuid\UuidInterface;
|
2021-01-16 15:04:29 +01:00
|
|
|
|
|
|
|
interface ServiceInfo
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The final Service name
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getName();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The host the final (rendered, processed) Service belongs to
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getHostName();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Url
|
|
|
|
*/
|
|
|
|
public function getUrl();
|
|
|
|
|
2022-07-11 10:05:22 +02:00
|
|
|
/**
|
|
|
|
* @return UuidInterface
|
|
|
|
*/
|
|
|
|
public function getUuid();
|
|
|
|
|
2021-01-18 16:03:04 +01:00
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function requiresOverrides();
|
|
|
|
|
2021-01-16 15:04:29 +01:00
|
|
|
/**
|
|
|
|
* @param IcingaHost $host
|
|
|
|
* @param $serviceName
|
|
|
|
* @return ServiceInfo|false
|
|
|
|
*/
|
|
|
|
public static function find(IcingaHost $host, $serviceName);
|
|
|
|
}
|