mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-01 02:57:41 +03:00
clean up
This commit is contained in:
parent
9632a38803
commit
773911e036
@ -31,7 +31,6 @@ class TriggerType(str, Enum):
|
|||||||
|
|
||||||
|
|
||||||
class TriggerAction(str, Enum):
|
class TriggerAction(str, Enum):
|
||||||
ALERT = "alert"
|
|
||||||
NOTIFICATION = "notification"
|
NOTIFICATION = "notification"
|
||||||
|
|
||||||
|
|
||||||
@ -144,7 +143,7 @@ class TriggerConfig(FrigateBaseModel):
|
|||||||
class CameraSemanticSearchConfig(FrigateBaseModel):
|
class CameraSemanticSearchConfig(FrigateBaseModel):
|
||||||
triggers: Optional[Dict[str, TriggerConfig]] = Field(
|
triggers: Optional[Dict[str, TriggerConfig]] = Field(
|
||||||
default=None,
|
default=None,
|
||||||
title="Text or image triggers to elevate tracked objects to review alerts",
|
title="Trigger actions on tracked objects that match existing thumbnails or descriptions",
|
||||||
)
|
)
|
||||||
|
|
||||||
model_config = ConfigDict(extra="forbid", protected_namespaces=())
|
model_config = ConfigDict(extra="forbid", protected_namespaces=())
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
"""Real time processor to trigger alerts by matching embeddings."""
|
"""Post time processor to trigger actions based on similar embeddings."""
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import json
|
import json
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
export type TriggerType = "thumbnail" | "description";
|
export type TriggerType = "thumbnail" | "description";
|
||||||
export type TriggerAction = "alert" | "notification";
|
export type TriggerAction = "notification";
|
||||||
|
|
||||||
export type Trigger = {
|
export type Trigger = {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user