public class QueryResult
extends java.lang.Object
| Constructor and Description |
|---|
QueryResult(java.lang.String name,
java.lang.Object value,
long epochInMillis) |
QueryResult(java.lang.String name,
java.lang.String type,
java.lang.Object value,
long epochInMillis) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
long |
getEpoch(java.util.concurrent.TimeUnit timeUnit) |
long |
getEpochInMillis() |
java.lang.String |
getName() |
java.lang.String |
getType() |
java.lang.Object |
getValue() |
int |
hashCode() |
boolean |
isValueGreaterThan(QueryResult o) |
java.lang.String |
toString() |
public QueryResult(@Nonnull
java.lang.String name,
@Nullable
java.lang.Object value,
long epochInMillis)
name - plain name of the metric (variables (e.g. %my-jmx-attr%) must have been resolved).value - value of the collected metricepochInMillis - collect time in millis (see System.currentTimeMillis())public QueryResult(@Nonnull
java.lang.String name,
@Nullable
java.lang.String type,
@Nullable
java.lang.Object value,
long epochInMillis)
name - plain name of the metric (variables (e.g. %my-jmx-attr%) must have been resolved).type - type of the metric (e.g. "counter", "gauge", ...)value - value of the collected metricepochInMillis - collect time in millis (see System.currentTimeMillis())public boolean isValueGreaterThan(QueryResult o)
@Nonnull public java.lang.String getName()
@Nullable public java.lang.String getType()
public long getEpochInMillis()
public long getEpoch(java.util.concurrent.TimeUnit timeUnit)
@Nullable public java.lang.Object getValue()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2017. All Rights Reserved.