1 instantiation of DimensionScope
Aspire.Dashboard (1)
Otlp\Model\MetricValues\DimensionScope.cs (1)
162var newDimensionScope = new DimensionScope(value.Capacity, value.Attributes);
29 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)
118private 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)
160internal static DimensionScope Clone(DimensionScope value, DateTime? valuesStart, DateTime? valuesEnd) 162var newDimensionScope = new DimensionScope(value.Capacity, value.Attributes);
Otlp\Model\OtlpInstrument.cs (5)
39public Dictionary<ReadOnlyMemory<KeyValuePair<string, string>>, DimensionScope> Dimensions { get; } = new(ScopeAttributesComparer.Instance); 43public DimensionScope FindScope(RepeatedField<KeyValue> attributes, ref KeyValuePair<string, string>[]? tempAttributes) 71private DimensionScope CreateDimensionScope(Memory<KeyValuePair<string, string>> comparableAttributes) 75var dimension = new DimensionScope(Context.Options.MaxMetricsCount, durableAttributes); 125newInstrument.Dimensions.Add(item.Key, DimensionScope.Clone(item.Value, valuesStart, valuesEnd));
Otlp\Storage\TelemetryRepository.cs (1)
1187var allDimensions = new List<DimensionScope>();
Aspire.Dashboard.Components.Tests (1)
Controls\PlotlyChartTests.cs (1)
75var dimension = new DimensionScope(capacity: 100, []);
Aspire.Dashboard.Tests (10)
TelemetryRepositoryTests\MetricsTests.cs (10)
394var dimension = instrumentData.Dimensions.Single(d => d.Attributes.Length == 0); 487var dimension = Assert.Single(instrument.Dimensions); 789var app1Test1Dimensions = Assert.Single(app1Test1Instrument.Dimensions); 842var app2Test1Dimensions = Assert.Single(app2Test1Instrument.Dimensions); 857var app2Test3Dimensions = Assert.Single(app2Test3Instrument.Dimensions); 982var app2Test1Dimensions = Assert.Single(app2Test1Instrument.Dimensions); 997var app2Test3Dimensions = Assert.Single(app2Test3Instrument.Dimensions); 1128var dimension = Assert.Single(instrument.Dimensions); 1195private static void AssertDimensionValues(Dictionary<ReadOnlyMemory<KeyValuePair<string, string>>, DimensionScope> dimensions, ReadOnlyMemory<KeyValuePair<string, string>> key, int valueCount) 1197var scope = dimensions[key];