host = $host; } protected function getImageBaseUrl() { return Url::fromPath('graphite/graph/host'); } protected function getDummyImageBaseUrl() { return Url::fromPath('graphite/graph-dummy/host'); } protected function filterImageUrl(Url $url) { return $url->setParam('host.name', $this->host); } protected function designedForMyMonitoredObjectType(Template $template) { foreach ($template->getCurves() as $curve) { if (in_array('host_name_template', $curve[0]->getMacros())) { return true; } } return false; } protected function getMonitoredObjectFilter() { return ['host.name' => $this->host]; } }