Files
realesrgan-api/app/schemas/health.py
Developer 706e6c431d
All checks were successful
Build and Push Docker Image / build (push) Successful in 8m35s
feat: remove GPU support and simplify to CPU-only architecture
2026-02-19 12:41:13 +01:00

35 lines
781 B
Python

"""Schemas for health check and system information."""
from typing import Optional
from pydantic import BaseModel
class HealthResponse(BaseModel):
"""API health check response."""
status: str
version: str
uptime_seconds: float
message: str
class SystemInfo(BaseModel):
"""System information."""
status: str
version: str
uptime_seconds: float
cpu_usage_percent: float
memory_usage_percent: float
disk_usage_percent: float
execution_providers: list
models_dir_size_mb: float
jobs_queue_length: int
class RequestStats(BaseModel):
"""API request statistics."""
total_requests: int
successful_requests: int
failed_requests: int
average_processing_time_seconds: float
total_images_processed: int