monitoring: Add sort rules to the host group summary

refs #8241
This commit is contained in:
Eric Lippmann 2015-05-21 12:26:27 +02:00
parent a52264aa32
commit 58b3192ce3
1 changed files with 26 additions and 0 deletions

View File

@ -65,4 +65,30 @@ class Hostgroupsummary extends DataView
{ {
return array('hostgroup', 'hostgroup_alias'); return array('hostgroup', 'hostgroup_alias');
} }
/**
* {@inheritdoc}
*/
public function getSortRules()
{
return array(
'hostgroup_alias' => array(
'order' => self::SORT_ASC
),
'hosts_severity' => array(
'columns' => array(
'hosts_severity',
'hostgroup_alias ASC'
),
'order' => self::SORT_DESC
),
'hosts_total' => array(
'columns' => array(
'hosts_total',
'hostgroup_alias ASC'
),
'order' => self::SORT_ASC
)
);
}
} }