public class MetricResultV2
extends java.lang.Object
implements java.io.Serializable
Contains information about the metric results.
| Constructor and Description |
|---|
MetricResultV2() |
| Modifier and Type | Method and Description |
|---|---|
MetricResultV2 |
addDimensionsEntry(java.lang.String key,
java.lang.String value)
The dimension for the metrics.
|
MetricResultV2 |
clearDimensionsEntries()
Removes all the entries added into Dimensions.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<MetricDataV2> |
getCollections()
The set of metrics.
|
java.util.Map<java.lang.String,java.lang.String> |
getDimensions()
The dimension for the metrics.
|
int |
hashCode() |
void |
setCollections(java.util.Collection<MetricDataV2> collections)
The set of metrics.
|
void |
setDimensions(java.util.Map<java.lang.String,java.lang.String> dimensions)
The dimension for the metrics.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MetricResultV2 |
withCollections(java.util.Collection<MetricDataV2> collections)
The set of metrics.
|
MetricResultV2 |
withCollections(MetricDataV2... collections)
The set of metrics.
|
MetricResultV2 |
withDimensions(java.util.Map<java.lang.String,java.lang.String> dimensions)
The dimension for the metrics.
|
public java.util.Map<java.lang.String,java.lang.String> getDimensions()
The dimension for the metrics.
The dimension for the metrics.
public void setDimensions(java.util.Map<java.lang.String,java.lang.String> dimensions)
The dimension for the metrics.
dimensions - The dimension for the metrics.
public MetricResultV2 withDimensions(java.util.Map<java.lang.String,java.lang.String> dimensions)
The dimension for the metrics.
Returns a reference to this object so that method calls can be chained together.
dimensions - The dimension for the metrics.
public MetricResultV2 addDimensionsEntry(java.lang.String key, java.lang.String value)
The dimension for the metrics.
The method adds a new key-value pair into Dimensions parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Dimensions.value - The corresponding value of the entry to be added into
Dimensions.public MetricResultV2 clearDimensionsEntries()
Returns a reference to this object so that method calls can be chained together.
public java.util.List<MetricDataV2> getCollections()
The set of metrics.
The set of metrics.
public void setCollections(java.util.Collection<MetricDataV2> collections)
The set of metrics.
collections - The set of metrics.
public MetricResultV2 withCollections(MetricDataV2... collections)
The set of metrics.
Returns a reference to this object so that method calls can be chained together.
collections - The set of metrics.
public MetricResultV2 withCollections(java.util.Collection<MetricDataV2> collections)
The set of metrics.
Returns a reference to this object so that method calls can be chained together.
collections - The set of metrics.
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