Skip to content

[WIP] Get Labeler Working Duration and Efficiency

GEThttps://${domain}/rosetta-open/statistics/effciency

We will provide a POST API for calculating labeler working duration and efficiency in a Campaign on a specific day.

TIP

efficiency = workingDuration /total annotation instance.

query params

*campaignIdstring Defaults to a3f8b6e4-9c1d-4d8a-93b2-7f7e8f3a1d5e
Helix Campaign ID
*aliceNamestring Defaults to 1234567890abcdef
Helix alice Name
*datestring Defaults to 2025-03-13
The specific date in format of YYYY-MM-DD, e.g: 2025-03-13 .If the value is empty, the total date is calculated.
Examples
shell
curl https://${domain}/rosetta-open/statistics/effciency?campaignId=a3f8b6e4-9c1d-4d8a-93b2-7f7e8f3a1d5e&aliceName=1234567890abcdef&date=2025-03-13 \
 -X GET \
 -H 'Content-Type: application/json' \
 -H 'X-STARDUST-KEY: <X-STARDUST-KEY>' \
 -H 'X-TS: <X-TS>' \
 -H 'X-SIGN: <X-SIGN>'

responses

2000
{
"code": 2000,
"message": "Success",
"data": {
"workingDuration": 1800,
"efficiency": 120,
"unit": "seconds"
},
"date": "2025-03-13 20:00:00",
"requestId": "7610aa38c0fc409d98c827a879d9cae5",
"success": true
}
5000
{
"code": 5000,
"data": null,
"message": "Service hiccuped, please try again later.",
"date": "2025-03-13 20:00:00",
"requestId": "864b70706a7349ea83e177a49800464f",
"success": false
}
51008
{
"code": 51008,
"data": null,
"message": "Campaign not exists.",
"date": "2025-03-13 20:00:00",
"requestId": "864b70706a7349ea83e177a49800464f",
"success": false
}
54001
{
"code": 54001,
"data": null,
"message": "aliceName is not valid or does not exist.",
"date": "2025-03-13 20:00:00",
"requestId": "864b70706a7349ea83e177a49800464f",
"success": false
}
54002
{
"code": 54002,
"data": null,
"message": "Invalid date format or date out of range.",
"date": "2025-03-13 20:00:00",
"requestId": "864b70706a7349ea83e177a49800464f",
"success": false
}