mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-29 19:35:20 +02:00
12 lines
439 B
Python
12 lines
439 B
Python
"""``ScheduleTriggerParams`` — params for the ``schedule`` trigger type."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from pydantic import BaseModel, ConfigDict, Field
|
|
|
|
|
|
class ScheduleTriggerParams(BaseModel):
|
|
model_config = ConfigDict(extra="forbid")
|
|
|
|
cron: str = Field(..., description="Five-field cron expression.", examples=["0 9 * * 1-5"])
|
|
timezone: str = Field(..., description="IANA timezone.", examples=["Africa/Kigali"])
|