Class Summary.Snapshot.ValueAtPercentile

java.lang.Object
io.opencensus.metrics.export.Summary.Snapshot.ValueAtPercentile
Direct Known Subclasses:
AutoValue_Summary_Snapshot_ValueAtPercentile
Enclosing class:
Summary.Snapshot

@Immutable public abstract static class Summary.Snapshot.ValueAtPercentile extends Object
Represents the value at a given percentile of a distribution.
Since:
0.17
  • Constructor Details

    • ValueAtPercentile

      public ValueAtPercentile()
  • Method Details

    • getPercentile

      public abstract double getPercentile()
      Returns the percentile in this ValueAtPercentile.

      Must be in the interval (0.0, 100.0].

      Returns:
      the percentile in this ValueAtPercentile.
      Since:
      0.17
    • getValue

      public abstract double getValue()
      Returns the value in this ValueAtPercentile.
      Returns:
      the value in this ValueAtPercentile.
      Since:
      0.17
    • create

      public static Summary.Snapshot.ValueAtPercentile create(double percentile, double value)
      Parameters:
      percentile - the percentile in this ValueAtPercentile.
      value - the value in this ValueAtPercentile.
      Returns:
      a ValueAtPercentile with the given values.
      Since:
      0.17