Class QueryResult

java.lang.Object
org.jmxtrans.agent.QueryResult

public class QueryResult
extends Object
Author:
Cyrille Le Clerc
  • Constructor Details

    • QueryResult

      public QueryResult​(@Nonnull String name, @Nullable Object value, long epochInMillis)
      Parameters:
      name - plain name of the metric (variables (e.g. %my-jmx-attr%) must have been resolved).
      value - value of the collected metric
      epochInMillis - collect time in millis (see System.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 metric
      epochInMillis - collect time in millis (see System.currentTimeMillis())
  • Method Details