GET
/
v4
/
evaluations
/
{evaluation_id}
/
contributor-metrics
/
{contributor_id}
import SGPClient from 'sgp';

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

const contributorMetrics = await client.evaluations.contributorMetrics.retrieve(
  'evaluation_id',
  'contributor_id',
);

console.log(contributorMetrics.annotated_by_user_id);
{
  "evaluation_id": "<string>",
  "annotated_by_user_id": "<string>",
  "total_time_spent_labeling_sec": 123,
  "avg_time_spent_labeling_sec": 123,
  "total_num_test_cases_labeled": 123,
  "num_test_cases_fixed": 123,
  "percentage_test_cases_fixed": 123
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string

Path Parameters

evaluation_id
string
required
contributor_id
string
required

Response

200
application/json

Successful Response

The response is of type object.