All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.fix.aggregating.profiler.PercentileSettings Maven / Gradle / Ivy

There is a newer version: 1.6.6
Show newest version
package ru.fix.aggregating.profiler;

import java.util.Arrays;
import java.util.List;

public class PercentileSettings {
    /**
     * (1 - 100)
     * 50 means median 50%
     * 95 means 95%
     */
    List percentiles;
    List buckets;


    public PercentileSettings() {
        percentiles = Arrays.asList(90, 95, 99);
        buckets = Arrays.asList(
                3,
                5,
                10,
                25,
                50,
                100,
                250,
                375,
                500,
                750,
                1_000,
                1_500,
                3_000,
                6_000,
                12_000,
                30_000,
                60_000
        );
    }

    public List getPercentiles() {
        return percentiles;
    }

    public PercentileSettings setPercentiles(List percentiles) {
        this.percentiles = percentiles;
        return this;
    }

    public List getBuckets() {
        return buckets;
    }

    public PercentileSettings setBuckets(List buckets) {
        this.buckets = buckets;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy