cremalink.parsing.monitor.model module
This module defines the high-level data model for a “monitor” data snapshot.
- class cremalink.parsing.monitor.model.MonitorSnapshot(raw: bytes, raw_b64: str, received_at: datetime, parsed: dict[str, ~typing.Any]=<factory>, warnings: list[str] = <factory>, errors: list[str] = <factory>, source: str = 'local', device_id: str | None = None, frame: MonitorFrame | None = None)[source]
Bases:
objectRepresents a single snapshot of the device’s monitoring status.
This dataclass acts as a container for all information related to a single monitor update from the device. It holds the raw data, timestamps, any parsed values, and metadata about the decoding process.
- received_at
The timestamp when this snapshot was received.
- Type:
- frame
A MonitorFrame instance if the raw bytes were successfully decoded into a low-level frame structure.
- Type:
- frame: MonitorFrame | None = None