Skip to main content
GET
/
v1
/
analytics
/
performance
/
engine
/
slow-operations
Get Slowest Operations
curl --request GET \
  --url https://api.mixpeek.com/v1/analytics/performance/engine/slow-operations \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Namespace: <x-namespace>'
{
  "time_range": {
    "start": "2023-11-07T05:31:56Z",
    "end": "2023-11-07T05:31:56Z"
  },
  "operations": [
    {
      "timestamp": "2023-11-07T05:31:56Z",
      "stage_name": "<string>",
      "component": "<string>",
      "latency_ms": 123,
      "metadata": {}
    }
  ],
  "threshold_ms": 123
}

Authorizations

Authorization
string
header
required

Bearer token authentication using your API key. Format: 'Bearer your_api_key'. To get an API key, create an account at mixpeek.com/start and generate a key in your account settings.

Headers

Authorization
string
required

REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.

Examples:

"Bearer sk_live_abc123def456"

"Bearer sk_test_xyz789"

X-Namespace
string
required

REQUIRED: Namespace identifier for scoping this request. All resources (collections, buckets, taxonomies, etc.) are scoped to a namespace. You can provide either the namespace name or namespace ID. Format: ns_xxxxxxxxxxxxx (ID) or a custom name like 'my-namespace'

Examples:

"ns_abc123def456"

"production"

"my-namespace"

Query Parameters

hours
integer
default:24

Hours of history

Required range: 1 <= x <= 168
limit
integer
default:10

Number of operations to return

Required range: 1 <= x <= 100
threshold_ms
number
default:1000

Only show operations slower than this (ms)

Required range: x >= 0

Response

Successful Response

Response for slowest operations query.

time_range
object
required

Time range of the query

operations
SlowOperation · object[]
required

List of slowest operations

threshold_ms
number
required

Latency threshold used for filtering