Get anomalies
get_anomaliesDetect threshold crossings for temperature or vibration anomalies in industrial machine telemetry over a configurable time window, returning details like peak value and duration.
Instructions
Detect threshold crossings (temperature or vibration) over a time window.
Inputs: device_id (optional, omit to scan all devices), start and end (epoch ms, optional, default last 15 minutes), step_ms (default 30000), response_format. Returns { count, window, anomalies: [{ id, device_id, metric, started_at, ended_at, peak_value, threshold, sample_count }] }. A healthy machine returns no anomalies. Read only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Window end (epoch ms). Defaults to now. | |
| start | No | Window start (epoch ms). Defaults to end minus 15 minutes. | |
| step_ms | No | Sampling step in milliseconds. | |
| device_id | No | Restrict to one device. Omit to scan every device. | |
| response_format | No | Text output format: 'markdown' (default, human readable) or 'json'. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| window | Yes | ||
| anomalies | Yes |