monitoring: Sort by display_names instead of name1 and name2 by default in the services overview

refs 
This commit is contained in:
Eric Lippmann 2015-01-21 09:15:07 +01:00
parent fe3bbb712d
commit e602717bd9
1 changed files with 5 additions and 4 deletions
modules/monitoring/library/Monitoring/DataView

View File

@ -25,6 +25,7 @@ class ServiceStatus extends DataView
{
return array(
'host_name',
'host_display_name',
'host_state',
'host_state_type',
'host_last_state_change',
@ -123,17 +124,17 @@ class ServiceStatus extends DataView
public function getSortRules()
{
return array(
'host_name' => array(
'host_display_name' => array(
'columns' => array(
'service_host_name',
'service_description'
'host_display_name',
'service_display_name'
),
'order' => self::SORT_ASC
),
'host_address' => array(
'columns' => array(
'host_ipv4',
'service_description'
'service_display_name'
),
'order' => self::SORT_ASC
),