3 instantiations of MetricValue
Aspire.Dashboard (3)
Otlp\Model\MetricValues\DimensionScope.cs (2)
53
_lastValue = new
MetricValue
<long>(d.AsInt, start, end);
73
_lastValue = new
MetricValue
<double>(d.AsDouble, start, end);
Otlp\Model\MetricValues\MetricValue.cs (1)
22
var value = new
MetricValue
<T>(Value, Start, End);
15 references to MetricValue
Aspire.Dashboard (9)
Components\Controls\Chart\ChartBase.cs (2)
450
MetricValue
<long> longMetric => longMetric.Value,
451
MetricValue
<double> doubleMetric => doubleMetric.Value,
Otlp\Model\MetricValues\DimensionScope.cs (4)
40
var
lastLongValue = _lastValue as
MetricValue
<long>;
60
var
lastDoubleValue = _lastValue as
MetricValue
<double>;
Otlp\Model\MetricValues\MetricValue.cs (3)
22
var
value = new MetricValue<T>(Value, Start, End);
32
if (Value is IComparable a && obj is
MetricValue
<T> other)
44
return obj is
MetricValue
<T> other
Aspire.Dashboard.Tests (6)
TelemetryRepositoryTests\MetricsTests.cs (6)
485
Assert.Equal(3, ((
MetricValue
<long>)m).Value);
491
Assert.Equal(4, ((
MetricValue
<long>)m).Value);
497
Assert.Equal(5, ((
MetricValue
<long>)m).Value);
598
Assert.Equal(1, ((
MetricValue
<long>)d.Values.Single()).Value);
603
Assert.Equal(2, ((
MetricValue
<long>)d.Values.Single()).Value);
608
Assert.Equal(3, ((
MetricValue
<long>)d.Values.Single()).Value);