Observations API
Use the Observations API to turn on Observations, read observations and anomalies, configure notifications and automatic investigations, and submit feedback from your own tools. For request and response details, see the Amazon CloudWatch Omni API Reference on the AWS Documentation website and the AWS SDK documentation.
| Action | Description |
|---|---|
GetIntelligenceConfiguration |
Returns the intelligence configuration for the calling account in
the current Region. If none exists, returns the default, with
intelligenceEnabled set to
false. |
PutIntelligenceConfiguration |
Changes the intelligence configuration, such as turning Observations on or off, setting or removing the customer managed key, and replacing notification rules and automatic investigations. Only the settings you send change. |
ListObservations |
Lists observations that match filters such as severity and status, most recently updated first, or gets up to 100 observations by ID. |
ListAnomalies |
Lists anomalies that match filters such as time range, services, signal types, severity, and source account, or gets up to 100 anomalies by ID. |
SubmitFeedback |
Records free-text feedback for the calling account. |
Every action works on the account of the caller's credentials in the current
Region. ListObservations and ListAnomalies return up to
maxResults items (1 to 100) and a nextToken when more
results exist. To change notification rules, see Change rules with the API. For permissions, see Security in Observations.
Example: list active high-severity observations
{ "filters": { "severity": ["HIGH"], "status": ["ACTIVE"] }, "maxResults": 50 }
Each observation in the response includes the IDs of its anomalies. To get
them, pass those IDs to ListAnomalies in
anomalyIds.
Anomaly severities are lowercase (high), and observation
severities are uppercase (HIGH).
Limits
Observations has the following default limits for each account.
| Limit | Default value | Adjustable |
|---|---|---|
| Services with observations, per account | 500 | Yes |
| Connected code repositories, per account | 5,000 | Yes |
Above 500 services, CloudWatch still detects anomalies but groups only the highest-impact services into observations. A service that stops sending telemetry for a week frees its slot. To request a higher value, contact AWS Support.