Skip to main content
GET
Read a deployment's named metrics over a window

Authorizations

Authorization
string
header
required

A workspace-scoped Cloud JWT.

Path Parameters

id
string
required

Query Parameters

range
string[]

1h, 24h or 7d. The default, 24h, applies when start and end are absent. Never sent with start or end.

start
string[]

Window start, RFC 3339 in UTC, such as 2026-11-15T16:00:00Z. Sent with end, never with range.

end
string[]

Window end, RFC 3339 in UTC. Sent with start, never with range; an end after now is cut to now.

step
string[]

Bucket width in seconds: 60, 300, 900, 3600 or 21600. Absent, the smallest step that gives at most 60 buckets over the window as sent.

metrics
string[]

A comma-separated list from jobs, failure_categories, expired_at_worker_maximum, submissions, job_duration, worker_maximum_waits and job_time_split. Absent, those seven; a metric added later comes back only when named.

cold_start is also accepted, outside those seven and only on its own: named with another metric it answers 400. It answers the cold start row alone, in seconds, as one summary item equal to the cold_start item of job_duration, and with include=series alone only its unit. It waits up to 10 seconds for the metrics store, where every other metric waits 1.8 seconds, and is listed unavailable as datadog_slow if the store has not answered by then. The call spends one request of the workspace's allowance, and compare does not apply to it.

include
string[]

A comma-separated list from summary and series. Absent, both.

compare
string[]

previous adds each count metric's previous total, over the window of the same length just before; none leaves it out. Absent, previous.

Response

OK

The metrics of a deployment, as one of two bodies told apart by enabled: the whole answer when it is true, and enabled false alone when the workspace's kill switch is on.

enabled
enum<boolean>
required
Available options:
false