Skip to main content

Distribution queries

Aggregated snapshots of cache metrics over a time window. Every example below posts JSON to:
with Authorization: Bearer <your_api_key> and Content-Type: application/json. To keep the snippets short, only the JSON body is shown; the wrapper is identical to the Overview Quick Start.
The examples below pin the model side with {"fieldName": "virtualModelName", "operator": "IS_NULL", "value": true}. Flip to false (and swap groupBy: ["modelName"] for groupBy: ["virtualModel"]) for virtual-model-only cache stats.
Sum of cacheReadInputTokens per namespace. Surfaces which buckets do the most work:
p50, p90, and p99 lookup latency grouped by cache type:
Sum of cost savings per underlying model:
Restrict to a specific cache type and break savings down by model:
Use STRING_STARTS_WITH on cacheNamespace, handy when prod and staging share a cache type:
Group by cacheLookupStatus to see hits vs misses per cache type:
Compare cache-creation tokens to cache-read tokens per namespace: