2024-10-07 22:30:45 +02:00
|
|
|
from enum import Enum
|
2024-09-27 14:53:23 +02:00
|
|
|
from typing import TypedDict
|
2022-04-16 17:40:04 +02:00
|
|
|
|
2024-09-27 14:53:23 +02:00
|
|
|
from frigate.camera import CameraMetrics
|
2022-11-04 03:23:09 +01:00
|
|
|
from frigate.object_detection import ObjectDetectProcess
|
2022-04-16 17:40:04 +02:00
|
|
|
|
|
|
|
|
|
|
|
class StatsTrackingTypes(TypedDict):
|
2024-09-27 14:53:23 +02:00
|
|
|
camera_metrics: dict[str, CameraMetrics]
|
2022-11-04 03:23:09 +01:00
|
|
|
detectors: dict[str, ObjectDetectProcess]
|
2022-04-16 17:40:04 +02:00
|
|
|
started: int
|
|
|
|
latest_frigate_version: str
|
2023-01-27 13:20:41 +01:00
|
|
|
last_updated: int
|
2023-05-05 00:58:59 +02:00
|
|
|
processes: dict[str, int]
|
2024-10-07 22:30:45 +02:00
|
|
|
|
|
|
|
|
|
|
|
class ModelStatusTypesEnum(str, Enum):
|
|
|
|
not_downloaded = "not_downloaded"
|
|
|
|
downloading = "downloading"
|
|
|
|
downloaded = "downloaded"
|
|
|
|
error = "error"
|