Skip to content

Commit

Permalink
DataView\Servicegroup: Add missing query and filter columns
Browse files Browse the repository at this point in the history
refs #8613
  • Loading branch information
Johannes Meyer committed Apr 10, 2015
1 parent 4bc3afa commit 629becf
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions 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
{
/**
Expand All @@ -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'
);
}

Expand All @@ -32,7 +31,15 @@ public function getSortRules()
return array(
'servicegroup_name' => array(
'order' => self::SORT_ASC
),
'servicegroup_alias' => array(
'order' => self::SORT_ASC
)
);
}

public function getFilterColumns()
{
return array('servicegroup', 'host', 'service');
}
}

0 comments on commit 629becf

Please sign in to comment.