类 Metric<T extends Number>

  • 类型参数:
    T - the value type
    直接已知子类:
    Delta

    public class Metric<T extends Number>
    extends Object
    Immutable class that can be used to hold any arbitrary system measurement value (a named numeric value with a timestamp). For example a metric might record the number of active connections to a server, or the temperature of a meeting room.
    • 构造器详细资料

      • Metric

        public Metric​(String name,
                      T value)
        Create a new Metric instance for the current time.
        参数:
        name - the name of the metric
        value - the value of the metric
      • Metric

        public Metric​(String name,
                      T value,
                      Date timestamp)
        Create a new Metric instance.
        参数:
        name - the name of the metric
        value - the value of the metric
        timestamp - the timestamp for the metric