GET
/
v1
/
benchmarks
/
runs
/
{id}
import Runloop from '@runloop/api-client';

const client = new Runloop({
  bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});

const benchmarkRunView = await client.benchmarks.runs.retrieve('id');

console.log(benchmarkRunView.id);
{
  "id": "<string>",
  "benchmark_id": "<string>",
  "name": "<string>",
  "start_time_ms": 123,
  "duration_ms": 123,
  "state": "running",
  "score": 123,
  "metadata": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The BenchmarkRun ID.

Response

200 - application/json

OK

A BenchmarkRunView represents a run of a complete set of Scenarios, organized under a Benchmark.