mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-02-23 00:18:31 +01:00
* add notification cooldown * cooldown docs * show alert box when notifications are used in an insecure context * add ability to suspend notifications from dashboard context menu
19 lines
584 B
Python
19 lines
584 B
Python
from typing import Optional
|
|
|
|
from pydantic import Field
|
|
|
|
from ..base import FrigateBaseModel
|
|
|
|
__all__ = ["NotificationConfig"]
|
|
|
|
|
|
class NotificationConfig(FrigateBaseModel):
|
|
enabled: bool = Field(default=False, title="Enable notifications")
|
|
email: Optional[str] = Field(default=None, title="Email required for push.")
|
|
cooldown: Optional[int] = Field(
|
|
default=0, ge=0, title="Cooldown period for notifications (time in seconds)."
|
|
)
|
|
enabled_in_config: Optional[bool] = Field(
|
|
default=None, title="Keep track of original state of notifications."
|
|
)
|