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, kafka_runinfo_consumer: dict[str, str], kafka_events_consumer: dict[str, str])[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.
- kafka_dae_diagnostics.config.load_config(config_path: str) DiagnosticsConfig[source]
Validate and load a config file at the specified path.