Container for the parameters to the EnableMetricsCollection operation.
Enables monitoring of group metrics for the Auto Scaling group specified in AutoScalingGroupName . You can specify the list of enabled metrics with the Metrics parameter.
Auto Scaling metrics collection can be turned on only if the InstanceMonitoring flag, in the Auto Scaling group's launch configuration, is set to True .
Declaration Syntax
C# |
public class EnableMetricsCollectionRequest : AmazonWebServiceRequest
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
EnableMetricsCollectionRequest()()()() | Initializes a new instance of the EnableMetricsCollectionRequest class | |
AutoScalingGroupName |
The name or ARN of the Auto Scaling group.
Constraints: | |
Equals(Object) | (Inherited from Object.) | |
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | |
Granularity |
The granularity to associate with the metrics to collect. Currently, the only legal granularity is "1Minute".
Constraints: | |
Metrics |
The list of metrics to collect. If no metrics are specified, all metrics are enabled. The following metrics are supported:
| |
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) | |
WithAutoScalingGroupName(String) | Obsolete.
Sets the AutoScalingGroupName property
| |
WithGranularity(String) | Obsolete.
Sets the Granularity property
| |
WithMetrics(array<String>[]()[][]) | Obsolete.
Adds elements to the Metrics collection
| |
WithMetrics(IEnumerable<(Of <<'(String>)>>)) | Obsolete.
Adds elements to the Metrics collection
|
Inheritance Hierarchy
Object | ||
AmazonWebServiceRequest | ||
EnableMetricsCollectionRequest |