feat: initialize managed portal
This commit is contained in:
23
managed/store_dwell_alert/app/schemas.py
Normal file
23
managed/store_dwell_alert/app/schemas.py
Normal file
@@ -0,0 +1,23 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass, field
|
||||
|
||||
|
||||
@dataclass(slots=True)
|
||||
class PersonIdentity:
|
||||
person_id: str
|
||||
role: str = "customer"
|
||||
track_id: str | None = None
|
||||
state: str = "active"
|
||||
dwell_seconds: int = 0
|
||||
last_seen_ts: int = 0
|
||||
pause_start_ts: int | None = None
|
||||
embedding: list[float] = field(default_factory=list)
|
||||
|
||||
|
||||
@dataclass(slots=True)
|
||||
class AlertEvent:
|
||||
event: str
|
||||
camera_id: str
|
||||
ts: str
|
||||
payload: dict
|
||||
Reference in New Issue
Block a user