2 implementations of GetInstrumentSummaries
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.cs (1)
268
public List<OtlpInstrumentSummary>
GetInstrumentSummaries
(ResourceKey key) => GetCachedInstrumentSummaries(key);
Aspire.Dashboard.Components.Tests (1)
Shared\TestTelemetryRepository.cs (1)
77
public List<OtlpInstrumentSummary>
GetInstrumentSummaries
(ResourceKey key) => inner.GetInstrumentSummaries(key);
35 references to GetInstrumentSummaries
Aspire.Dashboard (9)
Components\Controls\ApplicationSummary.razor.cs (1)
440
.Sum(r => repository.
GetInstrumentSummaries
(r.ResourceKey).Count);
Components\Controls\Overview\OverviewTelemetry.cs (1)
41
var instruments = repository.
GetInstrumentSummaries
(key)
Components\Legacy\Pages\Metrics.razor.cs (2)
186
viewModel.Instruments = selectedInstance != null ? TelemetryRepository.
GetInstrumentSummaries
(selectedInstance.Value) : null;
340
var instruments = TelemetryRepository.
GetInstrumentSummaries
(selectedResourceKey.Value);
Components\Pages\Metrics.razor.cs (4)
377
else if (!keys.Any(key => TelemetryRepository.
GetInstrumentSummaries
(key).Any(i =>
409
viewModel.Instruments = selectedInstance != null ? TelemetryRepository.
GetInstrumentSummaries
(selectedInstance.Value) : null;
420
[.. (_aggregateResources ?? []).SelectMany(resource => TelemetryRepository.
GetInstrumentSummaries
(resource.ResourceKey))];
923
? TelemetryRepository.
GetInstrumentSummaries
(selectedResourceKey.Value)
Model\TelemetryExportService.cs (1)
190
var instrumentSummaries = _dataSource.TelemetryRepository.
GetInstrumentSummaries
(resource.ResourceKey);
Aspire.Dashboard.Components.Tests (4)
Pages\MetricsTests.cs (3)
2080
var instruments = repository.
GetInstrumentSummaries
(resource.ResourceKey);
2150
.Add(c => c.Instruments, repository.
GetInstrumentSummaries
(resource.ResourceKey))
2217
builder.Add(c => c.Instruments, repository.
GetInstrumentSummaries
(resource.ResourceKey));
Shared\TestTelemetryRepository.cs (1)
77
public List<OtlpInstrumentSummary> GetInstrumentSummaries(ResourceKey key) => inner.
GetInstrumentSummaries
(key);
Aspire.Dashboard.Tests (22)
Integration\OtlpHttpJsonTests.cs (2)
714
var instruments = telemetryRepository.
GetInstrumentSummaries
(resource.ResourceKey);
765
var instruments = telemetryRepository.
GetInstrumentSummaries
(resource.ResourceKey);
TelemetryRepositoryTests\MetricsTests.cs (12)
467
var instruments = repositoryContext.Repository.
GetInstrumentSummaries
(resources[0].ResourceKey);
1060
var instruments = repositoryContext.Repository.
GetInstrumentSummaries
(resourceKey);
1170
var resource1Instruments = repositoryContext.Repository.
GetInstrumentSummaries
(resource1Key);
1174
var resource2Instruments = repositoryContext.Repository.
GetInstrumentSummaries
(resource2Key);
1245
var resource1Instruments = repositoryContext.Repository.
GetInstrumentSummaries
(resource1Key);
1280
var resource2Instruments = repositoryContext.Repository.
GetInstrumentSummaries
(resource2Key);
1395
var resource1Instruments = repositoryContext.Repository.
GetInstrumentSummaries
(resource1Key);
1421
var resource2Instruments = repositoryContext.Repository.
GetInstrumentSummaries
(resource2Key);
1502
var resource1Instruments = repositoryContext.Repository.
GetInstrumentSummaries
(resource1Key);
1557
repositoryContext.Repository.
GetInstrumentSummaries
(new ResourceKey("TestService", "TestId")),
1993
var instruments = repositoryContext.Repository.
GetInstrumentSummaries
(resources[0].ResourceKey);
3231
Assert.Single(repositoryContext.Repository.
GetInstrumentSummaries
(CreateResource().GetResourceKey()));
TelemetryRepositoryTests\TelemetryLimitTests.cs (2)
157
var instruments = repositoryContext.Repository.
GetInstrumentSummaries
(resources[0].ResourceKey);
181
instruments = repositoryContext.Repository.
GetInstrumentSummaries
(resources[0].ResourceKey);
TelemetryRepositoryTests\TelemetryRepositoryTests.cs (6)
58
Assert.NotEmpty(repositoryContext.Repository.
GetInstrumentSummaries
(resource.ResourceKey));
242
var resource1Metrics = repositoryContext.Repository.
GetInstrumentSummaries
(new ResourceKey("resource1", "123"));
254
var resource2Metrics = repositoryContext.Repository.
GetInstrumentSummaries
(new ResourceKey("resource2", "456"));
285
var resource1Metrics = repositoryContext.Repository.
GetInstrumentSummaries
(new ResourceKey("resource1", "111"));
288
var resource3Metrics = repositoryContext.Repository.
GetInstrumentSummaries
(new ResourceKey("resource3", "333"));
357
var metrics = repositoryContext.Repository.
GetInstrumentSummaries
(new ResourceKey("resource1", "123"));