monitoring: Sort the services overview by service severity by default

This commit is contained in:
Eric Lippmann 2015-01-21 09:37:45 +01:00
parent eb6591c176
commit c77996d5b9

View File

@ -124,6 +124,20 @@ class ServiceStatus extends DataView
public function getSortRules() public function getSortRules()
{ {
return array( return array(
'service_severity' => array(
'columns' => array(
'service_severity',
'service_last_state_change'
),
'order' => self::SORT_DESC
),
'host_severity' => array(
'columns' => array(
'host_severity',
'host_last_state_change',
),
'order' => self::SORT_ASC
),
'host_display_name' => array( 'host_display_name' => array(
'columns' => array( 'columns' => array(
'host_display_name', 'host_display_name',
@ -137,20 +151,6 @@ class ServiceStatus extends DataView
'service_display_name' 'service_display_name'
), ),
'order' => self::SORT_ASC 'order' => self::SORT_ASC
),
'host_severity' => array(
'columns' => array(
'host_severity',
'host_last_state_change',
),
'order' => self::SORT_ASC
),
'service_severity' => array(
'columns' => array(
'service_severity',
'service_last_state_change',
),
'order' => self::SORT_DESC
) )
); );
} }