v5

latestOpenAPI 3.1.02026-08-025631,1012.8 MB
Analytics
Analytics - Namespaces

Get Namespace Errors

Batch error/failure counts for every collection & cluster in the namespace.

Returns one entry per resource that has at least one error/failure in the window, in a single response — replacing the per-resource /analytics/{collections,clusters}/{id}/failures fan-out (the Studio Monitoring "Errors & Health" N+1, which fired ~13+ calls per visit, most returning zero). Collection errors come from the ClickHouse extraction_events warehouse; cluster failures from Mongo clustering_results. An empty collections/clusters list means that resource type is healthy for the window.

Recommended workflow: call this once for the aggregate health view, then call the per-resource /failures endpoint lazily ONLY for the (usually few) resources reporting errors to get the full error-type breakdown.

Example:

curl -X GET "https://api.mixpeek.com/v1/analytics/namespaces/errors?hours=24" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Namespace: your-namespace"
get/v1/analytics/namespaces/errors

Query parameters

hoursinteger

Hours of history to analyze

Hours of history to analyze

Response

Successful Response

namespace_idstring required

Namespace ID analyzed

hoursinteger required

Hours of history analyzed

total_errorsinteger required

Total errors + failures across all resources in the window