import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const evaluationMetrics = await client.evaluations.evaluationMetrics.retrieve('evaluation_id');
console.log(evaluationMetrics.evaluation_id);{
"evaluation_id": "<string>",
"num_total_test_cases": 123,
"num_test_cases_labeled": 123,
"num_test_cases_flagged": 123,
"num_test_cases_fixed": 123,
"percentage_test_cases_fixed": 123,
"num_test_cases_unaudited": 123,
"percentage_test_cases_unaudited": 123,
"num_test_cases_approved": 123,
"percentage_test_cases_approved": 123,
"avg_labeling_time_per_test_case": 123,
"avg_num_test_cases_labeled_per_day": 123
}import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const evaluationMetrics = await client.evaluations.evaluationMetrics.retrieve('evaluation_id');
console.log(evaluationMetrics.evaluation_id);{
"evaluation_id": "<string>",
"num_total_test_cases": 123,
"num_test_cases_labeled": 123,
"num_test_cases_flagged": 123,
"num_test_cases_fixed": 123,
"percentage_test_cases_fixed": 123,
"num_test_cases_unaudited": 123,
"percentage_test_cases_unaudited": 123,
"num_test_cases_approved": 123,
"percentage_test_cases_approved": 123,
"avg_labeling_time_per_test_case": 123,
"avg_num_test_cases_labeled_per_day": 123
}Successful Response
The ID of the evaluation.
Total number of test cases.
Number of test cases labeled.
Number of test cases flagged.
Number of test cases fixed.
Percentage of test cases that were fixed.
Number of test cases unaudited.
Percentage of test cases that were unaudited.
Number of test cases approved.
Percentage of test cases that were approved.
Average time spent labeling per test case in seconds.
Average number of test cases labeled per day.