Schema Registry
SystemMetrics

SystemMetrics

System performance metrics

Properties

PropertyTypeRequiredDescription
timestampstringβœ… Yes-
cpu_percentnumberβœ… Yes-
memory_percentnumberβœ… Yes-
memory_available_gbnumberβœ… Yes-
disk_usage_percentnumberβœ… Yes-
uptime_secondsnumberβœ… Yes-

Example

{
  "timestamp": "example",
  "cpu_percent": 0,
  "memory_percent": 0,
  "memory_available_gb": 0,
  "disk_usage_percent": 0,
  "uptime_seconds": 0
}

Used In

Not used in any documented endpoints.

Code Examples

TypeScript

interface SystemMetrics {
  timestamp: string;
  cpu_percent: number;
  memory_percent: number;
  memory_available_gb: number;
  disk_usage_percent: number;
  uptime_seconds: number;
}
 
// Usage example
const data: SystemMetrics = {
  "timestamp": "example",
  "cpu_percent": 0,
  "memory_percent": 0,
  "memory_available_gb": 0,
  "disk_usage_percent": 0,
  "uptime_seconds": 0
};

Python

from data_layer.schemas import SystemMetrics
 
# Create instance
data = SystemMetrics(
    # Add your field values here
)

cURL

curl -X POST "https://altsportsleagues-backend-2qcdjegnaa-uc.a.run.app/api/endpoint" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{   "timestamp": "example",   "cpu_percent": 0,   "memory_percent": 0,   "memory_available_gb": 0,   "disk_usage_percent": 0,   "uptime_seconds": 0 }'

Validation Rules

Required Fields: timestamp, cpu_percent, memory_percent, memory_available_gb, disk_usage_percent, uptime_seconds

Additional Information

  • Type: object
  • Source: Generated from Pydantic models in data_layer/schemas/
  • Auto-validated: All fields are validated by FastAPI

This documentation is auto-generated from the OpenAPI specification.

Platform

Documentation

Community

Support

partnership@altsportsdata.comdev@altsportsleagues.ai

2025 Β© AltSportsLeagues.ai. Powered by AI-driven sports business intelligence.

πŸ€– AI-Enhancedβ€’πŸ“Š Data-Drivenβ€’βš‘ Real-Time