public class EnableMetricsCollectionRequest extends AmazonWebServiceRequest implements java.io.Serializable
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
.
Constructor and Description |
---|
EnableMetricsCollectionRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAutoScalingGroupName()
The name or ARN of the Auto Scaling group.
|
java.lang.String |
getGranularity()
The granularity to associate with the metrics to collect.
|
java.util.List<java.lang.String> |
getMetrics()
One or more of the following metrics.
|
int |
hashCode() |
void |
setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name or ARN of the Auto Scaling group.
|
void |
setGranularity(java.lang.String granularity)
The granularity to associate with the metrics to collect.
|
void |
setMetrics(java.util.Collection<java.lang.String> metrics)
One or more of the following metrics.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EnableMetricsCollectionRequest |
withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name or ARN of the Auto Scaling group.
|
EnableMetricsCollectionRequest |
withGranularity(java.lang.String granularity)
The granularity to associate with the metrics to collect.
|
EnableMetricsCollectionRequest |
withMetrics(java.util.Collection<java.lang.String> metrics)
One or more of the following metrics.
|
EnableMetricsCollectionRequest |
withMetrics(java.lang.String... metrics)
One or more of the following metrics.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getAutoScalingGroupName()
The name or ARN of the Auto Scaling group.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
The name or ARN of the Auto Scaling group.
public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name or ARN of the Auto Scaling group.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name or ARN of the Auto Scaling group.
public EnableMetricsCollectionRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name or ARN of the Auto Scaling group.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name or ARN of the Auto Scaling group.
public java.util.List<java.lang.String> getMetrics()
One or more of the following 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.
One or more of the following 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 void setMetrics(java.util.Collection<java.lang.String> metrics)
One or more of the following 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.
metrics
- One or more of the following 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(java.lang.String... metrics)
One or more of the following 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.
Returns a reference to this object so that method calls can be chained together.
metrics
- One or more of the following 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(java.util.Collection<java.lang.String> metrics)
One or more of the following 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.
Returns a reference to this object so that method calls can be chained together.
metrics
- One or more of the following 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 java.lang.String getGranularity()
The granularity to associate with the metrics to collect. The only valid
value is 1Minute
.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
The granularity to associate with the metrics to collect. The
only valid value is 1Minute
.
public void setGranularity(java.lang.String granularity)
The granularity to associate with the metrics to collect. The only valid
value is 1Minute
.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
granularity
-
The granularity to associate with the metrics to collect. The
only valid value is 1Minute
.
public EnableMetricsCollectionRequest withGranularity(java.lang.String granularity)
The granularity to associate with the metrics to collect. The only valid
value is 1Minute
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
granularity
-
The granularity to associate with the metrics to collect. The
only valid value is 1Minute
.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.