IcingaEndpoint: getDescriptiveUrl() - new helper

This commit is contained in:
Thomas Gelf 2018-02-20 15:36:48 +01:00
parent ec1b3ff8d1
commit 54a98d3a34

View File

@ -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
*