Get Contributor Metrics
curl --request GET \
--url https://api.egp.scale.com/v4/evaluations/{evaluation_id}/contributor-metrics/{contributor_id}import requests
url = "https://api.egp.scale.com/v4/evaluations/{evaluation_id}/contributor-metrics/{contributor_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.egp.scale.com/v4/evaluations/{evaluation_id}/contributor-metrics/{contributor_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.egp.scale.com/v4/evaluations/{evaluation_id}/contributor-metrics/{contributor_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.egp.scale.com/v4/evaluations/{evaluation_id}/contributor-metrics/{contributor_id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.egp.scale.com/v4/evaluations/{evaluation_id}/contributor-metrics/{contributor_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.egp.scale.com/v4/evaluations/{evaluation_id}/contributor-metrics/{contributor_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"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
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Evaluations
Get Contributor Metrics
GET
/
v4
/
evaluations
/
{evaluation_id}
/
contributor-metrics
/
{contributor_id}
Get Contributor Metrics
curl --request GET \
--url https://api.egp.scale.com/v4/evaluations/{evaluation_id}/contributor-metrics/{contributor_id}import requests
url = "https://api.egp.scale.com/v4/evaluations/{evaluation_id}/contributor-metrics/{contributor_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.egp.scale.com/v4/evaluations/{evaluation_id}/contributor-metrics/{contributor_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.egp.scale.com/v4/evaluations/{evaluation_id}/contributor-metrics/{contributor_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.egp.scale.com/v4/evaluations/{evaluation_id}/contributor-metrics/{contributor_id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.egp.scale.com/v4/evaluations/{evaluation_id}/contributor-metrics/{contributor_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.egp.scale.com/v4/evaluations/{evaluation_id}/contributor-metrics/{contributor_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"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
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Response
ContributorMetricsResponse · object | null
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.

