AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
You can only enable metrics collection if InstanceMonitoring
in the launch
configuration for the group is set to True
.
Namespace: Amazon.AutoScaling.Model
Assembly: AWSSDK.dll
Version: (assembly version)
public class EnableMetricsCollectionRequest : AmazonAutoScalingRequest IRequestEvents
The EnableMetricsCollectionRequest type exposes the following members
Name | Description | |
---|---|---|
EnableMetricsCollectionRequest() |
Name | Type | Description | |
---|---|---|---|
AutoScalingGroupName | System.String |
Gets and sets the property AutoScalingGroupName.
The name or ARN of the Auto Scaling group. |
|
Granularity | System.String |
Gets and sets the property Granularity.
The granularity to associate with the metrics to collect. The only valid value is
|
|
Metrics | System.Collections.Generic.List<System.String> |
Gets and sets the property Metrics.
One or more of the following metrics. If you omit this parameter, all metrics are enabled.
Note that the |
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8
.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8