Package io.opencensus.metrics.export
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 java.lang.ObjectRepresents the value at a given percentile of a distribution.- Since:
- 0.17
-
-
Constructor Summary
Constructors Constructor Description ValueAtPercentile()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Summary.Snapshot.ValueAtPercentilecreate(double percentile, double value)Creates aSummary.Snapshot.ValueAtPercentile.abstract doublegetPercentile()Returns the percentile in thisValueAtPercentile.abstract doublegetValue()Returns the value in thisValueAtPercentile.
-
-
-
Method Detail
-
getPercentile
public abstract double getPercentile()
Returns the percentile in thisValueAtPercentile.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 thisValueAtPercentile.- Returns:
- the value in this
ValueAtPercentile. - Since:
- 0.17
-
create
public static Summary.Snapshot.ValueAtPercentile create(double percentile, double value)
Creates aSummary.Snapshot.ValueAtPercentile.- Parameters:
percentile- the percentile in thisValueAtPercentile.value- the value in thisValueAtPercentile.- Returns:
- a
ValueAtPercentilewith the given values. - Since:
- 0.17
-
-