<PackageReference Include="Microsoft.ApplicationInsights" Version="2.23.0" />

Microsoft.ApplicationInsights.Metrics.Extensibility.IMetricSeriesAggregator

public interface IMetricSeriesAggregator
The abstraction for a metric aggregator. An aggregator is a data processing type that inspects all values tracked for a metric series across an aggregation period and creates an aggregate that summarizes the period when it is completed. The most common aggregator is the MeasurementAggregator, which produces aggregates that contain the Min, Max, Sum and Count of values tracked over the aggregation time period.
namespace Microsoft.ApplicationInsights.Metrics.Extensibility { public interface IMetricSeriesAggregator { MetricSeries DataSeries { get; } bool TryRecycle(); void Reset(DateTimeOffset periodStart, IMetricValueFilter valueFilter); void Reset(DateTimeOffset periodStart); MetricAggregate CompleteAggregation(DateTimeOffset periodEnd); MetricAggregate CreateAggregateUnsafe(DateTimeOffset periodEnd); void TrackValue(double metricValue); void TrackValue(object metricValue); } }