Skip to main content

resource_collection_healths

Creates, updates, deletes, gets or lists a resource_collection_healths resource.

Overview

Nameresource_collection_healths
TypeResource
Idaws.devops_guru.resource_collection_healths

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
analyzed_resource_countinteger (int64)Number of resources that DevOps Guru is monitoring in your account that are specified by an Amazon Web Services CloudFormation stack.
insightobjectInformation about the health of the Amazon Web Services resources in your account that are specified by an Amazon Web Services CloudFormation stack, including the number of open proactive, open reactive insights, and the Mean Time to Recover (MTTR) of closed insights.
stack_namestringThe name of the CloudFormation stack. (pattern: <code>^[a-zA-Z*]+[a-zA-Z0-9-]*$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_resource_collection_healthselectresource_collection_type, regionNextTokenReturns the number of open proactive insights, open reactive insights, and the Mean Time to Recover (MTTR) for all closed insights in resource collections in your account. You specify the type of Amazon Web Services resources collection. 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.

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
regionstringAWS region (default: us-east-1)
resource_collection_typestringAn Amazon Web Services resource collection type. This type specifies how analyzed Amazon Web Services resources are defined. 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.
NextTokenstringThe pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

SELECT examples

Returns the number of open proactive insights, open reactive insights, and the Mean Time to Recover (MTTR) for all closed insights in resource collections in your account. You specify the type of Amazon Web Services resources collection. 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.

SELECT
analyzed_resource_count,
insight,
stack_name
FROM aws.devops_guru.resource_collection_healths
WHERE resource_collection_type = '{{ resource_collection_type }}' -- required
AND region = '{{ region }}' -- required
AND NextToken = '{{ NextToken }}'
;