public AggregatorFlusher(MetricAggregatorParameters parameters, MetricType expectedMetricType) { _serializer = parameters.Serializer; _bufferBuilder = parameters.BufferBuilder; _flushIntervalMilliseconds = (long)parameters.FlushInterval.TotalMilliseconds; _maxUniqueStatsBeforeFlush = parameters.MaxUniqueStatsBeforeFlush; _expectedMetricType = expectedMetricType; }
public CountAggregator(MetricAggregatorParameters parameters) { _aggregator = new AggregatorFlusher <StatsMetric>(parameters, MetricType.Count); }
public GaugeAggregator(MetricAggregatorParameters parameters) { _aggregator = new AggregatorFlusher <StatsMetric>(parameters, MetricType.Gauge); }
public SetAggregator(MetricAggregatorParameters parameters, Telemetry optionalTelemetry) { _aggregator = new AggregatorFlusher <StatsMetricSet>(parameters, MetricType.Set); _pool = new Pool <StatsMetricSet>(pool => new StatsMetricSet(pool), 2 * parameters.MaxUniqueStatsBeforeFlush); _optionalTelemetry = optionalTelemetry; }