analytics
Get Model Metrics
Changed onReturn per-model metrics for the last 24 hours.
Counts, error counts, average latency, and last-inference timestamp are all scoped to the last 24 hours. latest_evaluation is all-time.
Args: request: Batch of model ids to look up. auth: Authentication result carrying the user id and team scope.
Returns: ModelMetricsResponse with an entry for each requested id.
Raises: HTTPException: 503 when the metrics read fails; the cause is logged server-side rather than returned to the caller.
post/v1/analytics/model-metrics
Request
- Base URLhttps://api.pioneer.ai (the document declares no server; this is the origin it was published from)
- Auth
- API key in header X-API-Key
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Successful Response
Changes
- info
endpoint added
- info