Class Quantile
java.lang.Object
io.prometheus.metrics.model.snapshots.Quantile
Immutable representation of a Quantile.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
quantile
private final double quantile -
value
private final double value
-
-
Constructor Details
-
Quantile
public Quantile(double quantile, double value) - Parameters:
quantile- expecting 0.0 <= quantile <= 1.0, otherwise anIllegalArgumentExceptionwill be thrown.value- the quantile value
-
-
Method Details
-
getQuantile
public double getQuantile() -
getValue
public double getValue() -
validate
private void validate()
-