Scores
GET
/api/analytics/scores
const url = 'http://localhost:8080/api/analytics/scores?days=30';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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/analytics/scores?days=30' \ --header 'Authorization: Bearer <token>'Score trends per test kind and per metric, plus per-test score history.
Uses finished runs that carry a score (test_runs.score) or metric scores
(test_runs.scores). Daily series are zero-filled across the window (avg is null
on days without data). threshold is the one the latest run was judged against.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}