Get Slow Queries
GET
/v1/databases/{id}/logs/slow-queriesList all logged slow queries for a database.
Request
Path Params
id
integer
required
Header Params
Accept
string
required
Example:
application/json
Content-Type
string
required
Example:
application/json
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
array[string]
required
links
object
required
first
string
required
last
string
required
prev
null
required
next
null
required
meta
object
required
current_page
integer
required
from
null
required
last_page
integer
required
links
array [object {3}]
required
path
string
required
per_page
integer
required
to
null
required
total
integer
required
Example
{
"data": [
{
"id": 134663,
"type": "mysql_slowlog",
"attributes": {
"date": "string",
"duration": 3,
"schema": "string",
"info": "string"
}
}
],
"meta": {
"current_page": 1,
"from": null,
"last_page": 1,
"links": [
{
"url": "https://pastel-tattler.info",
"label": "consectetur do aute voluptate",
"active": true
}
],
"path": "consequat eu enim velit",
"per_page": 15,
"to": null,
"total": 1
}
}
Last modified: 6 months ago