Get Memory Analytics
POST
/v1/memory/analyticsPOST
/v1/memory/analyticsYour instance endpoint, shown on the instance page in the dashboard. Each instance has its own host; there is no shared API host.
Request Body
| Property | Type | Required | Description |
|---|---|---|---|
tenantId | string | No | |
from | string | No | |
to | string | No |
Responses
200 A successful response.
| Property | Type | Description |
|---|---|---|
buckets | object[] | |
totalRequests | integer | |
totalErrors | integer | |
avgLatencyMs | number | |
topCollections | object[] |
default An unexpected error response.
| Property | Type | Description |
|---|---|---|
code | integer | |
message | string | |
details | object[] |
Request
curl -X POST "http://localhost:8089/v1/memory/analytics" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tenantId":"string","from":"string","to":"string"}'const response = await fetch("http://localhost:8089/v1/memory/analytics", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"tenantId": "string",
"from": "string",
"to": "string"
}),
});
const data = await response.json();import requests
response = requests.post(
"http://localhost:8089/v1/memory/analytics",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
json={
"tenantId": "string",
"from": "string",
"to": "string"
},
)
data = response.json()Response
{
"buckets": [
{
"timestamp": "string",
"queryCount": 0,
"storeCount": 0,
"deleteCount": 0,
"errorCount": 0,
"avgLatencyMs": 0
}
],
"totalRequests": 0,
"totalErrors": 0,
"avgLatencyMs": 0,
"topCollections": [
{
"collectionName": "string",
"requestCount": 0
}
]
}{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
