first commit
This commit is contained in:
22
backend/app/schemas/dashboard.py
Normal file
22
backend/app/schemas/dashboard.py
Normal file
@@ -0,0 +1,22 @@
|
||||
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
|
||||
Reference in New Issue
Block a user