36 lines
657 B
PHP
36 lines
657 B
PHP
|
<?php
|
||
|
|
||
|
namespace Icinga\Module\Director\DirectorObject\Lookup;
|
||
|
|
||
|
use gipfl\IcingaWeb2\Url;
|
||
|
use Icinga\Module\Director\Objects\IcingaHost;
|
||
|
|
||
|
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();
|
||
|
|
||
|
/**
|
||
|
* @param IcingaHost $host
|
||
|
* @param $serviceName
|
||
|
* @return ServiceInfo|false
|
||
|
*/
|
||
|
public static function find(IcingaHost $host, $serviceName);
|
||
|
}
|