GET
/
v1
/
benchmarks
/
{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
});

async function main() {
  const benchmarkView = await client.benchmarks.retrieve('id');

  console.log(benchmarkView.id);
}

main();
{
  "id": "<string>",
  "name": "<string>",
  "scenarioIds": [
    "<string>"
  ],
  "metadata": {},
  "is_public": true
}

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 Benchmark ID.

Response

200 - application/json
OK

A BenchmarkDefinitionView represents a grouped set of Scenarios that together form a Benchmark.