merge: testing → main (reconcile 2-week divergence)
This commit is contained in:
14
decnet/web/db/models/health.py
Normal file
14
decnet/web/db/models/health.py
Normal file
@@ -0,0 +1,14 @@
|
||||
"""Health-endpoint DTOs."""
|
||||
from typing import Literal, Optional
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class ComponentHealth(BaseModel):
|
||||
status: Literal["ok", "failing"]
|
||||
detail: Optional[str] = None
|
||||
|
||||
|
||||
class HealthResponse(BaseModel):
|
||||
status: Literal["healthy", "degraded", "unhealthy"]
|
||||
components: dict[str, ComponentHealth]
|
||||
Reference in New Issue
Block a user