public class QueryResult extends Object
| Constructor and Description |
|---|
QueryResult(String name,
Object value,
long epochInMillis) |
QueryResult(String name,
String type,
Object value,
long epochInMillis) |
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 © 2014. All Rights Reserved.