1 instantiation of DimensionScope
Aspire.Dashboard (1)
Otlp\Model\MetricValues\DimensionScope.cs (1)
155
var newDimensionScope = new
DimensionScope
(value.Capacity, value.Attributes);
23 references to DimensionScope
Aspire.Dashboard (18)
Components\Controls\Chart\ChartBase.cs (6)
121
private (List<ChartTrace> Y, List<DateTimeOffset> X, List<ChartExemplar> Exemplars) CalculateHistogramValues(List<
DimensionScope
> dimensions, int pointCount, bool tickUpdate, DateTimeOffset inProgressDataTime, string yLabel)
213
internal bool TryCalculateHistogramPoints(List<
DimensionScope
> dimensions, DateTimeOffset start, DateTimeOffset end, Dictionary<int, ChartTrace> traces, List<ChartExemplar> exemplars)
223
foreach (
var
dimension in dimensions)
374
private (List<ChartTrace> Y, List<DateTimeOffset> X, List<ChartExemplar> Exemplars) CalculateChartValues(List<
DimensionScope
> dimensions, int pointCount, bool tickUpdate, DateTimeOffset inProgressDataTime, string yLabel)
434
private bool TryCalculatePoint(List<
DimensionScope
> dimensions, DateTimeOffset start, DateTimeOffset end, List<ChartExemplar> exemplars, out double pointValue)
439
foreach (
var
dimension in dimensions)
Components\Controls\Chart\ChartContainer.razor.cs (1)
116
private bool MatchDimension(
DimensionScope
dimension)
Model\InstrumentViewModel.cs (2)
12
public List<
DimensionScope
>? MatchedDimensions { get; private set; }
18
public async Task UpdateDataAsync(OtlpInstrumentSummary instrument, List<
DimensionScope
> matchedDimensions)
Otlp\Model\MetricValues\DimensionScope.cs (3)
153
internal static
DimensionScope
Clone(
DimensionScope
value, DateTime? valuesStart, DateTime? valuesEnd)
155
var
newDimensionScope = new DimensionScope(value.Capacity, value.Attributes);
Otlp\Model\OtlpInstrument.cs (5)
39
public Dictionary<ReadOnlyMemory<KeyValuePair<string, string>>,
DimensionScope
> Dimensions { get; } = new(ScopeAttributesComparer.Instance);
67
private
DimensionScope
FindScope(RepeatedField<KeyValue> attributes, ref KeyValuePair<string, string>[]? tempAttributes)
88
private
DimensionScope
CreateDimensionScope(Memory<KeyValuePair<string, string>> comparableAttributes)
92
var
dimension = new DimensionScope(Context.Options.MaxMetricsCount, durableAttributes);
141
newInstrument.Dimensions.Add(item.Key,
DimensionScope
.Clone(item.Value, valuesStart, valuesEnd));
Otlp\Storage\TelemetryRepository.cs (1)
1082
var allDimensions = new List<
DimensionScope
>();
Aspire.Dashboard.Components.Tests (1)
Controls\PlotlyChartTests.cs (1)
75
var
dimension = new DimensionScope(capacity: 100, []);
Aspire.Dashboard.Tests (4)
TelemetryRepositoryTests\MetricsTests.cs (4)
386
var
dimension = instrumentData.Dimensions.Single(d => d.Attributes.Length == 0);
479
var
dimension = Assert.Single(instrument.Dimensions);
620
private static void AssertDimensionValues(Dictionary<ReadOnlyMemory<KeyValuePair<string, string>>,
DimensionScope
> dimensions, ReadOnlyMemory<KeyValuePair<string, string>> key, int valueCount)
622
var
scope = dimensions[key];