feat(replay): execute periodic diagnosis and hydraulic checks
This commit is contained in:
@@ -61,6 +61,7 @@ class ScadaReplayCreate(ReplayModel):
|
||||
device_ids: list[str] = Field(min_length=1, max_length=500)
|
||||
rules: list[ScadaReplayRule] = Field(min_length=1, max_length=30)
|
||||
quality_ranges: dict[str, ScadaQualityRange] = Field(default_factory=dict)
|
||||
scheduled_tasks_enabled: bool = False
|
||||
|
||||
@model_validator(mode="after")
|
||||
def configuration(self):
|
||||
@@ -130,6 +131,9 @@ class ScadaReplaySnapshot(ReplayModel):
|
||||
end_time: datetime
|
||||
monitoring_interval_seconds: int | None = Field(None, ge=60, le=31_536_000)
|
||||
step_pending: bool = False
|
||||
scheduled_tasks_enabled: bool = False
|
||||
periodic_pending: bool = False
|
||||
periodic_error: str | None = None
|
||||
monitoring_count: int = 0
|
||||
last_monitoring: ScadaMonitoringResult | None = None
|
||||
monitoring_config: ScadaMonitoringSettings | None = None
|
||||
|
||||
Reference in New Issue
Block a user