2024-09-24 15:05:30 +02:00
|
|
|
from typing import Optional
|
|
|
|
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
|
|
|
|
|
|
class ReviewQueryParams(BaseModel):
|
|
|
|
cameras: Optional[str] = "all"
|
|
|
|
labels: Optional[str] = "all"
|
|
|
|
zones: Optional[str] = "all"
|
|
|
|
reviewed: Optional[int] = 0
|
|
|
|
limit: Optional[int] = None
|
|
|
|
severity: Optional[str] = None
|
2024-09-25 17:49:54 +02:00
|
|
|
before: Optional[float] = None
|
|
|
|
after: Optional[float] = None
|
2024-09-24 15:05:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
class ReviewSummaryQueryParams(BaseModel):
|
|
|
|
cameras: Optional[str] = "all"
|
|
|
|
labels: Optional[str] = "all"
|
|
|
|
zones: Optional[str] = "all"
|
|
|
|
timezone: Optional[str] = "utc"
|
|
|
|
|
|
|
|
|
|
|
|
class ReviewActivityMotionQueryParams(BaseModel):
|
|
|
|
cameras: Optional[str] = "all"
|
2024-09-25 17:49:54 +02:00
|
|
|
before: Optional[float] = None
|
|
|
|
after: Optional[float] = None
|
2024-09-24 15:05:30 +02:00
|
|
|
scale: Optional[int] = 30
|