mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-22 14:42:47 +03:00
Supported from Python 3.9, see https://peps.python.org/pep-0615/. Also https://blog.ganssle.io/articles/2019/11/utcnow.html.
30 lines
816 B
Python
30 lines
816 B
Python
from pydantic import BaseModel
|
|
from pydantic.json_schema import SkipJsonSchema
|
|
|
|
from frigate.review.types import SeverityEnum
|
|
|
|
|
|
class ReviewQueryParams(BaseModel):
|
|
cameras: str = "all"
|
|
labels: str = "all"
|
|
zones: str = "all"
|
|
reviewed: int | SkipJsonSchema[None] = None
|
|
limit: int | SkipJsonSchema[None] = None
|
|
severity: SeverityEnum | SkipJsonSchema[None] = None
|
|
before: float | SkipJsonSchema[None] = None
|
|
after: float | SkipJsonSchema[None] = None
|
|
|
|
|
|
class ReviewSummaryQueryParams(BaseModel):
|
|
cameras: str = "all"
|
|
labels: str = "all"
|
|
zones: str = "all"
|
|
timezone: str = "UTC"
|
|
|
|
|
|
class ReviewActivityMotionQueryParams(BaseModel):
|
|
cameras: str = "all"
|
|
before: float | SkipJsonSchema[None] = None
|
|
after: float | SkipJsonSchema[None] = None
|
|
scale: int = 30
|