3 instantiations of MetricValue
Aspire.Dashboard (3)
Otlp\Model\MetricValues\DimensionScope.cs (2)
55
_lastValue = new
MetricValue
<long>(d.AsInt, start, end);
75
_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)
42
var
lastLongValue = _lastValue as
MetricValue
<long>;
62
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)
484
Assert.Equal(3, ((
MetricValue
<long>)m).Value);
490
Assert.Equal(4, ((
MetricValue
<long>)m).Value);
496
Assert.Equal(5, ((
MetricValue
<long>)m).Value);
597
Assert.Equal(1, ((
MetricValue
<long>)d.Values.Single()).Value);
602
Assert.Equal(2, ((
MetricValue
<long>)d.Values.Single()).Value);
607
Assert.Equal(3, ((
MetricValue
<long>)d.Values.Single()).Value);