get_anomalies
Retrieve persisted anomaly detection events across memory, hit rate, CPU, and other metrics to investigate alert triggers or correlate anomalies with incidents.
Instructions
Get anomaly detection events from persisted storage. BetterDB continuously runs Z-score analysis on memory, hit rate, CPU, and other metrics — this returns the detected anomalies. On a cluster an event that is about one node names it in node (nodeId, address, role, plus shardId and availabilityZone when known, and collected: false when no connection of the monitor points at that node, so its own metrics are not gathered; connectionId names the connection that collects it). Use to investigate what triggered an alert or correlate with an incident.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_anomalies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max events to return | |
| startTime | No | Start time (Unix timestamp ms) | |
| instanceId | No | Optional instance ID override | |
| metricType | No | Filter by metric type |