mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaEndpoint: getDescriptiveUrl() - new helper
This commit is contained in:
parent
ec1b3ff8d1
commit
54a98d3a34
@ -110,6 +110,16 @@ class IcingaEndpoint extends IcingaObject
|
||||
}
|
||||
}
|
||||
|
||||
public function getDescriptiveUrl()
|
||||
{
|
||||
return sprintf(
|
||||
'https://%s@%s:%d/v1/',
|
||||
$this->getApiUser()->getObjectName(),
|
||||
$this->getResolvedProperty('host', $this->getObjectName()),
|
||||
$this->getResolvedPort()
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Use duration time renderer helper
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user