Package io.airlift.stats
Class TimeDistribution
- java.lang.Object
-
- io.airlift.stats.TimeDistribution
-
public class TimeDistribution extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimeDistribution.TimeDistributionSnapshot
-
Constructor Summary
Constructors Constructor Description TimeDistribution()TimeDistribution(double alpha)TimeDistribution(double alpha, TimeUnit unit)TimeDistribution(TimeUnit unit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(long value)doublegetAvg()doublegetCount()doublegetMax()doublegetMin()doublegetP50()doublegetP75()doublegetP90()doublegetP95()doublegetP99()Map<Double,Double>getPercentiles()TimeUnitgetUnit()TimeDistribution.TimeDistributionSnapshotsnapshot()
-
-
-
Method Detail
-
add
public void add(long value)
-
getCount
public double getCount()
-
getP50
public double getP50()
-
getP75
public double getP75()
-
getP90
public double getP90()
-
getP95
public double getP95()
-
getP99
public double getP99()
-
getMin
public double getMin()
-
getMax
public double getMax()
-
getAvg
public double getAvg()
-
getUnit
public TimeUnit getUnit()
-
snapshot
public TimeDistribution.TimeDistributionSnapshot snapshot()
-
-