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
ISO 8601 timestamp when detection was run.
Number of anomalies detected.
Array of detected anomalies.
Anomaly types
| Type | Description |
|---|---|
rate_spike | Abnormally high request volume for an agent |
high_failure_rate | Unusually high proportion of failed actions |
new_principal | An agent is acting on behalf of a previously unseen user |
off_hours_activity | Agent activity outside normal business hours |
Anomaly severity levels
| Severity | Description |
|---|---|
low | Informational, may not require action |
medium | Worth investigating |
high | Likely requires immediate attention |
anomalies.list()
List stored anomalies. Optionally filter to only unacknowledged anomalies.Parameters
When
true, only return anomalies that have not been acknowledged.Response: ListAnomaliesResponse
Array of anomaly objects.
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
The anomaly ID to acknowledge.
Response: Anomaly
Returns the updated anomaly object with the acknowledgedAt timestamp set.
Anomaly object
Unique anomaly identifier.
The anomaly type:
'rate_spike', 'high_failure_rate', 'new_principal', or 'off_hours_activity'.Severity level:
'low', 'medium', or 'high'.The agent associated with the anomaly, if applicable.
The user associated with the anomaly, if applicable.
Human-readable description of the anomaly.
Additional context about the anomaly (e.g. request rates, thresholds).
ISO 8601 timestamp when the anomaly was detected.
ISO 8601 timestamp when the anomaly was acknowledged, or
null.