Performance
Get database query details
GET
Returns latency trends, calling transactions and sample executions for one database query.
cookiecookie
better-auth.session_token<token>Dashboard session cookie
from*stringFormat
date-timeto*stringFormat
date-timeprojectIds?array<string>description*stringLength
1 <= length <= 2000dbSystem?stringLength
length <= 100Default
""environment?array<string>buckets?integerRange
10 <= value <= 400Default
80application/json- response
description*stringdbSystem*stringexampleText*stringserverAddress*stringsummary*series*metrics*callers*array<>samples*array<>curl -X GET 'https://api.example.com/api/v1/performance/query?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z&description=string'Example Response
{
"description": "string",
"dbSystem": "string",
"exampleText": "string",
"serverAddress": "string",
"summary": {
"count": 0,
"perMinute": 0,
"avg": 0,
"p95": 0,
"failureRate": 0,
"timeSpent": 0,
"timeSpentShare": 0,
"perTransaction": 0
},
"series": {
"bucketSeconds": 0,
"buckets": [
{
"timestamp": "2019-08-24T14:15:22Z",
"count": 0,
"avg": 0,
"p95": 0,
"failed": 0,
"status2xx": 0,
"status3xx": 0,
"status4xx": 0,
"status5xx": 0
}
]
},
"metrics": {
"throughput": {
"unit": "count",
"value": 0,
"previous": 0,
"health": "normal",
"buckets": [
{
"timestamp": "2019-08-24T14:15:22Z",
"value": 0,
"previous": 0,
"health": "normal"
}
]
},
"duration": {
"unit": "count",
"value": 0,
"previous": 0,
"health": "normal",
"buckets": [
{
"timestamp": "2019-08-24T14:15:22Z",
"value": 0,
"previous": 0,
"health": "normal"
}
]
},
"failures": {
"unit": "count",
"value": 0,
"previous": 0,
"health": "normal",
"buckets": [
{
"timestamp": "2019-08-24T14:15:22Z",
"value": 0,
"previous": 0,
"health": "normal"
}
]
}
},
"callers": [
{
"transaction": "string",
"op": "string",
"platform": "server",
"traces": 0,
"calls": 0,
"perTransaction": 0,
"timeSpent": 0
}
],
"samples": [
{
"projectId": "string",
"traceId": "string",
"spanId": "string",
"transaction": "string",
"transactionOp": "string",
"startTime": "2019-08-24T14:15:22Z",
"durationMs": 0,
"failed": true
}
]
}