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