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