public final class Measurement
extends java.lang.Object
| Constructor and Description |
|---|
Measurement(java.lang.String name,
java.util.List<Tag> tags,
double value)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getName()
Name of the measurement, which together with tags form a unique time series.
|
java.util.SortedSet<Tag> |
getTags()
Tags for the measurement, which together with name form a unique time series.
|
double |
getValue()
Value for the measurement.
|
int |
hashCode() |
java.lang.String |
toString() |
public Measurement(java.lang.String name,
java.util.List<Tag> tags,
double value)
tags - For some monitoring backends, the order of tags must remain the same from sample to sample.public java.lang.String getName()
public java.util.SortedSet<Tag> getTags()
public double getValue()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object