Package org.jmxtrans.agent
Class QueryResult
java.lang.Object
org.jmxtrans.agent.QueryResult
public class QueryResult extends Object
- Author:
- Cyrille Le Clerc
-
Constructor Summary
Constructors Constructor Description QueryResult(String name, Object value, long epochInMillis)QueryResult(String name, String type, Object value, long epochInMillis) -
Method Summary
-
Constructor Details
-
QueryResult
- Parameters:
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 (seeSystem.currentTimeMillis())
-
QueryResult
public QueryResult(@Nonnull String name, @Nullable String type, @Nullable Object value, long epochInMillis)- Parameters:
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 (seeSystem.currentTimeMillis())
-
-
Method Details