monitoring: Add sort rules to the service group summary

refs #8241
This commit is contained in:
Eric Lippmann 2015-05-21 12:41:29 +02:00
parent e7396ea49c
commit 1a1f93db23
1 changed files with 26 additions and 0 deletions

View File

@ -63,4 +63,30 @@ class Servicegroupsummary extends DataView
{
return array('servicegroup', 'servicegroup_alias');
}
/**
* {@inheritdoc}
*/
public function getSortRules()
{
return array(
'servicegroup_alias' => array(
'order' => self::SORT_ASC
),
'services_severity' => array(
'columns' => array(
'services_severity',
'servicegroup_alias ASC'
),
'order' => self::SORT_DESC
),
'services_total' => array(
'columns' => array(
'services_total',
'servicegroup_alias ASC'
),
'order' => self::SORT_ASC
)
);
}
}