List eval jobs
const url = 'http://localhost:8080/api/v1/projects/example/eval-jobs?status=queued&kind=rule&limit=50';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/eval-jobs?status=queued&kind=rule&limit=50' \ --cookie cetra_session=<cetra_session>Any project member can read. Newest first. Jobs are kept 7 days after they finish.
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”Jobs queued by this online rule.
Jobs of this evaluator.
Where a job is in its life. Stored as eval_jobs.status.
Jobs with this status.
Where a job came from. Stored as eval_jobs.kind.
Jobs of this kind.
Page size. Default 50, accepted range 1–1000.
Spec 09 § Conventions.
Maximum number of jobs to return (1–1000, default 50).
Opaque cursor from a previous page.
Responses
Section titled “Responses”One page of eval jobs.
One page of results. next_cursor is null when there is no next page.
object
Items in this page.
An eval job. Spec 09 § Evaluation & alerts.
object
Attempts made so far.
Cost of the judge call, in USD.
Creation time. JSON is RFC 3339.
The failure text, without payload content or secrets.
What the caller should do with the failure. Omitted unless the job failed or was requeued.
The evaluator the job runs.
Time the job finished. Omitted while it is queued or running.
Job id.
Input tokens of the judge call.
The judge trace of the run, 32 lowercase hex digits.
Where the job came from.
Latency of the judge call, in milliseconds.
Earliest time the job may run. JSON is RFC 3339.
Output tokens of the judge call.
The rule that queued the job. Omitted for a manual run.
The score the run wrote.
Target span, 16 lowercase hex digits. Omitted for a trace target.
Where the job is in its life.
Target trace, 32 lowercase hex digits.
Opaque cursor for the next page, or null when this is the last page.
Example
{ "data": [ { "error_class": "retryable", "kind": "rule", "status": "queued" } ]}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"}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"}