Runs API
Generated from servtuner commit 5b46cdad0e5c.
GET /runs
Section titled “GET /runs”Lists and filters runs.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
experiment |
query | string or null |
No | |
target_type |
query | string or null |
No | |
status |
query | RunStatus or null |
No | |
label |
query | string or null |
No | key=value |
limit |
query | integer |
No | ≥ 1; ≤ 500 Default: 100. |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | array of RunResource |
422 |
Validation Error | HTTPValidationError |
POST /runs
Section titled “POST /runs”Creates and launches a run from a RunSpec.
Request body: RunSpec (application/json)
| Status | Meaning | Body |
|---|---|---|
201 |
Successful Response | RunResource |
DELETE /runs/{run_id}
Section titled “DELETE /runs/{run_id}”Delete a run, its bundle and the analyses that included it; only ever a user’s request . 409 with the blocks while something needs it.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
run_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | DeleteImpactResource |
422 |
Validation Error | HTTPValidationError |
GET /runs/{run_id}
Section titled “GET /runs/{run_id}”Returns one run.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
run_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | RunDetail |
422 |
Validation Error | HTTPValidationError |
GET /runs/{run_id}/analysis
Section titled “GET /runs/{run_id}/analysis”Returns the run analysis.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
run_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | AnalysisResult |
422 |
Validation Error | HTTPValidationError |
POST /runs/{run_id}/cancel
Section titled “POST /runs/{run_id}/cancel”Stop a run; a finished run is returned unchanged.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
run_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | RunResource |
422 |
Validation Error | HTTPValidationError |
GET /runs/{run_id}/capacity
Section titled “GET /runs/{run_id}/capacity”Returns the capacity table.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
run_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | CapacityTable |
422 |
Validation Error | HTTPValidationError |
GET /runs/{run_id}/charts/client_timeseries
Section titled “GET /runs/{run_id}/charts/client_timeseries”Returns chart-ready client time series.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
run_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | ClientTimeseries |
422 |
Validation Error | HTTPValidationError |
GET /runs/{run_id}/charts/histograms
Section titled “GET /runs/{run_id}/charts/histograms”Returns chart-ready latency histograms.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
run_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | LatencyHistograms |
422 |
Validation Error | HTTPValidationError |
GET /runs/{run_id}/charts/inflight
Section titled “GET /runs/{run_id}/charts/inflight”Returns requests in flight over time.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
run_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | InFlightChart |
422 |
Validation Error | HTTPValidationError |
GET /runs/{run_id}/charts/server
Section titled “GET /runs/{run_id}/charts/server”Returns chart-ready server series.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
run_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | ServerChart |
422 |
Validation Error | HTTPValidationError |
POST /runs/{run_id}/confirm-applied
Section titled “POST /runs/{run_id}/confirm-applied”The change this follow-up run tests is applied: launch it.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
run_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | RunResource |
422 |
Validation Error | HTTPValidationError |
GET /runs/{run_id}/datasheet
Section titled “GET /runs/{run_id}/datasheet”bench’s copy of the price book’s uploaded datasheet for its run: run token only. 404 when the price book has no upload.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
run_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | None |
422 |
Validation Error | HTTPValidationError |
GET /runs/{run_id}/delete-impact
Section titled “GET /runs/{run_id}/delete-impact”What deleting the run would remove, and what blocks it; deletes nothing.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
run_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | DeleteImpactResource |
422 |
Validation Error | HTTPValidationError |
GET /runs/{run_id}/environment
Section titled “GET /runs/{run_id}/environment”What ran the benchmark: bench, engine, transport per hop, captured knobs.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
run_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | Environment |
422 |
Validation Error | HTTPValidationError |
GET /runs/{run_id}/events
Section titled “GET /runs/{run_id}/events”Returns the status timeline.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
run_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | array of Event |
422 |
Validation Error | HTTPValidationError |
POST /runs/{run_id}/events
Section titled “POST /runs/{run_id}/events”Accepts a status event from bench. Requires the run token.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
run_id |
path | string |
Yes |
Request body: Event (application/json)
| Status | Meaning | Body |
|---|---|---|
202 |
Successful Response | any |
422 |
Validation Error | HTTPValidationError |
GET /runs/{run_id}/files
Section titled “GET /runs/{run_id}/files”Lists the files in the run bundle.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
run_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | array of BundleFileResource |
422 |
Validation Error | HTTPValidationError |
GET /runs/{run_id}/files/{path}
Section titled “GET /runs/{run_id}/files/{path}”A bundle file: proxied in chunks, or a redirect to a presigned URL.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
run_id |
path | string |
Yes | |
path |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | None |
307 |
Redirect to a presigned download (storage.s3.presign) | None |
422 |
Validation Error | HTTPValidationError |
POST /runs/{run_id}/followup
Section titled “POST /runs/{run_id}/followup”Creates a follow-up run that tests a recommendation.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
run_id |
path | string |
Yes |
Request body: FollowupCreate (application/json)
| Status | Meaning | Body |
|---|---|---|
201 |
Successful Response | FollowupResource |
422 |
Validation Error | HTTPValidationError |
GET /runs/{run_id}/recommendations
Section titled “GET /runs/{run_id}/recommendations”Returns the run recommendations.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
run_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | Recommendations |
422 |
Validation Error | HTTPValidationError |
GET /runs/{run_id}/snapshot
Section titled “GET /runs/{run_id}/snapshot”The target as captured before (pre) or after (post) the load.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
run_id |
path | string |
Yes | |
phase |
query | string |
No | pattern ^(pre|post)$ Default: "pre". |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | TargetSnapshot |
422 |
Validation Error | HTTPValidationError |