|
Did this page help you?Yes No Tell us about it... |
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.amazonaws.services.cloudwatch.model.Metric
public class Metric
The Metric data type contains information about a specific metric. If you call ListMetrics, Amazon CloudWatch returns information
contained by this data type.
| Constructor Summary | |
|---|---|
Metric()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.util.List<Dimension> |
getDimensions()
A list of dimensions associated with the metric. |
java.lang.String |
getMetricName()
The name of the metric. |
java.lang.String |
getNamespace()
The namespace of the metric. |
int |
hashCode()
|
void |
setDimensions(java.util.Collection<Dimension> dimensions)
A list of dimensions associated with the metric. |
void |
setMetricName(java.lang.String metricName)
The name of the metric. |
void |
setNamespace(java.lang.String namespace)
The namespace of the metric. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
Metric |
withDimensions(java.util.Collection<Dimension> dimensions)
A list of dimensions associated with the metric. |
Metric |
withDimensions(Dimension... dimensions)
A list of dimensions associated with the metric. |
Metric |
withMetricName(java.lang.String metricName)
The name of the metric. |
Metric |
withNamespace(java.lang.String namespace)
The namespace of the metric. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Metric()
| Method Detail |
|---|
public java.lang.String getNamespace()
Constraints:
Length: 1 - 255
Pattern: [^:].*
public void setNamespace(java.lang.String namespace)
Constraints:
Length: 1 - 255
Pattern: [^:].*
namespace - The namespace of the metric.public Metric withNamespace(java.lang.String namespace)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [^:].*
namespace - The namespace of the metric.
public java.lang.String getMetricName()
Constraints:
Length: 1 - 255
public void setMetricName(java.lang.String metricName)
Constraints:
Length: 1 - 255
metricName - The name of the metric.public Metric withMetricName(java.lang.String metricName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
metricName - The name of the metric.
public java.util.List<Dimension> getDimensions()
Constraints:
Length: 0 - 10
public void setDimensions(java.util.Collection<Dimension> dimensions)
Constraints:
Length: 0 - 10
dimensions - A list of dimensions associated with the metric.public Metric withDimensions(Dimension... dimensions)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10
dimensions - A list of dimensions associated with the metric.
public Metric withDimensions(java.util.Collection<Dimension> dimensions)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10
dimensions - A list of dimensions associated with the metric.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||