Example #1
0
        public void OnMetricsAggregated(AggregatedMetric aggregatedMetrics)
        {
            if (aggregatedMetrics == null || !aggregatedMetrics.HasMetrics)
            {
                return;
            }

            dataPoints.OnNext(new DataPointEvent(Bucket, aggregatedMetrics.ToDataPoint()));

            ++NumPublishedDataPoints;
        }
Example #2
0
 public AggregatedMetric AggregateMetrics(AggregatedMetric original, Metric newMetric)
 {
     return aggregationStrategy.Aggregate(original, newMetric);
 }