diff options
Diffstat (limited to 'library/Director/DirectorObject/Lookup/ServiceInfo.php')
-rw-r--r-- | library/Director/DirectorObject/Lookup/ServiceInfo.php | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/library/Director/DirectorObject/Lookup/ServiceInfo.php b/library/Director/DirectorObject/Lookup/ServiceInfo.php new file mode 100644 index 0000000..3c8c51b --- /dev/null +++ b/library/Director/DirectorObject/Lookup/ServiceInfo.php @@ -0,0 +1,46 @@ +<?php + +namespace Icinga\Module\Director\DirectorObject\Lookup; + +use gipfl\IcingaWeb2\Url; +use Icinga\Module\Director\Objects\IcingaHost; +use Ramsey\Uuid\UuidInterface; + +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(); + + /** + * @return UuidInterface + */ + public function getUuid(); + + /** + * @return bool + */ + public function requiresOverrides(); + + /** + * @param IcingaHost $host + * @param $serviceName + * @return ServiceInfo|false + */ + public static function find(IcingaHost $host, $serviceName); +} |