mirror of
https://github.com/mgeeky/decode-spam-headers.git
synced 2026-02-22 13:33:30 +01:00
18 lines
368 B
Python
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"]
|