Files
routeros-traffic/backend/app/schemas/dashboard.py
Mateusz Gruszczyński 5429f176c9 first commit
2026-03-04 15:21:03 +01:00

23 lines
453 B
Python

from pydantic import BaseModel
class DashboardCreate(BaseModel):
name: str
is_shared: bool = False
class DashboardOut(BaseModel):
id: int
name: str
is_shared: bool
class PanelCreate(BaseModel):
title: str
router_id: int
config: dict # {"interfaces":[...],"metrics":[...],"interval_ms":1000,"window":120}
class PanelOut(BaseModel):
id: int
dashboard_id: int
title: str
router_id: int
config: dict