mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-04 20:09:12 +01:00
* generic job infrastructure * types and dispatcher changes for jobs * save data in memory only for completed jobs * implement media sync job and endpoints * change logs to debug * websocket hook and types * frontend * i18n * docs tweaks * endpoint descriptions * tweak docs
43 lines
1.0 KiB
Python
43 lines
1.0 KiB
Python
from enum import Enum
|
|
from typing import TypedDict
|
|
|
|
from frigate.camera import CameraMetrics
|
|
from frigate.data_processing.types import DataProcessorMetrics
|
|
from frigate.object_detection.base import ObjectDetectProcess
|
|
|
|
|
|
class StatsTrackingTypes(TypedDict):
|
|
camera_metrics: dict[str, CameraMetrics]
|
|
embeddings_metrics: DataProcessorMetrics | None
|
|
detectors: dict[str, ObjectDetectProcess]
|
|
started: int
|
|
latest_frigate_version: str
|
|
last_updated: int
|
|
processes: dict[str, int]
|
|
|
|
|
|
class ModelStatusTypesEnum(str, Enum):
|
|
not_downloaded = "not_downloaded"
|
|
downloading = "downloading"
|
|
downloaded = "downloaded"
|
|
error = "error"
|
|
training = "training"
|
|
complete = "complete"
|
|
failed = "failed"
|
|
|
|
|
|
class JobStatusTypesEnum(str, Enum):
|
|
pending = "pending"
|
|
queued = "queued"
|
|
running = "running"
|
|
success = "success"
|
|
failed = "failed"
|
|
cancelled = "cancelled"
|
|
|
|
|
|
class TrackedObjectUpdateTypesEnum(str, Enum):
|
|
description = "description"
|
|
face = "face"
|
|
lpr = "lpr"
|
|
classification = "classification"
|