Class WeightedSnapshot


  • public class WeightedSnapshot
    extends org.eclipse.microprofile.metrics.Snapshot
    A statistical snapshot of a WeightedSnapshot.
    • Method Detail

      • size

        public long size()
        Returns the number of values in the snapshot.
        Specified by:
        size in class org.eclipse.microprofile.metrics.Snapshot
        Returns:
        the number of values
      • getMax

        public double getMax()
        Returns the highest value in the snapshot.
        Specified by:
        getMax in class org.eclipse.microprofile.metrics.Snapshot
        Returns:
        the highest value
      • getMean

        public double getMean()
        Returns the weighted arithmetic mean of the values in the snapshot.
        Specified by:
        getMean in class org.eclipse.microprofile.metrics.Snapshot
        Returns:
        the weighted arithmetic mean
      • percentileValues

        public org.eclipse.microprofile.metrics.Snapshot.PercentileValue[] percentileValues()
        Specified by:
        percentileValues in class org.eclipse.microprofile.metrics.Snapshot
      • bucketValues

        public org.eclipse.microprofile.metrics.Snapshot.HistogramBucket[] bucketValues()
        Overrides:
        bucketValues in class org.eclipse.microprofile.metrics.Snapshot
      • getValues

        public long[] getValues()
      • dump

        public void dump​(OutputStream output)
        Writes the values of the snapshot to the given stream.
        Specified by:
        dump in class org.eclipse.microprofile.metrics.Snapshot
        Parameters:
        output - an output stream