monitoring: Don't hardcode sort direction of the severity columns

fixes #9059
This commit is contained in:
Eric Lippmann 2015-05-21 12:17:25 +02:00
parent 82f9425b90
commit 195275a716
2 changed files with 9 additions and 6 deletions

View File

@ -94,10 +94,11 @@ class HostStatus extends DataView
), ),
'host_severity' => array( 'host_severity' => array(
'columns' => array( 'columns' => array(
'host_severity DESC', 'host_severity',
'host_last_state_change DESC', 'host_last_state_change DESC',
'host_display_name ASC' 'host_display_name ASC'
) ),
'order' => self::SORT_DESC
), ),
'host_address' => array( 'host_address' => array(
'columns' => array( 'columns' => array(

View File

@ -130,19 +130,21 @@ class ServiceStatus extends DataView
), ),
'service_severity' => array( 'service_severity' => array(
'columns' => array( 'columns' => array(
'service_severity DESC', 'service_severity',
'service_last_state_change DESC', 'service_last_state_change DESC',
'service_display_name ASC', 'service_display_name ASC',
'host_display_name ASC' 'host_display_name ASC'
) ),
'order' => self::SORT_DESC
), ),
'host_severity' => array( 'host_severity' => array(
'columns' => array( 'columns' => array(
'host_severity DESC', 'host_severity',
'host_last_state_change DESC', 'host_last_state_change DESC',
'host_display_name ASC', 'host_display_name ASC',
'service_display_name ASC' 'service_display_name ASC'
) ),
'order' => self::SORT_DESC
), ),
'host_display_name' => array( 'host_display_name' => array(
'columns' => array( 'columns' => array(