9 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)
39/// Gets or sets how cards are ordered. Null keeps the order of <see cref="LiveSparklinesBase.Instruments"/>. 107var ordered = Instruments.OrderBy(i => GetSparkline(i).LatestValue is null);
Aspire.Dashboard.Components.Tests (2)
Pages\MetricsTests.cs (2)
1480builder.Add(c => c.Instruments, instruments); 1512builder.Add(c => c.Instruments, telemetryRepository.GetInstrumentSummaries(resource.ResourceKey));