/** Returns the 99th-percentile latency seen by this {@link * PerformanceMonitor} for failed requests. * @return latency in milliseconds */ public long get99thPercentileFailureLatencyLifetime() { return lifetimeFailureLatencyQuantile.getPercentile(99); }
/** Returns the 95th-percentile latency seen by this {@link * PerformanceMonitor} for failed requests over the last * minute. * @return latency in milliseconds */ public long get95thPercentileFailureLatencyLastMinute() { return failureLatencyQuantileLastMinute.getPercentile(95); }
/** Returns the 95th-percentile latency seen by this {@link * PerformanceMonitor} for failed requests over the last * day. * @return latency in milliseconds */ public long get95thPercentileFailureLatencyLastDay() { return failureLatencyQuantileLastDay.getPercentile(95); }
/** Returns the 99th-percentile latency seen by this {@link * PerformanceMonitor} for failed requests over the last * hour. * @return latency in milliseconds */ public long get99thPercentileFailureLatencyLastDay() { return failureLatencyQuantileLastDay.getPercentile(99); }
/** Returns the 99th-percentile latency seen by this * {@link PerformanceMonitor} for successful requests. * @return latency in milliseconds */ public long get99thPercentileSuccessLatencyLifetime() { return lifetimeSuccessLatencyQuantile.getPercentile(99); }
/** Returns the 95th-percentile latency seen by this {@link * PerformanceMonitor} for failed requests. * @return latency in milliseconds */ public long get95thPercentileFailureLatencyLifetime() { return lifetimeFailureLatencyQuantile.getPercentile(95); }
/** Returns the 99th-percentile latency seen by this {@link * PerformanceMonitor} for failed requests over the last * minute. * @return latency in milliseconds */ public long get99thPercentileFailureLatencyLastMinute() { return failureLatencyQuantileLastMinute.getPercentile(99); }
/** Returns the median latency seen by this {@link * PerformanceMonitor} for failed requests over the * last hour. * @return latency in milliseconds */ public long getMedianPercentileFailureLatencyLastHour() { return failureLatencyQuantileLastHour.getPercentile(50); }
/** Returns the median latency seen by this {@link * PerformanceMonitor} for failed requests over the * last day. * @return latency in milliseconds */ public long getMedianPercentileFailureLatencyLastDay() { return failureLatencyQuantileLastDay.getPercentile(50); }
/** Returns the 95th-percentile latency seen by this * {@link PerformanceMonitor} for successful requests. * @return latency in milliseconds */ public long get95thPercentileSuccessLatencyLifetime() { return lifetimeSuccessLatencyQuantile.getPercentile(95); }
/** Returns the median latency seen by this {@link * PerformanceMonitor} for successful requests over the * last minute. * @return latency in milliseconds */ public long getMedianPercentileSuccessLatencyLastMinute() { return successLatencyQuantileLastMinute.getPercentile(50); }
/** Returns the 95th-percentile latency seen by this {@link * PerformanceMonitor} for successful requests over the last * minute. * @return latency in milliseconds */ public long get95thPercentileSuccessLatencyLastMinute() { return successLatencyQuantileLastMinute.getPercentile(95); }
/** Returns the median latency seen by this {@link * PerformanceMonitor} for failed requests over the * last minute. * @return latency in milliseconds */ public long getMedianPercentileFailureLatencyLastMinute() { return failureLatencyQuantileLastMinute.getPercentile(50); }
/** Returns the 99th-percentile latency seen by this {@link * PerformanceMonitor} for failed requests over the last * hour. * @return latency in milliseconds */ public long get99thPercentileFailureLatencyLastHour() { return failureLatencyQuantileLastHour.getPercentile(99); }
/** Returns the median latency seen by this {@link * PerformanceMonitor} for successful requests. * @return latency in milliseconds */ public long getMedianPercentileSuccessLatencyLifetime() { return lifetimeSuccessLatencyQuantile.getPercentile(50); }
/** Returns the 95th-percentile latency seen by this {@link * PerformanceMonitor} for successful requests over the last * hour. * @return latency in milliseconds */ public long get95thPercentileSuccessLatencyLastHour() { return successLatencyQuantileLastHour.getPercentile(95); }
/** Returns the 99th-percentile latency seen by this {@link * PerformanceMonitor} for successful requests over the last * hour. * @return latency in milliseconds */ public long get99thPercentileSuccessLatencyLastHour() { return successLatencyQuantileLastHour.getPercentile(99); }
/** Returns the 95th-percentile latency seen by this {@link * PerformanceMonitor} for successful requests over the last * day. * @return latency in milliseconds */ public long get95thPercentileSuccessLatencyLastDay() { return successLatencyQuantileLastDay.getPercentile(95); }
/** * Returns the median of the samples seen thus far. * * @return long The median measurement */ public long getMedian() { return getPercentile(50); }
/** * Returns the <code>i</code>th percentile of the samples seen * thus far. This is equivalent to <code>getQuantile(i,100)</code>. * * @param i must be 0 < i < 100 * @return i-th percentile, or 0 if there is no data * @throws QuantileOutOfBoundsException if i <= 0 or i >= 100 */ public long getPercentile(int i) { return getPercentile(i, System.currentTimeMillis()); }