Traffic
Per-URL request counts, HTTP status distribution, and cache hit and miss ratios.
Cache Usage
https://app.contentstack.com/analytics/v2/hit-miss-ratioThe Cache Usage request counts cache hits and misses, so you can see how much of your traffic the cache absorbs. A hit is a response served from cache; a miss is one that had to be read from the database.
Each row carries status, either HIT or MISS; type, the service, such as cdn; count, the number of responses; and date, the day they occurred.
Pass cache to restrict the result to HIT, to MISS, or to all.
{
"jobId": "job_7******a-c**f-4**9-9**0-c**********6",
"paginated": false
}Status Code
https://app.contentstack.com/analytics/v2/http-statusesThe Status Code request counts API requests by the HTTP status they returned, such as 200, 201, 400 or 404, so you can watch error rates alongside volume.
Each row carries status, the HTTP status as a string; type, the service that returned it, such as cma; count, how many requests ended that way; and date, the day they were made.
Pass httpStatusCode to narrow the result to a single status instead of all of them.
{
"jobId": "job_7******a-c**f-4**9-9**0-c**********6",
"paginated": false
}Top URLs
https://app.contentstack.com/analytics/v2/urlThe Top URLs request counts requests per URL for the services you name, so you can see which paths carry your traffic.
Each row carries url, the path that was accessed; type, the service that served it, such as cdn; and count, the number of requests. The result also carries urlDataSource, naming the store that answered the query. That value is set by the environment, can differ between requests, and is informational only.
Sort with sortBy, which accepts count or bandwidth, and orderBy, which accepts 1 for ascending or -1 for descending.
includeTotalCount is ignored when limit is sent.
{
"jobId": "job_7******a-c**f-4**9-9**0-c**********6",
"paginated": true
}