load_thresholds_from_file#

rojak.orchestrator.lite_controller.load_thresholds_from_file(file_path)[source]#

Load a mapping of diagnostic name to TurbulenceThresholds from JSON

Loads the file written by compute_thresholds() (via export_json()).

Parameters:

file_path (Path) – Path to the thresholds JSON file

Returns:

Mapping from diagnostic name to its thresholds

Raises:

AssertionError – If file_path does not exist or is not a file

Return type:

Mapping[DiagnosticName, TurbulenceThresholds]