"""Data models for the synthetic stream.""" from dataclasses import dataclass from typing import Literal Label = Literal["normal", "point_anomaly", "contextual_anomaly"] Phase = Literal["A", "B", "C"] @dataclass(frozen=True) class Observation: """A single multivariate sensor observation with ground truth label and stream phase.""" timestamp: float temperature: float pressure: float vibration: float label: Label phase: Phase = "A"