Sort host and service overview by display_name by default

refs #8716
This commit is contained in:
Eric Lippmann 2015-03-13 17:19:56 +01:00
parent a932f9d7c9
commit f1cdc8c904
2 changed files with 10 additions and 10 deletions

View File

@ -90,6 +90,9 @@ class HostStatus extends DataView
public function getSortRules()
{
return array(
'host_display_name' => array(
'order' => self::SORT_ASC
),
'host_severity' => array(
'columns' => array(
'host_severity DESC',
@ -97,9 +100,6 @@ class HostStatus extends DataView
'host_display_name ASC'
)
),
'host_display_name' => array(
'order' => self::SORT_ASC
),
'host_address' => array(
'columns' => array(
'host_ipv4'

View File

@ -123,6 +123,13 @@ class ServiceStatus extends DataView
public function getSortRules()
{
return array(
'service_display_name' => array(
'columns' => array(
'service_display_name',
'host_display_name'
),
'order' => self::SORT_ASC
),
'service_severity' => array(
'columns' => array(
'service_severity DESC',
@ -131,13 +138,6 @@ class ServiceStatus extends DataView
'host_display_name ASC'
)
),
'service_display_name' => array(
'columns' => array(
'service_display_name',
'host_display_name'
),
'order' => self::SORT_ASC
),
'host_severity' => array(
'columns' => array(
'host_severity DESC',