2 implementations of GetInstrumentSummaries
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.cs (1)
266public List<OtlpInstrumentSummary> GetInstrumentSummaries(ResourceKey key) => GetCachedInstrumentSummaries(key);
Aspire.Dashboard.Components.Tests (1)
Shared\TestTelemetryRepository.cs (1)
66public List<OtlpInstrumentSummary> GetInstrumentSummaries(ResourceKey key) => inner.GetInstrumentSummaries(key);
33 references to GetInstrumentSummaries
Aspire.Dashboard (8)
Components\Controls\ApplicationSummary.razor.cs (1)
331foreach (var instrument in repository.GetInstrumentSummaries(resource.ResourceKey))
Components\Legacy\Pages\Metrics.razor.cs (2)
186viewModel.Instruments = selectedInstance != null ? TelemetryRepository.GetInstrumentSummaries(selectedInstance.Value) : null; 345var instruments = TelemetryRepository.GetInstrumentSummaries(selectedResourceKey.Value);
Components\Pages\Metrics.razor.cs (3)
359viewModel.Instruments = selectedInstance != null ? TelemetryRepository.GetInstrumentSummaries(selectedInstance.Value) : null; 370[.. (_aggregateResources ?? []).SelectMany(resource => TelemetryRepository.GetInstrumentSummaries(resource.ResourceKey))]; 917? TelemetryRepository.GetInstrumentSummaries(selectedResourceKey.Value)
Components\Pages\ResourceOverview.razor.cs (1)
351var instruments = repository.GetInstrumentSummaries(key)
Model\TelemetryExportService.cs (1)
190var instrumentSummaries = _dataSource.TelemetryRepository.GetInstrumentSummaries(resource.ResourceKey);
Aspire.Dashboard.Components.Tests (3)
Pages\MetricsTests.cs (2)
1608var instruments = repository.GetInstrumentSummaries(resource.ResourceKey); 1677builder.Add(c => c.Instruments, repository.GetInstrumentSummaries(resource.ResourceKey));
Shared\TestTelemetryRepository.cs (1)
66public List<OtlpInstrumentSummary> GetInstrumentSummaries(ResourceKey key) => inner.GetInstrumentSummaries(key);
Aspire.Dashboard.Tests (22)
Integration\OtlpHttpJsonTests.cs (2)
714var instruments = telemetryRepository.GetInstrumentSummaries(resource.ResourceKey); 765var instruments = telemetryRepository.GetInstrumentSummaries(resource.ResourceKey);
TelemetryRepositoryTests\MetricsTests.cs (12)
467var instruments = repositoryContext.Repository.GetInstrumentSummaries(resources[0].ResourceKey); 1060var instruments = repositoryContext.Repository.GetInstrumentSummaries(resourceKey); 1170var resource1Instruments = repositoryContext.Repository.GetInstrumentSummaries(resource1Key); 1174var resource2Instruments = repositoryContext.Repository.GetInstrumentSummaries(resource2Key); 1245var resource1Instruments = repositoryContext.Repository.GetInstrumentSummaries(resource1Key); 1280var resource2Instruments = repositoryContext.Repository.GetInstrumentSummaries(resource2Key); 1395var resource1Instruments = repositoryContext.Repository.GetInstrumentSummaries(resource1Key); 1421var resource2Instruments = repositoryContext.Repository.GetInstrumentSummaries(resource2Key); 1502var resource1Instruments = repositoryContext.Repository.GetInstrumentSummaries(resource1Key); 1557repositoryContext.Repository.GetInstrumentSummaries(new ResourceKey("TestService", "TestId")), 1993var instruments = repositoryContext.Repository.GetInstrumentSummaries(resources[0].ResourceKey); 3223Assert.Single(repositoryContext.Repository.GetInstrumentSummaries(CreateResource().GetResourceKey()));
TelemetryRepositoryTests\TelemetryLimitTests.cs (2)
157var instruments = repositoryContext.Repository.GetInstrumentSummaries(resources[0].ResourceKey); 181instruments = repositoryContext.Repository.GetInstrumentSummaries(resources[0].ResourceKey);
TelemetryRepositoryTests\TelemetryRepositoryTests.cs (6)
58Assert.NotEmpty(repositoryContext.Repository.GetInstrumentSummaries(resource.ResourceKey)); 242var resource1Metrics = repositoryContext.Repository.GetInstrumentSummaries(new ResourceKey("resource1", "123")); 254var resource2Metrics = repositoryContext.Repository.GetInstrumentSummaries(new ResourceKey("resource2", "456")); 285var resource1Metrics = repositoryContext.Repository.GetInstrumentSummaries(new ResourceKey("resource1", "111")); 288var resource3Metrics = repositoryContext.Repository.GetInstrumentSummaries(new ResourceKey("resource3", "333")); 357var metrics = repositoryContext.Repository.GetInstrumentSummaries(new ResourceKey("resource1", "123"));