feat(heartbeat): emit heartbeat event to SQLite

This commit is contained in:
2026-07-10 12:11:18 +08:00
parent 0cf57bfaca
commit 2f4783f1f9
3 changed files with 34 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ router = APIRouter(tags=["monitor"])
class HeartbeatRequest(BaseModel):
account_id: str = Field(..., description="渠道账号唯一标识")
account_name: str | None = Field(None)
tenant_code: str = Field("default", description="业务系统租户编码")
risk_level: int = Field(0, ge=0, le=100)
sent_count_today: int = Field(0, ge=0)