load_thresholds_from_file#
- rojak.orchestrator.lite_controller.load_thresholds_from_file(file_path)[source]#
Load a mapping of diagnostic name to
TurbulenceThresholdsfrom JSONLoads the file written by
compute_thresholds()(viaexport_json()).- Parameters:
file_path (Path) – Path to the thresholds JSON file
- Returns:
Mapping from diagnostic name to its thresholds
- Raises:
AssertionError – If
file_pathdoes not exist or is not a file- Return type:
Mapping[DiagnosticName, TurbulenceThresholds]