/// <summary> /// Initializes a new instance of the <see cref="ApdexMetric" /> class. /// </summary> /// <param name="samplingType">Type of the sampling to use to generate the resevoir of values.</param> /// <param name="sampleSize">The number of samples to keep in the sampling reservoir</param> /// <param name="alpha"> /// The alpha value, e.g 0.015 will heavily biases the reservoir to the past 5 mins of measurements. The higher the /// value the more biased the reservoir will be towards newer values. /// </param> /// <param name="clock">The clock to use to measure processing duration.</param> /// <param name="apdexTSeconds">The apdex t seconds used to calculate satisfied, tolerating and frustrating counts.</param> /// <param name="allowWarmup"> /// if set to <c>true</c> allows the service to warmup before starting to calculate the apdex, /// the score will intitially be 1 until enough samples have been recorded. /// </param> public ApdexMetric(SamplingType samplingType, int sampleSize, double alpha, IClock clock, double apdexTSeconds, bool allowWarmup) : this(ApdexProviderBuilder.Build(samplingType, sampleSize, alpha, apdexTSeconds), clock, allowWarmup) { }
/// <summary> /// Initializes a new instance of the <see cref="ApdexMetric" /> class. /// </summary> /// <param name="samplingType">Type of the sampling to use to generate the resevoir of values.</param> /// <param name="sampleSize">The number of samples to keep in the sampling reservoir</param> /// <param name="alpha"> /// The alpha value, e.g 0.015 will heavily biases the reservoir to the past 5 mins of measurements. The higher the /// value the more biased the reservoir will be towards newer values. /// </param> /// <param name="clock">The clock to use to measure processing duration.</param> /// <param name="allowWarmup"> /// if set to <c>true</c> allows the service to warmup before starting to calculate the apdex, /// the score will intitially be 1 until enough samples have been recorded. /// </param> public ApdexMetric(SamplingType samplingType, int sampleSize, double alpha, IClock clock, bool allowWarmup) : this(ApdexProviderBuilder.Build(samplingType, sampleSize, alpha, Constants.ReservoirSampling.DefaultApdexTSeconds), clock, allowWarmup) { }