public function getActionsForService(Service $service) { if ($service->check_command == "logstash_events") { // TODO: add icon when Icingaweb2 supports it // <i class="icon-doc-text"></i> return array(mt('logstash', 'Logstash events') => Url::fromPath('elasticsearch/event/list', array('host' => $service->getHost()->getName(), 'service' => $service->getName()))); } else { return array(); } }