<PackageReference Include="Microsoft.ApplicationInsights" Version="3.0.0-rc1" />

Microsoft.ApplicationInsights.DataContracts.MetricTelemetry

Telemetry type used to track metrics. Represents a sample set of values with a specified count, sum, max, min, and standard deviation. Learn more
public TelemetryContext Context { get; }

Gets the context associated with the current telemetry item.

public string MetricNamespace { get; set; }

Gets or sets the name of the metric.

public string Name { get; set; }

Gets or sets the name of the metric.

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

Gets a dictionary of application-defined property names and values providing additional information about this metric. Learn more

public DateTimeOffset Timestamp { get; set; }

Gets or sets date and time when event was recorded.

public double Value { get; set; }

Gets or sets the value of this metric.

public MetricTelemetry(string metricName, double metricValue)

Initializes a new instance of the MetricTelemetry class with the specified metricName and metricValue.