Performance
List database queries
GET
Returns a paginated list of normalized database queries ranked by duration or call volume.
cookiecookie
better-auth.session_token<token>Dashboard session cookie
from*stringFormat
date-timeto*stringFormat
date-timeprojectIds?array<string>environment?array<string>transaction?stringLength
1 <= length <= 500transactionOp?stringLength
1 <= length <= 200transactionPlatform?stringValue in
"server""browser""mobile""unknown"sort?stringDefault
"timeSpent"Value in
"timeSpent""count""avg""p95""failureRate"order?stringDefault
"desc"Value in
"asc""desc"limit?integerRange
1 <= value <= 200Default
50offset?integerRange
0 <= value <= 100000Default
0statement?stringLength
length <= 500application/json- response
data*array<>total*integercurl -X GET 'https://api.example.com/api/v1/performance/queries?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z'Example Response
{
"data": [
{
"count": 0,
"perMinute": 0,
"avg": 0,
"p95": 0,
"failureRate": 0,
"timeSpent": 0,
"timeSpentShare": 0,
"perTransaction": 0,
"description": "string",
"dbSystem": "string"
}
],
"total": 0
}