SystemMetrics
System performance metrics
Properties
| Property | Type | Required | Description |
|---|---|---|---|
timestamp | string | β Yes | - |
cpu_percent | number | β Yes | - |
memory_percent | number | β Yes | - |
memory_available_gb | number | β Yes | - |
disk_usage_percent | number | β Yes | - |
uptime_seconds | number | β 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.