From 629becf2cc4f360abab5232538be45207f64fcd5 Mon Sep 17 00:00:00 2001 From: Johannes Meyer <johannes.meyer@netways.de> Date: Fri, 10 Apr 2015 15:35:24 +0200 Subject: [PATCH] DataView\Servicegroup: Add missing query and filter columns refs #8613 --- .../Monitoring/DataView/Servicegroup.php | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/modules/monitoring/library/Monitoring/DataView/Servicegroup.php b/modules/monitoring/library/Monitoring/DataView/Servicegroup.php index 411b550fc..82feabd88 100644 --- a/modules/monitoring/library/Monitoring/DataView/Servicegroup.php +++ b/modules/monitoring/library/Monitoring/DataView/Servicegroup.php @@ -1,10 +1,8 @@ <?php /* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */ - namespace Icinga\Module\Monitoring\DataView; - class Servicegroup extends DataView { /** @@ -15,10 +13,11 @@ class Servicegroup extends DataView public function getColumns() { return array( - 'service', - 'host', 'servicegroup_name', - 'servicegroup_alias' + 'servicegroup_alias', + 'host_name', + 'service_host_name', + 'service_description' ); } @@ -32,7 +31,15 @@ class Servicegroup extends DataView return array( 'servicegroup_name' => array( 'order' => self::SORT_ASC + ), + 'servicegroup_alias' => array( + 'order' => self::SORT_ASC ) ); } + + public function getFilterColumns() + { + return array('servicegroup', 'host', 'service'); + } }