Skip to main content

anomalies_for_insights

Creates, updates, deletes, gets or lists an anomalies_for_insights resource.

Overview

Nameanomalies_for_insights
TypeResource
Idaws.devops_guru.anomalies_for_insights

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
anomaly_reported_time_rangeobjectAn AnomalyReportedTimeRange object that specifies the time range between when the anomaly is opened and the time when it is closed.
anomaly_resourcesarrayThe Amazon Web Services resources in which anomalous behavior was detected by DevOps Guru.
anomaly_time_rangeobjectA 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_idstringThe ID of the insight that contains this anomaly. An insight is composed of related anomalies. (pattern: <code>^[\w-]*$</code>)
causal_anomaly_idstringThe 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>)
descriptionstringA description of the reactive anomaly.
idstringThe ID of the reactive anomaly. (pattern: <code>^[\w~.-]*$</code>)
namestringThe name of the reactive anomaly.
resource_collectionobjectA 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.
severitystringThe 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_detailsobjectDetails about the source of the analyzed operational data that triggered the anomaly. The one supported source is Amazon CloudWatch metrics.
statusstringThe status of the reactive anomaly. (ONGOING, CLOSED)
typestringThe 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:

NameAccessible byRequired ParamsOptional ParamsDescription
list_anomalies_for_insightselectinsight_id, regionReturns 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.

NameDatatypeDescription
insight_idstringThe ID of the insight. The returned anomalies belong to this insight.
regionstringAWS region (default: us-east-1)

SELECT examples

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
;