Class HistogramMetricImpl

    • Constructor Detail

      • HistogramMetricImpl

        public HistogramMetricImpl​(String name,
                                   @Nullable
                                   @Nullable String desc,
                                   long[] bounds)
        Parameters:
        name - Name.
        desc - Description.
        bounds - Bounds.
      • HistogramMetricImpl

        public HistogramMetricImpl​(String name,
                                   HistogramMetricImpl toCopy)
        Parameters:
        name - Name.
        toCopy - Histogram metric to copy.
    • Method Detail

      • value

        public void value​(long x)
        Sets value.
        Parameters:
        x - Value.
      • reset

        public void reset​(long[] bounds)
        Resets histogram state with the specified bounds.
        Parameters:
        bounds - Bounds.
      • reset

        public void reset()
        Resets metric state.
        Specified by:
        reset in interface Metric
      • value

        public long[] value()
        Specified by:
        value in interface ObjectMetric<long[]>
        Returns:
        Value ot the metric.
      • bounds

        public long[] bounds()
        Specified by:
        bounds in interface HistogramMetric
        Returns:
        Bounds of this histogram.
      • type

        public Class<long[]> type()
        Specified by:
        type in interface ObjectMetric<long[]>
        Returns:
        Type of metric value.