get_metric_anomalies
Detect metric anomalies in LogicMonitor by applying statistical analysis to identify data points deviating significantly from the mean, using methods like z-score, IQR, or MAD.
Instructions
Detect metric anomalies using z-score analysis. Identifies data points deviating significantly from the mean.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | Anomaly detection method (auto selects based on data distribution) | auto |
| device_id | Yes | Device ID | |
| threshold | No | Z-score threshold for anomaly detection (default: 2.0) | |
| datapoints | No | Comma-separated datapoint names (optional, all if omitted) | |
| hours_back | No | Hours to look back (default: 24) | |
| instance_id | Yes | Instance ID | |
| device_datasource_id | Yes | Device-DataSource ID (from get_device_datasources) |