Overview
Theanomalies sub-client provides automated anomaly detection for agent activity. It identifies unusual patterns such as rate spikes, high failure rates, new principals, and off-hours activity.
anomalies.detect()
Run anomaly detection across all agents and return any newly detected anomalies.Response: DetectAnomaliesResponse
string
ISO 8601 timestamp when detection was run.
number
Number of anomalies detected.
Anomaly[]
Array of detected anomalies.
Anomaly types
Anomaly severity levels
anomalies.list()
List stored anomalies. Optionally filter to only unacknowledged anomalies.Parameters
boolean
When
true, only return anomalies that have not been acknowledged.Response: ListAnomaliesResponse
Anomaly[]
Array of anomaly objects.
number
Total number of anomalies matching the filter.
anomalies.acknowledge()
Acknowledge an anomaly by ID. This marks it as reviewed so it no longer appears in the unacknowledged list.Parameters
string
required
The anomaly ID to acknowledge.
Response: Anomaly
Returns the updated anomaly object with the acknowledgedAt timestamp set.
Anomaly object
string
Unique anomaly identifier.
AnomalyType
The anomaly type:
'rate_spike', 'high_failure_rate', 'new_principal', or 'off_hours_activity'.AnomalySeverity
Severity level:
'low', 'medium', or 'high'.string | null
The agent associated with the anomaly, if applicable.
string | null
The user associated with the anomaly, if applicable.
string
Human-readable description of the anomaly.
Record<string, unknown>
Additional context about the anomaly (e.g. request rates, thresholds).
string
ISO 8601 timestamp when the anomaly was detected.
string | null
ISO 8601 timestamp when the anomaly was acknowledged, or
null.