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

Microsoft.ApplicationInsights.Metrics.MetricAggregate

public class MetricAggregate
Holds the metric aggregation results of a particular metric data series over an aggregation time period. The specific data fields on instanced of this class are not strongly typed (property bag) which allows using this aggregate type for aggregates of any aggregation kind.
namespace Microsoft.ApplicationInsights.Metrics { public class MetricAggregate { public string MetricNamespace { get; } public string MetricId { get; } public string AggregationKindMoniker { get; } public DateTimeOffset AggregationPeriodStart { get; set; } public TimeSpan AggregationPeriodDuration { get; set; } public IDictionary<string, string> Dimensions { get; } public IDictionary<string, object> Data { get; } public MetricAggregate(string metricNamespace, string metricId, string aggregationKindMoniker); public T GetDataValue<T>(string dataKey, T defaultValue); } }