Cache Usage
GET https://{{base_url}}/analytics/v2/hit-miss-ratio?orgUid={{orgUid}}&includeCount=true&services=["cdn","cma"]&from=2024-01-31&duration=day&to=2024-03-31
The Cache Usage request will show the number of HIT/MISS instances for your cache. Number of HIT indicates that responses were received from the cache and MISS indicates the number of responses retrieved from the database.
To use the API request, you will need to authenticate yourself either with an Authtoken.Â
Read more about it in Authentication.
For more information, refer to the Cache Usage API Reference document
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
orgUid | string | Enter the UID of your Organization. | |
includeCount | boolean | Set this parameter to true to include the total count of users in the response. | |
services | string | Specify the array of services for which you want statistics, such as: ["cma", "ui", "cdn", "graphql", "images", "assets", "automations", "launch"]. | |
from | string | Specify the start date for the required data. Use the following date format: YYYY-MM-DD. | |
duration | string | Enter a value like day, week, or month. This parameter determines the granularity of the data you want to fetch. | |
to | string | Enter the current date or any date after the from date. The date format should be: YYYY-MM-DD. | |
apiKey | string | Enter your stack API key to get data for that specific stack. | |
cache | string | Enter the value as HIT for this param if you want to get the number of hit API calls and MISS to get the number of missed API calls. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
authtoken | string | Enter your authtoken . | |
Content-Type | string |