Get evaluator stats
const url = 'http://localhost:8080/api/v1/projects/example/evaluators/stats';const options = {method: 'GET', headers: {cookie: 'cetra_session=<cetra_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/api/v1/projects/example/evaluators/stats \ --cookie cetra_session=<cetra_session>Any project member can read. Jobs, costs, latencies and scores cover the last 7 UTC days (finished jobs are kept 7 days). experiments_with_score lists experiments that have a score named like the evaluator’s output score in the last 30 days (D-I-48). Not cached.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Project UUID, URL-encoded org-slug/project-slug, or current.
Query Parameters
Section titled “Query Parameters”Comma-separated evaluator ids, 1 to 50. Default: every evaluator of the project.
Responses
Section titled “Responses”One entry per evaluator.
GET /api/v1/projects/{project}/evaluators/stats response (D-I-48).
object
One entry per evaluator, ordered by name then id. Evaluators without jobs or scores are included with zeros.
The stats of one evaluator (D-I-48).
object
The evaluator.
Experiments with a score named like the evaluator’s output score in the last 30 days.
object
The five with the latest score, newest first.
An experiment listed in experiments_with_score.
object
The experiment.
When the experiment last got such a score. JSON is RFC 3339.
The experiment’s name.
Experiments with such a score in the last 30 days, that still exist and are visible.
Its finished jobs in the window.
object
Average cost per job that has a cost, USD. Omitted when no job has a cost.
Judge cost of the jobs in the window, USD. 0 when no job has a cost.
Done jobs.
Failed jobs.
Median latency of the done jobs, milliseconds (nearest rank). Omitted when none.
95th percentile latency of the done jobs, milliseconds (nearest rank). Omitted when none.
Finished jobs per day, seven points, oldest first.
One bucket of a time series.
Spec 05 § Dashboard queries, spec 06 (score summaries).
object
Bucket start, nanoseconds since the Unix epoch. JSON is RFC 3339.
Bucket value. Omitted when the bucket has no data.
Skipped jobs, including ones whose target trace was deleted.
Its scores in the window.
object
Mean of the numeric values. Numeric outputs only. Omitted when there is no numeric value.
Live scores in the window, of any type.
Daily average (numeric) or pass rate (boolean), seven points, oldest first. A day without a
value has no value.
One bucket of a time series.
Spec 05 § Dashboard queries, spec 06 (score summaries).
object
Bucket start, nanoseconds since the Unix epoch. JSON is RFC 3339.
Bucket value. Omitted when the bucket has no data.
The output type of the evaluator.
Share of true values, 0 to 1. Boolean outputs only. Omitted when there is no value.
The most frequent label. Categorical outputs only. Omitted when there is none.
object
Scores with the label in the window.
The label.
The seven UTC days the figures cover.
object
Window start. JSON is RFC 3339.
Window end, exclusive. JSON is RFC 3339.
Example
{ "data": [ { "scores": { "data_type": "numeric" } } ]}The request is malformed or a filter is invalid.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}No credentials, or the credentials are invalid.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The credentials do not allow this operation, or the organization’s plan does not include it (code plan_required).
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The resource does not exist.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The query took longer than its time limit, needed more memory or temporary disk space than allowed, a filter deletion matched more than 100,000 traces, or the owner cannot be that user (code owner_not_allowed).
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}Too many requests.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The server is busy or a dependency is unavailable. Retry later.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}