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)) 33var value = new MetricValue<T>(Value, StartTimeUnixNano, EndTimeUnixNano) { Count = Count };
Otlp\Storage\SqliteTelemetryRepository.Metrics.Reads.cs (2)
364LongPointType => new MetricValue<long>(point.IntegerValue!.Value, checked((ulong)point.StartTimeUnixNano), checked((ulong)point.EndTimeUnixNano)), 368DoublePointType => 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)
460dimension.Values.Add(new MetricValue<long>(4, boundaryUnixNano - 1_000, boundaryUnixNano + 50)); 472dimension.Values.Add(new MetricValue<long>(4, endUnixNano + 50, endUnixNano + 1_000));