|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.servo.Metric
public final class Metric
Represents a metric value at a given point in time.
| Constructor Summary | |
|---|---|
Metric(MonitorConfig config,
long timestamp,
java.lang.Object value)
Creates a new instance. |
|
Metric(java.lang.String name,
TagList tags,
long timestamp,
java.lang.Object value)
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
MonitorConfig |
getConfig()
Returns the config settings associated with the metric. |
java.lang.Number |
getNumberValue()
Returns the value of the metric as a number. |
long |
getTimestamp()
Returns the point in time when the metric was sampled. |
java.lang.Object |
getValue()
Returns the value of the metric. |
int |
hashCode()
|
boolean |
hasNumberValue()
Returns true if the value for this metric is numeric. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Metric(java.lang.String name,
TagList tags,
long timestamp,
java.lang.Object value)
name - name of the metrictags - tags associated with the metrictimestamp - point in time when the metric value was sampledvalue - value of the metric
public Metric(MonitorConfig config,
long timestamp,
java.lang.Object value)
config - config settings associated with the metrictimestamp - point in time when the metric value was sampledvalue - value of the metric| Method Detail |
|---|
public MonitorConfig getConfig()
public long getTimestamp()
public java.lang.Object getValue()
public java.lang.Number getNumberValue()
public boolean hasNumberValue()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||