11 references to Instruments
Aspire.Dashboard (7)
Components\Controls\Chart\LiveSparklinesBase.cs (5)
96var parameters = (ResourceKey, Duration, string.Join('\n', Instruments.Select(i => $"{GetResourceKey(i)}\t{i.Parent.Name}\t{i.Name}"))); 132var visible = Instruments 138var toRefresh = Instruments.Where(i => _staleInstruments.Contains((GetResourceKey(i), i.GetKey()))).Where(i => visible.Contains((GetResourceKey(i), i.GetKey()))).ToList(); 197return RefreshInstrumentsAsync(Instruments, replaceAll: true, cancellationToken); 201foreach (var instrument in Instruments)
Components\Controls\Chart\MeterOverview.razor.cs (2)
46/// Gets or sets how cards are ordered. Null keeps the order of <see cref="LiveSparklinesBase.Instruments"/>. 143var ordered = Instruments.OrderBy(i => GetSparkline(i).LatestValue is null);
Aspire.Dashboard.Components.Tests (4)
Pages\MetricsTests.cs (4)
1770builder.Add(c => c.Instruments, instruments); 1834builder.Add(c => c.Instruments, repository.GetInstrumentSummaries(resource.ResourceKey)); 1857builder.Add(c => c.Instruments, telemetryRepository.GetInstrumentSummaries(resource.ResourceKey)); 1932builder.Add(c => c.Instruments, telemetryRepository.GetInstrumentSummaries(resource.ResourceKey));