Class LatencyMetric
java.lang.Object
com.couchbase.client.core.event.metrics.LatencyMetric
public class LatencyMetric extends Object
A latency metric value object which contains percentile and other related information.
- Since:
- 1.2.0
- Author:
- Michael Nitschinger
-
Constructor Summary
Constructors Constructor Description LatencyMetric(long min, long max, long count, Map<Double,Long> percentiles, TimeUnit unit)
-
Method Summary
Modifier and Type Method 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()
-
Constructor Details
-
LatencyMetric
-
-
Method Details
-
min
public long min()The minimum latency recorded in the interval. -
max
public long max()The maximum latency recorded in the interval. -
count
public long count()The number of latency entries recorded in the interval. -
percentiles
Configured latencies with their values recorded in the interval. -
timeUnit
Returns the time unit for the percentiles, min and max values. -
toString
-
export
Exports this object to a plain map structure which can be easily converted into other target formats.- Returns:
- the exported structure.
-