result.aggregatedEndToEndLatencyMax = agg.endToEndLatency.getMaxValue(); agg.publishLatency.percentiles(100).forEach(value -> { result.aggregatedPublishLatencyQuantiles.put(value.getPercentile(), value.getValueIteratedTo() / 1000.0); }); agg.endToEndLatency.percentiles(100).forEach(value -> { result.aggregatedEndToEndLatencyQuantiles.put(value.getPercentile(), microsToMillis(value.getValueIteratedTo()));
/** * Provide a means of iterating through histogram values according to percentile levels. The iteration is * performed in steps that start at 0% and reduce their distance to 100% according to the * <i>percentileTicksPerHalfDistance</i> parameter, ultimately reaching 100% when all recorded histogram * values are exhausted. * <p> * @param percentileTicksPerHalfDistance The number of iteration steps per half-distance to 100%. * @return An {@link java.lang.Iterable}{@literal <}{@link HistogramIterationValue}{@literal >} * through the histogram using a * {@link PercentileIterator} */ public Percentiles percentiles(final int percentileTicksPerHalfDistance) { return new Percentiles(this, percentileTicksPerHalfDistance); }
/** * Provide a means of iterating through histogram values according to percentile levels. The iteration is * performed in steps that start at 0% and reduce their distance to 100% according to the * <i>percentileTicksPerHalfDistance</i> parameter, ultimately reaching 100% when all recorded histogram * values are exhausted. * <p> * @param percentileTicksPerHalfDistance The number of iteration steps per half-distance to 100%. * @return An {@link java.lang.Iterable}{@literal <}{@link HistogramIterationValue}{@literal >} * through the histogram using a * {@link PercentileIterator} */ public Percentiles percentiles(final int percentileTicksPerHalfDistance) { return new Percentiles(this, percentileTicksPerHalfDistance); }