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
Represents the value at a given percentile of a distribution.
- Since:
- 0.17
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(double percentile, double value) Creates aSummary.Snapshot.ValueAtPercentile
.abstract double
Returns the percentile in thisValueAtPercentile
.abstract double
getValue()
Returns the value in thisValueAtPercentile
.
-
Constructor Details
-
ValueAtPercentile
public ValueAtPercentile()
-
-
Method Details
-
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
Creates aSummary.Snapshot.ValueAtPercentile
.- Parameters:
percentile
- the percentile in thisValueAtPercentile
.value
- the value in thisValueAtPercentile
.- Returns:
- a
ValueAtPercentile
with the given values. - Since:
- 0.17
-