Werk #15165: Add two livestatus column: prediction_file and prediction_files

Component Core & setup
Title Add two livestatus column: prediction_file and prediction_files
Date Sep 15, 2023
Level Trivial Change
Class New Feature
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Add two livestatus columns to the service table.

The "prediction_files" column returns a list of files under "var/check_mk/prediction/HOST/SERVICE/".

Example: lq 'GET services\nColumns: prediction_files\nFilter: description = Uptime'

The "prediction_file" column is a dynamic column that returns the content of a file under "var/check_mk/prediction/HOST/SERVICE/"

Example: lq 'GET services\nColumns: prediction_file:file:metric1/prediction1\nFilter: description = Uptime'

To the list of all Werks