4 writes to StartTime
Aspire.Dashboard (1)
Components\Controls\Chart\MetricInstrumentDataCache.cs (1)
35
StartTime
= OtlpHelpers.UnixNanoSecondsToDateTime(Math.Min(latestValue.StartTimeUnixNano, alignedLookbackStartUnixNano))
Aspire.Dashboard.Tests (3)
ChartDataCalculatorTests.cs (2)
1129
new() { Attributes = firstAttributes,
StartTime
= start.AddSeconds(1) }
1186
[new MetricDimensionCursor { Attributes = [],
StartTime
= start.AddSeconds(60) }],
TelemetryRepositoryTests\MetricsTests.cs (1)
2773
StartTime
= s_queryTestTime.AddMinutes(1.5)
6 references to StartTime
Aspire.Dashboard (3)
Components\Controls\Chart\MetricInstrumentDataCache.cs (2)
63
var cursorUnixNano = OtlpHelpers.DateTimeToUnixNanoseconds(cursor.
StartTime
);
67
(isDeltaNumber ? value.EndTimeUnixNano <= cursorUnixNano : value.End < cursor.
StartTime
))
Otlp\Storage\SqliteTelemetryRepository.Metrics.Reads.cs (1)
467
queryParameters.Add($"DimensionStartUnixNano{i}", GetMetricQueryTimeUnixNano(cursor?.
StartTime
?? defaultStartTime ?? DateTime.UnixEpoch, upperBound: false));
Aspire.Dashboard.Tests (3)
ChartDataCalculatorTests.cs (1)
1160
Assert.Equal(start.AddSeconds(10), Assert.Single(cursors).
StartTime
);
TelemetryRepositoryTests\MetricsTests.cs (2)
2461
Assert.Equal(s_queryTestTime.AddTicks(7), Assert.Single(cursors).
StartTime
);
2853
Assert.Equal(s_queryTestTime, cursor.
StartTime
);