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
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.3.0b1
Level Trivial Change
Class New Feature
Compatibility Compatible - no manual interaction needed

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