API reference · Schema
ServerlessEndpointMetrics
objectstringrequiredAlways `serverless_endpoint_metrics`: the type of this object
One of
serverless_endpoint_metricsendpoint_idstringrequiredID of the endpoint
window_secondsintegerrequiredLength of the window covered, in seconds, ending now
bucket_secondsintegerrequiredWidth of each bucket, in seconds
bucketsarray of objectrequiredBuckets with any activity, oldest first (empty buckets are omitted)
ShowHide 14 fields of
bucketsstartstring (date-time)requiredStart of the bucket
submittedintegerrequiredJobs submitted in the bucket
succeededintegerrequiredJobs that finished as `succeeded` in the bucket
failedintegerrequiredJobs that finished as `failed` in the bucket
timed_outintegerrequiredJobs that finished as `timed_out` in the bucket
canceledintegerrequiredJobs that finished as `canceled` in the bucket
expiredintegerrequiredJobs that finished as `expired` in the bucket
retriedintegerrequiredRetries (after lost workers) of the jobs that finished in the bucket
queue_delay_msobjectrequiredFor jobs that finished in the bucket: time from submission until a worker first took the job
ShowHide 3 fields of
queue_delay_msavgnumber | nullrequiredMean, in milliseconds; null when no job counted
p50number | nullrequiredMedian (p50), in milliseconds; null when no job counted
p95number | nullrequired95th percentile (p95), in milliseconds; null when no job counted
execution_msobjectrequiredFor jobs that finished in the bucket: time their last attempt ran
ShowHide 3 fields of
execution_msavgnumber | nullrequiredMean, in milliseconds; null when no job counted
p50number | nullrequiredMedian (p50), in milliseconds; null when no job counted
p95number | nullrequired95th percentile (p95), in milliseconds; null when no job counted
cold_startsintegerrequiredNew workers that became ready in the bucket
cold_start_msobjectrequiredCold start time of the workers that became ready in the bucket
ShowHide 2 fields of
cold_start_msavgnumber | nullrequiredMean time from the worker being created until it was ready, in milliseconds; null when there was none
maxnumber | nullrequiredLongest time from the worker being created until it was ready, in milliseconds; null when there was none
resumesintegerrequiredPaused workers resumed (fast resume), counted when they took work again
resume_msobjectrequiredResume time of the workers counted in `resumes`
ShowHide 2 fields of
resume_msavgnumber | nullrequiredMean time from the resume request until the worker was ready again, in milliseconds; null when there was none
maxnumber | nullrequiredLongest time from the resume request until the worker was ready again, in milliseconds; null when there was none
{
"object": "serverless_endpoint_metrics",
"endpoint_id": "string",
"window_seconds": 1,
"bucket_seconds": 1,
"buckets": [
{
"start": "2026-01-01T00:00:00.000Z",
"submitted": 1,
"succeeded": 1,
"failed": 1,
"timed_out": 1,
"canceled": 1,
"expired": 1,
"retried": 1,
"queue_delay_ms": {
"avg": 1.5,
"p50": 1.5,
"p95": 1.5
},
"execution_ms": {
"avg": 1.5,
"p50": 1.5,
"p95": 1.5
},
"cold_starts": 1,
"cold_start_ms": {
"avg": 1.5,
"max": 1.5
},
"resumes": 1,
"resume_ms": {
"avg": 1.5,
"max": 1.5
}
}
]
}Used by
- Queue delay, execution time, cold starts and job counts over time
GET /v1/serverless/endpoints/{endpoint_id}/metrics