<PackageReference Include="Azure.Monitor.OpenTelemetry.Exporter" Version="1.10.0-beta.1" />

Azure.Monitor.OpenTelemetry.Exporter.Models.MetricsData

public IList<MetricDataPoint> Metrics { get; }

List of metrics. Only one metric in the list is currently supported by Application Insights storage. If multiple data points were sent only the first one will be used.

public IDictionary<string, string> Properties { get; }

Collection of custom properties.

public MetricsData(int version, Metric metric, MetricPoint metricPoint)

public MetricsData(int version, Metric metric, MetricPoint metricPoint, bool consumeMultiEndpointAttributes)

public MetricsData(int version)

This constructor is used only for creating resource metrics with the name "_OTELRESOURCE_".

public MetricsData(int version, IEnumerable<MetricDataPoint> metrics)

Initializes a new instance of MetricsData.