<PackageReference Include="OpenTelemetry" Version="1.11.2" />

OpenTelemetry.Metrics.MetricPoint

public struct MetricPoint
Represents a metric data point.
public DateTimeOffset EndTime { get; }

Gets the end time (UTC) associated with the metric point.

public DateTimeOffset StartTime { get; }

Gets the start time (UTC) associated with the metric point.

public ReadOnlyTagCollection Tags { get; }

Gets the tags associated with the metric point.

Gets the exponential histogram data associated with the metric point.

public double GetGaugeLastValueDouble()

Gets the last double value of the gauge associated with the metric point.

public long GetGaugeLastValueLong()

Gets the last long value of the gauge associated with the metric point.

Gets the buckets of the histogram associated with the metric point.

public long GetHistogramCount()

Gets the count value of the histogram associated with the metric point.

public double GetHistogramSum()

Gets the sum value of the histogram associated with the metric point.

public double GetSumDouble()

Gets the sum double value associated with the metric point.

public long GetSumLong()

Gets the sum long value associated with the metric point.

public bool TryGetExemplars(out ReadOnlyExemplarCollection exemplars)

Gets the exemplars associated with the metric point.

public bool TryGetHistogramMinMaxValues(out double min, out double max)

Gets the Histogram Min and Max values.