DescribeMetricCollectionTypes - Amazon EC2 Auto Scaling

DescribeMetricCollectionTypes

Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling.

Response Elements

The following elements are returned by the service.

Granularities.member.N

The granularities for the metrics.

Type: Array of MetricGranularityType objects

Metrics.member.N

The metrics.

Type: Array of MetricCollectionType objects

Errors

For information about the errors that are common to all actions, see Common Errors.

ResourceContention

You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling group, instance, or load balancer).

HTTP Status Code: 500

Examples

Example

This example illustrates one usage of DescribeMetricCollectionTypes.

Sample Request

https://autoscaling.amazonaws.com/?Version=2011-01-01&Action=DescribeMetricCollectionTypes &Version=2011-01-01 &AUTHPARAMS

Sample Response

<DescribeMetricCollectionTypesResponse xmlns="https://autoscaling.amazonaws.com/doc/2011-01-01/"> <DescribeMetricCollectionTypesResult> <Granularities> <member> <Granularity>1Minute</Granularity> </member> </Granularities> <Metrics> <member> <Metric>GroupMinSize</Metric> </member> <member> <Metric>GroupMaxSize</Metric> </member> <member> <Metric>GroupDesiredCapacity</Metric> </member> <member> <Metric>GroupInServiceInstances</Metric> </member> <member> <Metric>GroupPendingInstances</Metric> </member> <member> <Metric>GroupTerminatingInstances</Metric> </member> <member> <Metric>GroupStandbyInstances</Metric> </member> <member> <Metric>GroupTotalInstances</Metric> </member> <member> <Metric>GroupInServiceCapacity</Metric> </member> <member> <Metric>GroupPendingCapacity</Metric> </member> <member> <Metric>GroupStandbyCapacity</Metric> </member> <member> <Metric>GroupTerminatingCapacity</Metric> </member> <member> <Metric>GroupTotalCapacity</Metric> </member> <member> <Metric>WarmPoolDesiredCapacity</Metric> </member> <member> <Metric>WarmPoolWarmedCapacity</Metric> </member> <member> <Metric>WarmPoolPendingCapacity</Metric> </member> <member> <Metric>WarmPoolTerminatingCapacity</Metric> </member> <member> <Metric>WarmPoolTotalCapacity</Metric> </member> <member> <Metric>GroupAndWarmPoolDesiredCapacity</Metric> </member> <member> <Metric>GroupAndWarmPoolTotalCapacity</Metric> </member> </Metrics> </DescribeMetricCollectionTypesResult> <ResponseMetadata> <RequestId>7c6e177f-f082-11e1-ac58-3714bEXAMPLE</RequestId> </ResponseMetadata> </DescribeMetricCollectionTypesResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: