resource_collection_healths
Creates, updates, deletes, gets or lists a resource_collection_healths resource.
Overview
| Name | resource_collection_healths |
| Type | Resource |
| Id | aws.devops_guru.resource_collection_healths |
Fields
The following fields are returned by SELECT queries:
- describe_resource_collection_health
| Name | Datatype | Description |
|---|---|---|
analyzed_resource_count | integer (int64) | Number of resources that DevOps Guru is monitoring in your account that are specified by an Amazon Web Services CloudFormation stack. |
insight | object | Information 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_name | string | The name of the CloudFormation stack. (pattern: <code>^[a-zA-Z*]+[a-zA-Z0-9-]*$</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_resource_collection_health | select | resource_collection_type, region | NextToken | 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. |
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 |
|---|---|---|
region | string | AWS region (default: us-east-1) |
resource_collection_type | string | An 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. |
NextToken | string | The 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
- describe_resource_collection_health
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 }}'
;