OpenapiMonitoring
Get performance statistics
Get API performance statistics (general aggregate metrics).
This endpoint provides high-level performance statistics for the API, distinct from the detailed Prometheus metrics available at /api/metrics.
Args: rotator: ProxyWhirl dependency
Returns: Performance statistics response
Note: This endpoint provides aggregate metrics. For detailed metrics, use: - /api/metrics - Prometheus format metrics - /api/metrics/retries - Retry-specific metrics
Response Body
application/json
curl -X GET "https://example.com/api/stats"{
"data": {
"message": "Operation completed successfully"
},
"meta": {
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-10-27T12:00:00Z",
"version": "1.0.0"
},
"status": "success"
}