16 references to MetricValue
Aspire.Dashboard (5)
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 (1)
22
var value = new
MetricValue
<T>(Value, Start, End);
Otlp\Storage\SqliteTelemetryRepository.Metrics.Reads.cs (2)
245
LongPointType => new
MetricValue
<long>(point.IntegerValue!.Value, new DateTime(point.StartTimeTicks, DateTimeKind.Utc), new DateTime(point.EndTimeTicks, DateTimeKind.Utc)),
246
DoublePointType => new
MetricValue
<double>(point.DoubleValue!.Value, new DateTime(point.StartTimeTicks, DateTimeKind.Utc), new DateTime(point.EndTimeTicks, DateTimeKind.Utc)),
Aspire.Dashboard.Tests (11)
ChartDataCalculatorTests.cs (11)
447
cachedDimension.Values.Add(new
MetricValue
<long>(1, start, start.AddSeconds(1)));
448
cachedDimension.Values.Add(new
MetricValue
<long>(2, start.AddSeconds(1), start.AddSeconds(2)));
451
refreshedDimension.Values.Add(new
MetricValue
<long>(1, start, start.AddSeconds(1)));
452
refreshedDimension.Values.Add(new
MetricValue
<long>(2, start.AddSeconds(1), start.AddSeconds(3)));
453
refreshedDimension.Values.Add(new
MetricValue
<long>(3, start.AddSeconds(3), start.AddSeconds(4)));
455
newDimension.Values.Add(new
MetricValue
<long>(4, start.AddSeconds(3), start.AddSeconds(4)));
480
cachedDimension.Values.Add(new
MetricValue
<long>(1, start, start.AddSeconds(5)));
481
cachedDimension.Values.Add(new
MetricValue
<long>(2, start.AddSeconds(14), start.AddSeconds(15)));
482
cachedDimension.Values.Add(new
MetricValue
<long>(3, start.AddSeconds(29), start.AddSeconds(30)));
485
refreshedDimension.Values.Add(new
MetricValue
<long>(20, start.AddSeconds(14), start.AddSeconds(15)));
486
refreshedDimension.Values.Add(new
MetricValue
<long>(3, start.AddSeconds(29), start.AddSeconds(30)));