Skip to main content

insights

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

Overview

Nameinsights
TypeResource
Idaws.devops_guru.insights

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
associated_resource_arnsarrayThe Amazon Resource Names (ARNs) of the Amazon Web Services resources that generated this insight.
idstringThe ID of the proactive insight. (pattern: <code>^[\w-]*$</code>)
insight_time_rangeobjectA time ranged that specifies when the observed behavior in an insight started and ended.
namestringThe name of the proactive insight. (pattern: <code>^[\s\S]*$</code>)
prediction_time_rangeobjectThe time range during which anomalous behavior in a proactive anomaly or an insight is expected to occur.
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.
service_collectionobjectA collection of the names of Amazon Web Services services.
severitystringThe severity of the insight. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. (LOW, MEDIUM, HIGH)
statusstringThe status of the proactive insight. (ONGOING, CLOSED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
search_insightsselectregionReturns a list of insights in your Amazon Web Services account. You can specify which insights are returned by their start time, one or more statuses (ONGOING or CLOSED), one or more severities (LOW, MEDIUM, and HIGH), and type (REACTIVE or PROACTIVE). Use the Filters parameter to specify status and severity search parameters. Use the Type parameter to specify REACTIVE or PROACTIVE in your search.
describe_insightselectid, regionAccountIdReturns details about an insight that you specify using its ID.
list_insightsselectregionReturns a list of insights in your Amazon Web Services account. You can specify which insights are returned by their start time and status (ONGOING, CLOSED, or ANY).
delete_insightdeleteid, regionDeletes the insight along with the associated anomalies, events and recommendations.

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
idstringThe ID of the insight.
regionstringAWS region (default: us-east-1)
AccountIdstringThe ID of the member account in the organization.

SELECT examples

Returns a list of insights in your Amazon Web Services account. You can specify which insights are returned by their start time, one or more statuses (ONGOING or CLOSED), one or more severities (LOW, MEDIUM, and HIGH), and type (REACTIVE or PROACTIVE). Use the Filters parameter to specify status and severity search parameters. Use the Type parameter to specify REACTIVE or PROACTIVE in your search.

SELECT
associated_resource_arns,
id,
insight_time_range,
name,
prediction_time_range,
resource_collection,
service_collection,
severity,
status
FROM aws.devops_guru.insights
WHERE region = '{{ region }}' -- required
;

DELETE examples

Deletes the insight along with the associated anomalies, events and recommendations.

DELETE FROM aws.devops_guru.insights
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
;