Skip to main content
GET
/
v1
/
analytics
/
performance
/
engine
/
bottlenecks
Analyze Bottlenecks
curl --request GET \
  --url https://api.mixpeek.com/v1/analytics/performance/engine/bottlenecks
{
  "time_range": {
    "start": "2023-11-07T05:31:56Z",
    "end": "2023-11-07T05:31:56Z"
  },
  "bottlenecks": [
    {
      "stage_name": "<string>",
      "component": "<string>",
      "execution_count": 123,
      "total_time_ms": 123,
      "avg_time_ms": 123,
      "pct_of_total": 123,
      "rank": 123
    }
  ],
  "total_time_ms": 123
}

Headers

Authorization
string

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 YOUR_API_KEY"

"Bearer YOUR_STRIPE_API_KEY"

X-Namespace
string

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 bottlenecks to return

Required range: 1 <= x <= 50

Response

Successful Response

Response for bottleneck analysis.

time_range
TimeRange · object
required

Time range of the analysis

bottlenecks
BottleneckAnalysis · object[]
required

Ranked list of bottlenecks

total_time_ms
number
required

Total execution time across all components