public class EnableMetricsCollectionRequest extends AmazonWebServiceRequest implements Serializable
EnableMetricsCollection operation.
Enables monitoring of the specified metrics for the specified Auto Scaling group.
You can only enable metrics collection if
InstanceMonitoring in the launch configuration for the
group is set to True .
NOOP| Constructor and Description |
|---|
EnableMetricsCollectionRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAutoScalingGroupName()
The name or ARN of the Auto Scaling group.
|
String |
getGranularity()
The granularity to associate with the metrics to collect.
|
List<String> |
getMetrics()
One or more of the following metrics:
|
int |
hashCode() |
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name or ARN of the Auto Scaling group.
|
void |
setGranularity(String granularity)
The granularity to associate with the metrics to collect.
|
void |
setMetrics(Collection<String> metrics)
One or more of the following metrics:
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EnableMetricsCollectionRequest |
withAutoScalingGroupName(String autoScalingGroupName)
The name or ARN of the Auto Scaling group.
|
EnableMetricsCollectionRequest |
withGranularity(String granularity)
The granularity to associate with the metrics to collect.
|
EnableMetricsCollectionRequest |
withMetrics(Collection<String> metrics)
One or more of the following metrics:
|
EnableMetricsCollectionRequest |
withMetrics(String... metrics)
One or more of the following metrics:
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getAutoScalingGroupName()
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setAutoScalingGroupName(String autoScalingGroupName)
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupName - The name or ARN of the Auto Scaling group.public EnableMetricsCollectionRequest withAutoScalingGroupName(String autoScalingGroupName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupName - The name or ARN of the Auto Scaling group.public List<String> getMetrics()
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
If you omit this parameter, all metrics are enabled. The GroupStandbyInstances metric is not returned by
default. You must explicitly request it when calling
EnableMetricsCollection.
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
If you omit this parameter, all metrics are enabled. The GroupStandbyInstances metric is not returned by
default. You must explicitly request it when calling
EnableMetricsCollection.
public void setMetrics(Collection<String> metrics)
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
If you omit this parameter, all metrics are enabled. The GroupStandbyInstances metric is not returned by
default. You must explicitly request it when calling
EnableMetricsCollection.
metrics - One or more of the following metrics: GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
If you omit this parameter, all metrics are enabled. The GroupStandbyInstances metric is not returned by
default. You must explicitly request it when calling
EnableMetricsCollection.
public EnableMetricsCollectionRequest withMetrics(String... metrics)
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
If you omit this parameter, all metrics are enabled. The GroupStandbyInstances metric is not returned by
default. You must explicitly request it when calling
EnableMetricsCollection.
Returns a reference to this object so that method calls can be chained together.
metrics - One or more of the following metrics: GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
If you omit this parameter, all metrics are enabled. The GroupStandbyInstances metric is not returned by
default. You must explicitly request it when calling
EnableMetricsCollection.
public EnableMetricsCollectionRequest withMetrics(Collection<String> metrics)
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
If you omit this parameter, all metrics are enabled. The GroupStandbyInstances metric is not returned by
default. You must explicitly request it when calling
EnableMetricsCollection.
Returns a reference to this object so that method calls can be chained together.
metrics - One or more of the following metrics: GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
If you omit this parameter, all metrics are enabled. The GroupStandbyInstances metric is not returned by
default. You must explicitly request it when calling
EnableMetricsCollection.
public String getGranularity()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setGranularity(String granularity)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
granularity - The granularity to associate with the metrics to collect. Currently,
the only valid value is "1Minute".public EnableMetricsCollectionRequest withGranularity(String granularity)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
granularity - The granularity to associate with the metrics to collect. Currently,
the only valid value is "1Minute".public String toString()
toString in class ObjectObject.toString()Copyright © 2014. All rights reserved.