public class LatencyMetric extends Object
A latency metric value object which contains percentile and other related information.
Constructor and Description |
---|
LatencyMetric(long min,
long max,
long count,
Map<Double,Long> percentiles,
TimeUnit unit) |
Modifier and Type | Method and Description |
---|---|
long |
count()
The number of latency entries recorded in the interval.
|
Map<String,Object> |
export()
Exports this object to a plain map structure which can be easily converted into other target formats.
|
long |
max()
The maximum latency recorded in the interval.
|
long |
min()
The minimum latency recorded in the interval.
|
Map<Double,Long> |
percentiles()
Configured latencies with their values recorded in the interval.
|
TimeUnit |
timeUnit()
Returns the time unit for the percentiles, min and max values.
|
String |
toString() |
public long min()
The minimum latency recorded in the interval.
public long max()
The maximum latency recorded in the interval.
public long count()
The number of latency entries recorded in the interval.
public Map<Double,Long> percentiles()
Configured latencies with their values recorded in the interval.
public TimeUnit timeUnit()
Returns the time unit for the percentiles, min and max values.
Copyright © 2016 Couchbase, Inc.. All rights reserved.