Skip to content

Commit

Permalink
Make ascending sort by host or service severity initiatable
Browse files Browse the repository at this point in the history
fixes #9059
  • Loading branch information
Al2Klimov committed May 13, 2015
1 parent 0fe15d6 commit 7e1f9f6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
7 changes: 4 additions & 3 deletions modules/monitoring/library/Monitoring/DataView/HostStatus.php
Expand Up @@ -94,10 +94,11 @@ public function getSortRules()
),
'host_severity' => array(
'columns' => array(
'host_severity DESC',
'host_last_state_change DESC',
'host_severity',
'host_last_state_change',
'host_display_name ASC'
)
),
'order' => self::SORT_DESC
),
'host_address' => array(
'columns' => array(
Expand Down
14 changes: 8 additions & 6 deletions modules/monitoring/library/Monitoring/DataView/ServiceStatus.php
Expand Up @@ -130,19 +130,21 @@ public function getSortRules()
),
'service_severity' => array(
'columns' => array(
'service_severity DESC',
'service_last_state_change DESC',
'service_severity',
'service_last_state_change',
'service_display_name ASC',
'host_display_name ASC'
)
),
'order' => self::SORT_DESC
),
'host_severity' => array(
'columns' => array(
'host_severity DESC',
'host_last_state_change DESC',
'host_severity',
'host_last_state_change',
'host_display_name ASC',
'service_display_name ASC'
)
),
'order' => self::SORT_DESC
),
'host_display_name' => array(
'columns' => array(
Expand Down

0 comments on commit 7e1f9f6

Please sign in to comment.