Skip to main content
GET
/
v1
/
evaluation
/
job
/
{jobId}
/
runs
JavaScript
import Roark from '@roarkanalytics/sdk';

const client = new Roark({
  bearerToken: 'My Bearer Token',
});

const response = await client.evaluation.getJobRuns('jobId');

console.log(response.data);
{
  "data": {
    "pagination": {
      "total": 123,
      "hasMore": true,
      "nextCursor": "<string>"
    },
    "data": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "evaluator": {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "name": "<string>",
          "weight": 123
        },
        "status": "PENDING",
        "score": 0.5,
        "result": "SUCCESS",
        "summary": "<string>",
        "startedAt": "<string>",
        "completedAt": "<string>",
        "metrics": [
          {
            "name": "<string>",
            "valueType": "<string>",
            "numericValue": 123,
            "booleanValue": true,
            "textValue": "<string>",
            "confidence": 0.5,
            "reasoning": "<string>",
            "role": "<string>",
            "createdAt": "<string>"
          }
        ],
        "evidence": [
          {
            "snippetText": "<string>",
            "commentText": "<string>",
            "isPositive": true,
            "createdAt": "<string>"
          }
        ],
        "blockRuns": [
          {
            "blockRunId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "blockDefinitionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "blockName": "<string>",
            "status": "PENDING",
            "result": "PASSED",
            "score": 0.5,
            "reason": "<string>",
            "createdAt": "<string>"
          }
        ]
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

jobId
string
required

Query Parameters

nextCursor
string

Cursor for the next page of items

limit
string

Number of items to return per page

Required string length: 1 - 50
Example:

"10"

Response

Successfully retrieved evaluation job runs

data
object
required

Evaluation job runs response payload

I