public class QueryResult extends Object
| Constructor and Description |
|---|
QueryResult(String name,
Object value,
long epochInMillis) |
QueryResult(String name,
String type,
Object value,
long epochInMillis) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getEpoch(TimeUnit timeUnit) |
long |
getEpochInMillis() |
String |
getName() |
String |
getType() |
Object |
getValue() |
int |
hashCode() |
boolean |
isValueGreaterThan(QueryResult o) |
String |
toString() |
public QueryResult(@Nonnull String name, @Nullable 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 String name, @Nullable String type, @Nullable 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)
public long getEpochInMillis()
public long getEpoch(TimeUnit timeUnit)
Copyright © 2017. All Rights Reserved.