INNER CODE UNIT · Python

_get_uptime_seconds

SHAdd0WTAka/Zen-Ai-Pentest · api/main.py:824

def _get_uptime_seconds() -> int:
    """Berechne die Uptime der API in Sekunden."""
    return int(time.time() - _API_START_TIME)


def _get_timestamp() -> str:
    """Gib aktuellen ISO-Timestamp zurück."""
    return datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")


@app.get("/health", tags=["Health"], summary="Einfacher Health Check (Root)")
async def root_health_check():
    """
    Einfacher Health Check für Load Balancer und Docker.

    **Alternative:** `GET /api/v1/health` (empfohlen)
    """
    return {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…