Skip to Content
OpenPerf

Performance

List database queries

GET
/api/v1/performance/queries

Returns a paginated list of normalized database queries ranked by duration or call volume.

Authorization

cookie
cookiebetter-auth.session_token<token>

Dashboard session cookie

Query Parameters

from*string
Formatdate-time
to*string
Formatdate-time
projectIds?array<string>
environment?array<string>
transaction?string
Length1 <= length <= 500
transactionOp?string
Length1 <= length <= 200
transactionPlatform?string
Value in"server""browser""mobile""unknown"
sort?string
Default"timeSpent"
Value in"timeSpent""count""avg""p95""failureRate"
order?string
Default"desc"
Value in"asc""desc"
limit?integer
Range1 <= value <= 200
Default50
offset?integer
Range0 <= value <= 100000
Default0
statement?string
Lengthlength <= 500

Response Body

application/json
  1. response
data*array<>
total*integer
Example Request
curl -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
}