get
https://{app-url}{}/api/v2/anomalies//metrics
Retrieve Single Anomaly Metrics
Retrieve anomaly metrics, used in anomaly investigation view. Used to fetch a single anomaly including the abnormal metrics data points.
| Argument | Description |
|---|---|
| anomalyId (string) | Required. The ID of the anomaly. |
| startDate (integer) | Filter anomalies that started after the given time (inclusive). Units: epoch seconds. |
| endDate (integer) | Relevant when requesting closed anomalies. Returns anomalies that started before the given time (inclusive). Units: epoch seconds. |
| q (string) | Search query — include only abnormal metrics that match the given query. |
| state (string) | Anomaly state: {open, closed, both}. |
| resolution (string) | Include anomalies by timescale: {short, medium, long, longlong, weekly}. Provide as a comma-separated list. |
| durationUnit (string) | Time unit for duration: {seconds, minutes, hours, days}. |
| durationValue (integer) | Minimum anomaly duration. Units are based on durationUnit. |
| score (number) | Minimum anomaly score in the range [0,1]. |
| sort (string) | Sort field: {startDate, endDate, duration, score}. |
| order (string) | Sort order: {asc, desc}. |
| index (integer) | Metrics starting index (for pagination). |
| valueDirection (string) | Direction of anomaly breach: {down, up, both}. |
| deltaType (string) | Type of delta relative to baseline: {percentage, absolute}. |
| delta (number) | Delta of the anomaly peak relative to the baseline. Units depend on deltaType. |
