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