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

Microsoft.ApplicationInsights.Extensibility.Implementation.External.MetricData

Partial class to add the EventData attribute and any additional customizations to the generated type.
namespace Microsoft.ApplicationInsights.Extensibility.Implementation.External { internal class MetricData : Domain, ISerializableWithWriter { public int ver { get; set; } public IList<DataPoint> metrics { get; set; } public IDictionary<string, string> properties { get; set; } public MetricData DeepClone(); public void Serialize(ISerializationWriter serializationWriter); public MetricData(); protected MetricData(string fullName, string name); } }