Class Snapshot.PercentileValue

java.lang.Object
org.eclipse.microprofile.metrics.Snapshot.PercentileValue
Enclosing class:
Snapshot

public static class Snapshot.PercentileValue extends Object
Represents a percentile and its value at the moment it was sampled from the Snapshot. Percentile values of a Timer are represented in units of nanoseconds. See #percentileValue()
  • Constructor Details

    • PercentileValue

      public PercentileValue(double percentile, double value)
      Parameters:
      percentile - percentile
      value - value of percentile
  • Method Details

    • getPercentile

      public double getPercentile()
      Returns the percentile
      Returns:
      the percentile
    • getValue

      public double getValue()
      Returns the value at percentile
      Returns:
      the value at the percentile
    • toString

      public String toString()
      Overrides:
      toString in class Object