Everstack
API ReferenceMemoryGet Memory Analytics

Get Memory Analytics

POST/v1/memory/analytics
POST/v1/memory/analytics

Your instance endpoint, shown on the instance page in the dashboard. Each instance has its own host; there is no shared API host.

Request Body

PropertyTypeRequiredDescription
tenantIdstringNo
fromstringNo
tostringNo

Responses

200 A successful response.

PropertyTypeDescription
bucketsobject[]
totalRequestsinteger
totalErrorsinteger
avgLatencyMsnumber
topCollectionsobject[]

default An unexpected error response.

PropertyTypeDescription
codeinteger
messagestring
detailsobject[]

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"
    }
  ]
}