mirror of
https://github.com/mgeeky/decode-spam-headers.git
synced 2026-02-22 05:23:31 +01:00
MAESTRO: add health endpoint
This commit is contained in:
17
backend/app/schemas/health.py
Normal file
17
backend/app/schemas/health.py
Normal file
@@ -0,0 +1,17 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user