mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 07:14:35 +02:00
Use notification_reason for new notification types
This commit is contained in:
parent
9d0ef4cf33
commit
1d1fd0b3b2
@ -38,7 +38,17 @@ class HostnotificationQuery extends IdoQuery
|
|||||||
'output' => null,
|
'output' => null,
|
||||||
'state' => 'hn.state',
|
'state' => 'hn.state',
|
||||||
'timestamp' => 'UNIX_TIMESTAMP(hn.start_time)',
|
'timestamp' => 'UNIX_TIMESTAMP(hn.start_time)',
|
||||||
'type' => '(\'notify\')'
|
'type' => '
|
||||||
|
CASE hn.notification_reason
|
||||||
|
WHEN 1 THEN \'notification_ack\'
|
||||||
|
WHEN 2 THEN \'notification_flapping\'
|
||||||
|
WHEN 3 THEN \'notification_flapping_end\'
|
||||||
|
WHEN 5 THEN \'notification_dt_start\'
|
||||||
|
WHEN 6 THEN \'notification_dt_end\'
|
||||||
|
WHEN 7 THEN \'notification_dt_end\'
|
||||||
|
WHEN 8 THEN \'notification_custom\'
|
||||||
|
ELSE \'notification_state\'
|
||||||
|
END',
|
||||||
),
|
),
|
||||||
'instances' => array(
|
'instances' => array(
|
||||||
'instance_name' => 'i.instance_name'
|
'instance_name' => 'i.instance_name'
|
||||||
|
@ -30,7 +30,17 @@ class ServicenotificationQuery extends IdoQuery
|
|||||||
'output' => null,
|
'output' => null,
|
||||||
'state' => 'sn.state',
|
'state' => 'sn.state',
|
||||||
'timestamp' => 'UNIX_TIMESTAMP(sn.start_time)',
|
'timestamp' => 'UNIX_TIMESTAMP(sn.start_time)',
|
||||||
'type' => '(\'notify\')'
|
'type' => '
|
||||||
|
CASE sn.notification_reason
|
||||||
|
WHEN 1 THEN \'notification_ack\'
|
||||||
|
WHEN 2 THEN \'notification_flapping\'
|
||||||
|
WHEN 3 THEN \'notification_flapping_end\'
|
||||||
|
WHEN 5 THEN \'notification_dt_start\'
|
||||||
|
WHEN 6 THEN \'notification_dt_end\'
|
||||||
|
WHEN 7 THEN \'notification_dt_end\'
|
||||||
|
WHEN 8 THEN \'notification_custom\'
|
||||||
|
ELSE \'notification_state\'
|
||||||
|
END',
|
||||||
),
|
),
|
||||||
'hostgroups' => array(
|
'hostgroups' => array(
|
||||||
'hostgroup_name' => 'hgo.name1',
|
'hostgroup_name' => 'hgo.name1',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user