"""Response models for the health endpoint.""" from pydantic import BaseModel, Field class HealthResponse(BaseModel): """Liveness report, including whether the database answered.""" status: str = Field(description="'ok' when the database responded, else 'degraded'") app: str = Field(description="Configured application name") database: str = Field(description="'ok' or 'unavailable'") database_target: str = Field(description="Connection target with the password masked")