8 references to MetricValue
Aspire.Dashboard (6)
Otlp\Model\MetricValues\DimensionScope.cs (2)
54
_lastValue = new
MetricValue
<long>(d.AsInt, start, end);
74
_lastValue = new
MetricValue
<double>(d.AsDouble, start, end);
Otlp\Model\MetricValues\MetricValue.cs (2)
14
:
this
(value, OtlpHelpers.DateTimeToUnixNanoseconds(start), OtlpHelpers.DateTimeToUnixNanoseconds(end))
33
var value = new
MetricValue
<T>(Value, StartTimeUnixNano, EndTimeUnixNano) { Count = Count };
Otlp\Storage\SqliteTelemetryRepository.Metrics.Reads.cs (2)
364
LongPointType => new
MetricValue
<long>(point.IntegerValue!.Value, checked((ulong)point.StartTimeUnixNano), checked((ulong)point.EndTimeUnixNano)),
368
DoublePointType => new
MetricValue
<double>(Math.Clamp(point.DoubleValue!.Value, double.MinValue, double.MaxValue), checked((ulong)point.StartTimeUnixNano), checked((ulong)point.EndTimeUnixNano)),
Aspire.Dashboard.Tests (2)
ChartDataCalculatorTests.cs (2)
460
dimension.Values.Add(new
MetricValue
<long>(4, boundaryUnixNano - 1_000, boundaryUnixNano + 50));
472
dimension.Values.Add(new
MetricValue
<long>(4, endUnixNano + 50, endUnixNano + 1_000));