public class EnableMetricsCollectionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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 |
|---|---|
EnableMetricsCollectionRequest |
clone() |
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 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 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 metrics.
|
EnableMetricsCollectionRequest |
withMetrics(String... metrics)
One or more metrics.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, 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
Note that the
GroupStandbyInstances metric is not enabled by default.
You must explicitly request this metric.
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
Note that the
GroupStandbyInstances metric is not enabled by default.
You must explicitly request this metric.
public void setMetrics(Collection<String> metrics)
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
Note that the
GroupStandbyInstances metric is not enabled by default.
You must explicitly request this metric.
metrics - One or more metrics. If you omit this parameter, all metrics are
enabled. GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
Note that the
GroupStandbyInstances metric is not enabled by default.
You must explicitly request this metric.
public EnableMetricsCollectionRequest withMetrics(String... metrics)
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
Note that the
GroupStandbyInstances metric is not enabled by default.
You must explicitly request this metric.
NOTE: This method appends the values to the existing list (if
any). Use setMetrics(java.util.Collection) or withMetrics(java.util.Collection) if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
metrics - One or more metrics. If you omit this parameter, all metrics are
enabled. GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
Note that the
GroupStandbyInstances metric is not enabled by default.
You must explicitly request this metric.
public EnableMetricsCollectionRequest withMetrics(Collection<String> metrics)
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
Note that the
GroupStandbyInstances metric is not enabled by default.
You must explicitly request this metric.
Returns a reference to this object so that method calls can be chained together.
metrics - One or more metrics. If you omit this parameter, all metrics are
enabled. GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
Note that the
GroupStandbyInstances metric is not enabled by default.
You must explicitly request this metric.
public String getGranularity()
1Minute.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
1Minute.public void setGranularity(String granularity)
1Minute.
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. The only
valid value is 1Minute.public EnableMetricsCollectionRequest withGranularity(String granularity)
1Minute.
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. The only
valid value is 1Minute.public String toString()
toString in class ObjectObject.toString()public EnableMetricsCollectionRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.