Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.

Path Parameters

deployment_id
string
required

Body

application/json

Time-range request for trainer deployment metrics.

end_epoch_millis
integer | null

Epoch millis to end fetching metrics.

start_epoch_millis
integer | null

Epoch millis to start fetching metrics.

step_seconds
integer | null

Resolution of the returned series, in seconds. When omitted, a step is derived from the time range so large windows return fewer points.

time_divisor_seconds
integer | null

Unit of time for request-volume metrics, in seconds (e.g. 60 for requests/minute). Defaults to per-second.

Response

200 - application/json

Response for POST /v1/loops/deployments/<id>/metrics.

deployment_id
string
required

The trainer deployment ID.

metrics
LoopsDeploymentMetricsV1 · object
required

Metrics for the deployment.