Files
mgeeky-decode-spam-headers/backend/app/schemas/health.py
2026-02-18 04:18:51 +01:00

18 lines
368 B
Python

from __future__ import annotations
from typing import Literal
from pydantic import BaseModel, ConfigDict, Field
class HealthResponse(BaseModel):
model_config = ConfigDict(populate_by_name=True)
status: Literal["up", "degraded", "down"]
version: str
uptime: float
scanner_count: int = Field(alias="scannerCount")
__all__ = ["HealthResponse"]