11 references to MetricTimeBucketWidthUnixNano
Aspire.Dashboard (8)
Otlp\Storage\SqliteTelemetryRepository.Metrics.Reads.cs (2)
17
private static readonly string s_metricPointRangeFilterSql = string.Create(CultureInfo.InvariantCulture, $"p.start_time_unix_nano <= @EndUnixNano AND p.end_time_unix_nano >= r.start_time_unix_nano AND p.end_time_bucket >= r.start_time_unix_nano / {
MetricTimeBucketWidthUnixNano
}");
18
private static readonly string s_metricSourcePointRangeFilterSql = string.Create(CultureInfo.InvariantCulture, $"source.start_time_unix_nano <= @EndUnixNano AND source.end_time_unix_nano >= r.start_time_unix_nano AND source.end_time_bucket >= r.start_time_unix_nano / {
MetricTimeBucketWidthUnixNano
}");
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (6)
340
.GroupBy(static update => update.OriginalEndTimeUnixNano /
MetricTimeBucketWidthUnixNano
!= update.EndTimeUnixNano /
MetricTimeBucketWidthUnixNano
)
345
var bucketAssignment = updates[0].OriginalEndTimeUnixNano /
MetricTimeBucketWidthUnixNano
!= updates[0].EndTimeUnixNano /
MetricTimeBucketWidthUnixNano
346
? string.Create(CultureInfo.InvariantCulture, $", end_time_bucket = updates.end_time_unix_nano / {
MetricTimeBucketWidthUnixNano
}")
400
parameters[14].Value = point.EndTimeUnixNano /
MetricTimeBucketWidthUnixNano
;
Aspire.Dashboard.Tests (3)
TelemetryRepositoryTests\HistogramTests.cs (1)
85
Assert.Equal(endTimeUnixNano / SqliteTelemetryRepository.
MetricTimeBucketWidthUnixNano
, reader.GetInt64(1));
TelemetryRepositoryTests\MetricsTests.cs (2)
1735
Assert.Equal(secondEnd / SqliteTelemetryRepository.
MetricTimeBucketWidthUnixNano
, reader.GetInt64(1));
1799
Assert.Equal(finalEnd / SqliteTelemetryRepository.
MetricTimeBucketWidthUnixNano
, reader.GetInt64(1));