anomalies_for_insights
Creates, updates, deletes, gets or lists an anomalies_for_insights resource.
Overview
| Name | anomalies_for_insights |
| Type | Resource |
| Id | aws.devops_guru.anomalies_for_insights |
Fields
The following fields are returned by SELECT queries:
- list_anomalies_for_insight
| Name | Datatype | Description |
|---|---|---|
anomaly_reported_time_range | object | An AnomalyReportedTimeRange object that specifies the time range between when the anomaly is opened and the time when it is closed. |
anomaly_resources | array | The Amazon Web Services resources in which anomalous behavior was detected by DevOps Guru. |
anomaly_time_range | object | A time range that specifies when the observed unusual behavior in an anomaly started and ended. This is different from AnomalyReportedTimeRange, which specifies the time range when DevOps Guru opens and then closes an anomaly. |
associated_insight_id | string | The ID of the insight that contains this anomaly. An insight is composed of related anomalies. (pattern: <code>^[\w-]*$</code>) |
causal_anomaly_id | string | The ID of the causal anomaly that is associated with this reactive anomaly. The ID of a CAUSAL anomaly is always NULL. (pattern: <code>^[\w~.-]*$</code>) |
description | string | A description of the reactive anomaly. |
id | string | The ID of the reactive anomaly. (pattern: <code>^[\w~.-]*$</code>) |
name | string | The name of the reactive anomaly. |
resource_collection | object | A collection of Amazon Web Services resources supported by DevOps Guru. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks. |
severity | string | The severity of the anomaly. The severity of anomalies that generate an insight determine that insight's severity. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. (LOW, MEDIUM, HIGH) |
source_details | object | Details about the source of the analyzed operational data that triggered the anomaly. The one supported source is Amazon CloudWatch metrics. |
status | string | The status of the reactive anomaly. (ONGOING, CLOSED) |
type | string | The type of the reactive anomaly. It can be one of the following types. CAUSAL - the anomaly can cause a new insight. CONTEXTUAL - the anomaly contains additional information about an insight or its causal anomaly. (CAUSAL, CONTEXTUAL) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_anomalies_for_insight | select | insight_id, region | Returns a list of the anomalies that belong to an insight that you specify using its ID. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
insight_id | string | The ID of the insight. The returned anomalies belong to this insight. |
region | string | AWS region (default: us-east-1) |
SELECT examples
- list_anomalies_for_insight
Returns a list of the anomalies that belong to an insight that you specify using its ID.
SELECT
anomaly_reported_time_range,
anomaly_resources,
anomaly_time_range,
associated_insight_id,
causal_anomaly_id,
description,
id,
name,
resource_collection,
severity,
source_details,
status,
type
FROM aws.devops_guru.anomalies_for_insights
WHERE insight_id = '{{ insight_id }}' -- required
AND region = '{{ region }}' -- required
;