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

Microsoft.ApplicationInsights.Metrics.Extensibility.MetricAggregateToApplicationInsightsPipelineConverterBase

Converts the Metrics-Aggregation-SDK exchange type for aggregates (MetricAggregate) to the Application Insights exchange type for the same (MetricTelemetry). This abstract base class provides common functionality between aggregates for different aggregation kinds.
public const string AggregationIntervalMonikerPropertyKey = "_MS.AggregationIntervalMs"

Property name for storing the aggregation interval length.

public abstract string AggregationKindMoniker { get; }

Gets the name for the aggregation kind sopported by this converter (e.g. Microsoft.Azure.Measurement).

public object Convert(MetricAggregate aggregate)

Converts a Microsoft.ApplicationInsights.Metrics.MetricAggregate to a Microsoft.ApplicationInsights.DataContracts.MetricTelemetry.

protected abstract void PopulateDataValues(MetricTelemetry telemetryItem, MetricAggregate aggregate)

Subclasses need to override this method to actually send the metric telemetry item's properties based on the cntents of the aggregate and the aggregation kind.