Reorder columns to select in the Service object

refs #8614
This commit is contained in:
Eric Lippmann 2015-03-10 14:17:09 +01:00
parent fcb94af93c
commit e6949eaab4
1 changed files with 38 additions and 38 deletions

View File

@ -106,56 +106,56 @@ class Service extends MonitoredObject
protected function getDataView()
{
return $this->backend->select()->from('serviceStatus', array(
'host_name',
'host_display_name',
'host_state',
'host_last_state_change',
'host_address',
'host_handled',
'service_description',
'service_display_name',
'service_state',
'service_in_downtime',
'service_acknowledged',
'service_handled',
'service_output',
'service_last_state_change',
'service_long_output',
'service_is_flapping',
'service_state_type',
'service_last_check',
'service_notifications_enabled',
'service_notifications_enabled_changed',
'service_action_url',
'service_notes_url',
'service_next_check',
'service_attempt',
'service_last_notification',
'service_check_command',
'service_check_source',
'service_current_notification_number',
'host_acknowledged',
'host_in_downtime',
'host_notifications_enabled',
'host_display_name',
'host_alias',
'host_active_checks_enabled',
'host_address',
'host_alias',
'host_display_name',
'host_display_name',
'host_handled',
'host_in_downtime',
'host_last_state_change',
'host_name',
'host_notifications_enabled',
'host_passive_checks_enabled',
'service_perfdata',
'host_state',
'service_acknowledged',
'service_action_url',
'service_active_checks_enabled',
'service_active_checks_enabled_changed',
'service_passive_checks_enabled',
'service_passive_checks_enabled_changed',
'service_attempt',
'service_check_command',
'service_check_execution_time',
'service_check_latency',
'service_obsessing',
'service_obsessing_changed',
'service_check_source',
'service_current_notification_number',
'service_description',
'service_display_name',
'service_event_handler_enabled',
'service_event_handler_enabled_changed',
'service_flap_detection_enabled',
'service_flap_detection_enabled_changed',
'service_handled',
'service_in_downtime',
'service_is_flapping',
'service_last_check',
'service_last_notification',
'service_last_state_change',
'service_long_output',
'service_next_check',
'service_notes_url',
'service_notifications_enabled',
'service_notifications_enabled_changed',
'service_obsessing',
'service_obsessing_changed',
'service_output',
'service_passive_checks_enabled',
'service_passive_checks_enabled_changed',
'service_percent_state_change',
'service_perfdata',
'service_process_perfdata' => 'service_process_performance_data',
'service_percent_state_change'
'service_state',
'service_state_type'
))
->where('host_name', $this->host->getName())
->where('service_description', $this->service);