Ejemplo n.º 1
0
 public static IApdexProvider Build(SamplingType samplingType, int sampleSize, double alpha, double apdexTSeconds)
 {
     return(new ApdexProvider(ReservoirBuilder.Build(samplingType, sampleSize, alpha), apdexTSeconds));
 }
Ejemplo n.º 2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="HistogramMetric" /> class.
 /// </summary>
 /// <param name="samplingType">Type of the reservoir sampling to use.</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>
 public HistogramMetric(SamplingType samplingType, int sampleSize, double alpha)
     : this(ReservoirBuilder.Build(samplingType, sampleSize, alpha))
 {
 }