feat: V1 - DAG编排/告警系统/Agent循环/知识库RAG/Webhook + 审核管理富上下文修复
This commit is contained in:
@@ -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}
|
||||
Reference in New Issue
Block a user