public class MetricDataV2
extends java.lang.Object
implements java.io.Serializable
Contains the name, thresholds, and metric filters.
| Constructor and Description |
|---|
MetricDataV2() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
MetricV2 |
getMetric()
The metric name, thresholds, and metric filters of the returned metric.
|
java.lang.Double |
getValue()
The corresponding value of the metric returned in the response.
|
int |
hashCode() |
void |
setMetric(MetricV2 metric)
The metric name, thresholds, and metric filters of the returned metric.
|
void |
setValue(java.lang.Double value)
The corresponding value of the metric returned in the response.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MetricDataV2 |
withMetric(MetricV2 metric)
The metric name, thresholds, and metric filters of the returned metric.
|
MetricDataV2 |
withValue(java.lang.Double value)
The corresponding value of the metric returned in the response.
|
public MetricV2 getMetric()
The metric name, thresholds, and metric filters of the returned metric.
The metric name, thresholds, and metric filters of the returned metric.
public void setMetric(MetricV2 metric)
The metric name, thresholds, and metric filters of the returned metric.
metric - The metric name, thresholds, and metric filters of the returned metric.
public MetricDataV2 withMetric(MetricV2 metric)
The metric name, thresholds, and metric filters of the returned metric.
Returns a reference to this object so that method calls can be chained together.
metric - The metric name, thresholds, and metric filters of the returned metric.
public java.lang.Double getValue()
The corresponding value of the metric returned in the response.
The corresponding value of the metric returned in the response.
public void setValue(java.lang.Double value)
The corresponding value of the metric returned in the response.
value - The corresponding value of the metric returned in the response.
public MetricDataV2 withValue(java.lang.Double value)
The corresponding value of the metric returned in the response.
Returns a reference to this object so that method calls can be chained together.
value - The corresponding value of the metric returned in the response.
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