Get cache performance metrics.
Analyzes cache effectiveness including:
Use Cases:
Example:
curl -X GET "https://api.mixpeek.com/v1/analytics/retrievers/ret_abc123/cache-performance?hours=168" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Namespace: your-namespace"
REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.
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'
Hours of history
1 <= x <= 720Successful Response
Cache performance metrics.
Retriever identifier
Time range
Overall cache hit rate
0 <= x <= 1Total cache hits
Total cache misses
Average latency on cache hit
Average latency on cache miss
Hourly cache performance