Skip to Content
OpenPerf

Performance

Get database query details

GET
/api/v1/performance/query

Returns latency trends, calling transactions and sample executions for one database query.

Authorization

cookie
cookiebetter-auth.session_token<token>

Dashboard session cookie

Query Parameters

from*string
Formatdate-time
to*string
Formatdate-time
projectIds?array<string>
description*string
Length1 <= length <= 2000
dbSystem?string
Lengthlength <= 100
Default""
environment?array<string>
buckets?integer
Range10 <= value <= 400
Default80

Response Body

application/json
  1. response
description*string
dbSystem*string
exampleText*string
serverAddress*string
summary*
series*
metrics*
callers*array<>
samples*array<>
Example Request
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
    }
  ]
}