MAESTRO: add health endpoint

This commit is contained in:
Mariusz Banach
2026-02-18 04:18:51 +01:00
parent 4d1a5299bf
commit 2ff3b64b26
4 changed files with 95 additions and 1 deletions

View 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"]