kafka_dae_diagnostics.config
Utilities for reading Diagnostics IOC configuration from TOML.
Members
Create a new model by parsing and validating input data from keyword arguments. |
|
Validate and load a config file at the specified path. |
- class kafka_dae_diagnostics.config.DiagnosticsConfig(*, pv_prefix: str, callback_frequency_ms: Annotated[float, Gt(gt=0)], runinfo_topic: str, events_topic: str, vetoconfig_topic: str, kafka_runinfo_consumer: dict[str, str], kafka_events_consumer: dict[str, str], kafka_vetoconfig_consumer: dict[str, str], min_vetoing_percentage: float = 50.0, stale_event_message_timeout_s: float = 5.0)[source]
Bases:
BaseModelCreate a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- min_vetoing_percentage: float
The minimum active percentage (for each individual veto), beyond which the run state will be VETOING rather than RUNNING.
- kafka_dae_diagnostics.config.load_config(config_path: str) DiagnosticsConfig[source]
Validate and load a config file at the specified path.