Skip to content

Commit bf4b045

Browse files
ServicestatusQuery: Add missing support for relative time filter for (host|service)_last_time_* columns
1 parent ff04a2e commit bf4b045

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

doc/80-Upgrading.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
Specific version upgrades are described below. Please note that upgrades are incremental. An upgrade from
44
v2.6 to v2.8 requires to follow the instructions for v2.7 too.
55

6+
## Upgrading to Icinga Web 2.13
7+
8+
**Breaking changes**
9+
10+
* The following columns of the `Servicestatus` table, which previously displayed the date time (string) as a fetched value, now display the unix timestamp to support relative time filters:
11+
* `service_last_time_ok`
12+
* `service_last_time_unknown`
13+
* `service_last_time_warning`
14+
* `service_last_time_critical`
15+
616
## Upgrading to Icinga Web 2.12.2
717

818
**Framework changes affecting third-party code**

modules/monitoring/library/Monitoring/Backend/Ido/Query/ServicestatusQuery.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,10 @@ class ServicestatusQuery extends IdoQuery
202202
'service_last_notification' => 'UNIX_TIMESTAMP(ss.last_notification)',
203203
'service_last_state_change' => 'UNIX_TIMESTAMP(ss.last_state_change)',
204204
'service_last_state_change_ts' => 'ss.last_state_change',
205-
'service_last_time_critical' => 'ss.last_time_critical',
206-
'service_last_time_ok' => 'ss.last_time_ok',
207-
'service_last_time_unknown' => 'ss.last_time_unknown',
208-
'service_last_time_warning' => 'ss.last_time_warning',
205+
'service_last_time_critical' => 'UNIX_TIMESTAMP(ss.last_time_critical)',
206+
'service_last_time_ok' => 'UNIX_TIMESTAMP(ss.last_time_ok)',
207+
'service_last_time_unknown' => 'UNIX_TIMESTAMP(ss.last_time_unknown)',
208+
'service_last_time_warning' => 'UNIX_TIMESTAMP(ss.last_time_warning)',
209209
'service_long_output' => 'ss.long_output',
210210
'service_max_check_attempts' => 'ss.max_check_attempts',
211211
'service_modified_service_attributes' => 'ss.modified_service_attributes',

0 commit comments

Comments
 (0)