mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-26 19:06:11 +01:00
4c24b70d47
* Do not use a default value of datetime for params * Formatting * Remove unused * Undo
29 lines
737 B
Python
29 lines
737 B
Python
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
|
|
before: Optional[float] = None
|
|
after: Optional[float] = None
|
|
|
|
|
|
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"
|
|
before: Optional[float] = None
|
|
after: Optional[float] = None
|
|
scale: Optional[int] = 30
|