Container for the parameters to the EnableMetricsCollection operation.
Namespace: Amazon.AutoScaling.ModelEnables 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 .
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)
Syntax
| C# | Visual Basic | Visual C++ |
public class EnableMetricsCollectionRequest : AmazonWebServiceRequest
Public Class EnableMetricsCollectionRequest _ Inherits AmazonWebServiceRequest
public ref class EnableMetricsCollectionRequest : public AmazonWebServiceRequest
Members
| All Members | Constructors | Properties | Methods |
| 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()()()() | (Inherited from Object.) | |
| WithAutoScalingGroupName(String) |
Sets the AutoScalingGroupName property
| |
| WithGranularity(String) |
Sets the Granularity property
| |
| WithMetrics(IEnumerable<(Of <<'(String>)>>)) |
Adds elements to the Metrics collection
| |
| WithMetrics(array<String>[]()[][]) |
Adds elements to the Metrics collection
|
Inheritance Hierarchy
System..::..Object
Amazon.Runtime..::..AmazonWebServiceRequest
Amazon.AutoScaling.Model..::..EnableMetricsCollectionRequest
Amazon.Runtime..::..AmazonWebServiceRequest
Amazon.AutoScaling.Model..::..EnableMetricsCollectionRequest