Esempio n. 1
0
 public AggregatorFlusher(MetricAggregatorParameters parameters, MetricType expectedMetricType)
 {
     _serializer                = parameters.Serializer;
     _bufferBuilder             = parameters.BufferBuilder;
     _flushIntervalMilliseconds = (long)parameters.FlushInterval.TotalMilliseconds;
     _maxUniqueStatsBeforeFlush = parameters.MaxUniqueStatsBeforeFlush;
     _expectedMetricType        = expectedMetricType;
 }
Esempio n. 2
0
 public CountAggregator(MetricAggregatorParameters parameters)
 {
     _aggregator = new AggregatorFlusher <StatsMetric>(parameters, MetricType.Count);
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
 public GaugeAggregator(MetricAggregatorParameters parameters)
 {
     _aggregator = new AggregatorFlusher <StatsMetric>(parameters, MetricType.Gauge);
 }