INNER CODE UNIT · Python

root_health_live

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

async def root_health_live():
    """
    Kubernetes Liveness Probe.

    **Alternative:** `GET /api/v1/health/live` (empfohlen)
    """
    return {
        "alive": True,
        "timestamp": _get_timestamp(),
        "uptime_seconds": _get_uptime_seconds(),
    }


@app.get("/info", tags=["Health"], summary="API Information (Root)")
async def root_api_info():
    """
    API Information.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…