Skip to content

Scores

GET
/api/analytics/scores
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.

days
Days
integer
default: 30
project_id
Any of:
string

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}