Query analytics, with optional grouping, windowing, filtering.
GET/observability/v1/analytics
Query analytics, with optional grouping, windowing, filtering.
Request
Query Parameters
format Format
Possible values: [legacy
, agenta
]
Default value: agenta
focus any
oldest any
newest any
window any
filtering any
timeRange any
app_id any
environment any
variant any
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- LegacyAnalyticsResponse
- AnalyticsResponse
Array [
]
- MOD1
Array [
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
]
anyOf
count
duration
cost
tokens
count
duration
cost
tokens
total_count Total Count (integer)required
failure_rate Failure Rate (number)required
total_cost Total Cost (number)required
avg_cost Avg Cost (number)required
avg_latency Avg Latency (number)required
total_tokens Total Tokens (integer)required
avg_tokens Avg Tokens (number)required
data
object[]
required
timestamp date-timerequired
success_count Success Count (integer)required
failure_count Failure Count (integer)required
cost Cost (number)required
latency Latency (number)required
total_tokens Total Tokens (integer)required
version Version (string)required
countobject
anyOf
integer
buckets
object[]
required
timestamp date-timerequired
window Window (integer)required
total
object
required
countobject
anyOf
integer
durationobject
anyOf
number
costobject
anyOf
number
tokensobject
anyOf
integer
error
object
required
countobject
anyOf
integer
durationobject
anyOf
number
costobject
anyOf
number
tokensobject
anyOf
integer
{}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...