import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
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_num_test_cases_labeled": 123,
"num_test_cases_fixed": 123,
"percentage_test_cases_fixed": 123,
"total_time_spent_labeling_sec": 123,
"avg_time_spent_labeling_sec": 123
}import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
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_num_test_cases_labeled": 123,
"num_test_cases_fixed": 123,
"percentage_test_cases_fixed": 123,
"total_time_spent_labeling_sec": 123,
"avg_time_spent_labeling_sec": 123
}Successful Response
The ID of the evaluation.
The ID of the user who annotated the test case.
Total number of test cases labeled.
Number of test cases that were fixed.
Percentage of test cases done by this contributor that were fixed.
Total time spent labeling in seconds.
Average time spent labeling per test case in seconds.