latestOpenAPI 3.1.02026-08-19270462702.4 KB

b92f75fd3b61

analytics

Get Model Metrics

Return 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/analytics/model-metrics

Request body

model_idsstring[] required

Model identifiers to compute metrics for. Accepts training-job UUIDs and base catalog ids.

sincestring date-time nullable

Inclusive start of the rollup window (UTC). Defaults to 24 hours ago, preserving the legacy last-24h behaviour. Drives the page-level date picker on the models / routers surfaces.

untilstring date-time nullable

Exclusive end of the rollup window (UTC). Defaults to now.

Response

Successful Response

metricsobject