kafka_dae_diagnostics.data
Data being served by this IOC.
Members
A mutable object describing the data being served by this IOC. |
- class kafka_dae_diagnostics.data.Data(spectra: ~numpy.ndarray[tuple[~typing.Any, ...], ~numpy.dtype[~numpy.float64]] = <factory>, callbacks: dict[str, ~collections.abc.Callable[[], None]] = <factory>, bin_boundaries: ~numpy.ndarray[tuple[~typing.Any, ...], ~numpy.dtype[~numpy.int32]] = <factory>, callbacks_lock: ~threading.RLock = <factory>, total_events: int = 0, total_event_messages: int = 0, total_event_megabytes: float = 0.0, largest_kafka_timestamp: float = 0.0, most_recent_kafka_timestamp: float = 0.0, start_time: float = 0.0, stop_time: float = 0.0, event_processing_lag: float = 0.0)[source]
Bases:
objectA mutable object describing the data being served by this IOC.
- callbacks_lock: RLock
Lock-object, must be taken when
spectrum_updatersis iterated/mutated. :meta private:
- event_processing_lag: float = 0.0
Estimated time difference between an event being recorded in electronics and processed in KDAEDIAG IOC.
- largest_kafka_timestamp: float = 0.0
Largest timestamp seen in an ev44 or pl72 message since the beginning of this run. Seconds since epoch.
- most_recent_kafka_timestamp: float = 0.0
Timestamp in the most recently-processed ev44 or pl72 message. Seconds since epoch.