From a1111f4fab18ebac95c4b3839058a0abc63330df Mon Sep 17 00:00:00 2001 From: huangzhuang_3rd Date: Thu, 13 Aug 2026 00:46:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20V1=20-=20DAG=E7=BC=96=E6=8E=92/?= =?UTF-8?q?=E5=91=8A=E8=AD=A6=E7=B3=BB=E7=BB=9F/Agent=E5=BE=AA=E7=8E=AF/?= =?UTF-8?q?=E7=9F=A5=E8=AF=86=E5=BA=93RAG/Webhook=20+=20=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=AF=8C=E4=B8=8A=E4=B8=8B=E6=96=87=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/schemas/alert.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 backend/app/schemas/alert.py diff --git a/backend/app/schemas/alert.py b/backend/app/schemas/alert.py new file mode 100644 index 0000000..8c34cc1 --- /dev/null +++ b/backend/app/schemas/alert.py @@ -0,0 +1,18 @@ +"""Alert schemas.""" +from pydantic import BaseModel, Field +from typing import Optional +from datetime import datetime + + +class AlertResponse(BaseModel): + id: int + alert_type: str + severity: str + message: str + project_id: Optional[int] = None + worker_id: Optional[int] = None + is_read: bool + tenant_id: int + created_at: datetime + + model_config = {"from_attributes": True}