public class MetricDimension extends Object implements Serializable, Cloneable
A CloudWatch dimension, which is specified using a Key (known as a Name in CloudWatch),
Value pair. By default, Amazon EMR uses one dimension whose Key is JobFlowID and
Value is a variable representing the cluster ID, which is ${emr:cluster_id}. This enables
the rule to bootstrap when the cluster ID becomes available, and also enables a single automatic scaling policy to be
reused for multiple clusters and instance groups.
| Constructor and Description |
|---|
MetricDimension() |
| Modifier and Type | Method and Description |
|---|---|
MetricDimension |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The dimension name.
|
String |
getValue()
The dimension value.
|
int |
hashCode() |
void |
setKey(String key)
The dimension name.
|
void |
setValue(String value)
The dimension value.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
MetricDimension |
withKey(String key)
The dimension name.
|
MetricDimension |
withValue(String value)
The dimension value.
|
public void setKey(String key)
The dimension name.
key - The dimension name.public String getKey()
The dimension name.
public MetricDimension withKey(String key)
The dimension name.
key - The dimension name.public void setValue(String value)
The dimension value.
value - The dimension value.public String getValue()
The dimension value.
public MetricDimension withValue(String value)
The dimension value.
value - The dimension value.public String toString()
toString in class ObjectObject.toString()public MetricDimension clone()
Copyright © 2016. All rights reserved.