Allow to filter notifications by notification_reason

refs #2698
This commit is contained in:
Eric Lippmann 2017-05-04 14:38:00 +02:00
parent b900a01d02
commit a4a0f9f5e6
4 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,7 @@ class HostnotificationQuery extends IdoQuery
'notifications' => array( 'notifications' => array(
'host_name' => 'ho.name1', 'host_name' => 'ho.name1',
'notification_output' => 'hn.output', 'notification_output' => 'hn.output',
'notification_reason' => 'hn.notification_reason',
'notification_state' => 'hn.state', 'notification_state' => 'hn.state',
'notification_timestamp' => 'UNIX_TIMESTAMP(hn.start_time)', 'notification_timestamp' => 'UNIX_TIMESTAMP(hn.start_time)',
'object_type' => '(\'host\')' 'object_type' => '(\'host\')'

View File

@ -25,6 +25,7 @@ class NotificationQuery extends IdoQuery
'instance_name' => 'n.instance_name', 'instance_name' => 'n.instance_name',
'notification_contact_name' => 'n.notification_contact_name', 'notification_contact_name' => 'n.notification_contact_name',
'notification_output' => 'n.notification_output', 'notification_output' => 'n.notification_output',
'notification_reason' => 'n.notification_reason',
'notification_state' => 'n.notification_state', 'notification_state' => 'n.notification_state',
'notification_timestamp' => 'n.notification_timestamp' 'notification_timestamp' => 'n.notification_timestamp'
), ),

View File

@ -38,6 +38,7 @@ class ServicenotificationQuery extends IdoQuery
'notifications' => array( 'notifications' => array(
'host_name' => 'so.name1', 'host_name' => 'so.name1',
'notification_output' => 'sn.output', 'notification_output' => 'sn.output',
'notification_reason' => 'sn.notification_reason',
'notification_state' => 'sn.state', 'notification_state' => 'sn.state',
'notification_timestamp' => 'UNIX_TIMESTAMP(sn.start_time)', 'notification_timestamp' => 'UNIX_TIMESTAMP(sn.start_time)',
'object_type' => '(\'service\')', 'object_type' => '(\'service\')',

View File

@ -15,6 +15,7 @@ class Notification extends DataView
'host_name', 'host_name',
'notification_contact_name', 'notification_contact_name',
'notification_output', 'notification_output',
'notification_reason',
'notification_state', 'notification_state',
'notification_timestamp', 'notification_timestamp',
'object_type', 'object_type',