Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
enh(api): allow to order hosts and services by last state change (#8349)
Browse files Browse the repository at this point in the history
Refs: MON-4878
  • Loading branch information
kduret authored Feb 25, 2020
1 parent 88168a6 commit 978ecde
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ public function findHosts(): array
'host.name' => 'h.name',
'host.alias' => 'h.alias',
'host.address' => 'h.address',
'host.last_state_change' => 'h.last_state_change',
'host.state' => 'h.state',
'poller.id' => 'h.instance_id',
'service.display_name' => 'srv.display_name',
Expand Down Expand Up @@ -592,12 +593,14 @@ public function findServices(): array
'host.name' => 'h.name',
'host.alias' => 'h.alias',
'host.address' => 'h.address',
'host.last_state_change' => 'h.last_state_change',
'host.state' => 'h.state',
'host_group.id' => 'hhg.hostgroup_id',
'poller.id' => 'i.instance_id',
'service.description' => 'srv.description',
'service.display_name' => 'srv.display_name',
'service.is_acknowledged' => 'srv.acknowledged',
'service.last_state_change' => 'srv.last_state_change',
'service.output' => 'srv.output',
'service.state' => 'srv.state',
'service_group.id' => 'ssg.servicegroup_id',
Expand Down

0 comments on commit 978ecde

Please sign in to comment.