public class Metric
extends java.lang.Object
implements java.io.Serializable
The Metric data type contains information about a specific metric. If you call ListMetrics, Amazon CloudWatch returns information
contained by this data type.
| コンストラクタと説明 |
|---|
Metric() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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.
|
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 クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object