38 references to MetricsUrl
Aspire.Dashboard (12)
Components\Dialogs\ManageDataDialog.razor.cs (1)
272AspireDataType.Metrics => new TelemetryDataRow { DataType = AspireDataType.Metrics, Icon = new Icons.Regular.Size16.ChartMultiple(), Url = DashboardUrls.MetricsUrl(resource: resourceName) },
Components\Layout\MainLayout.razor.cs (1)
630NavigationManager.NavigateTo(DashboardUrls.MetricsUrl());
Components\Layout\ResourcesLayout.razor.cs (2)
2539ResourceTab.Metrics => DashboardUrls.MetricsUrl(activeResourceName is not null && resourceNames.Contains(activeResourceName, StringComparers.ResourceName) ? activeResourceName : null), 2558ResourceTab.Metrics => DashboardUrls.MetricsUrl(resourceName),
Components\Legacy\Layout\LegacyMainLayout.razor.cs (1)
546NavigationManager.NavigateTo(DashboardUrls.MetricsUrl());
Components\Legacy\Layout\LegacyMobileNavMenu.razor.cs (2)
179() => NavigateToAsync(LegacyNavUrls.ToLegacyUrl(DashboardUrls.MetricsUrl())), 182LinkMatchRegex: GetNonIndexPageRegex(LegacyNavUrls.ToLegacyUrl(DashboardUrls.MetricsUrl()))
Components\Legacy\Pages\Metrics.razor.cs (1)
311var url = DashboardUrls.MetricsUrl(
Components\Pages\Metrics.razor.cs (3)
816var url = DashboardUrls.MetricsUrl( 857var url = DashboardUrls.MetricsUrl( 893var url = DashboardUrls.MetricsUrl(
Model\ResourceMenuBuilder.cs (1)
282_navigationManager.NavigateTo(DashboardUrls.MetricsUrl(resource: ResourceViewModel.GetResourceName(resource, resourceByName)));
Aspire.Dashboard.Components.Tests (25)
Layout\MainLayoutResourceTerminalsTests.cs (2)
142await cut.InvokeAsync(() => navigationManager.NavigateTo(DashboardUrls.MetricsUrl())); 145navigationManager.ToAbsoluteUri(expected ? DashboardUrls.TerminalsUrl() : DashboardUrls.MetricsUrl()).AbsoluteUri,
Layout\ResourcesLayoutTests.cs (6)
2819navigation.NavigateTo(DashboardUrls.MetricsUrl("api")); 2825cut.FindAll(".resource-row-link").Single(link => link.GetAttribute("href") == DashboardUrls.MetricsUrl("api")).Click(); 2827cut.FindAll(".resource-row-link").Single(link => link.GetAttribute("href") == DashboardUrls.MetricsUrl("worker")).Click(new Microsoft.AspNetCore.Components.Web.MouseEventArgs { CtrlKey = true }); 2850Services.GetRequiredService<NavigationManager>().NavigateTo(DashboardUrls.MetricsUrl()); 2892navigation.NavigateTo(DashboardUrls.MetricsUrl()); 2896cut.FindAll(".resource-row-link").Single(link => link.GetAttribute("href") == DashboardUrls.MetricsUrl("frontend")).Click(new Microsoft.AspNetCore.Components.Web.MouseEventArgs { MetaKey = true });
Pages\MetricsTests.cs (17)
363Services.GetRequiredService<NavigationManager>().NavigateTo(DashboardUrls.MetricsUrl()); 401Services.GetRequiredService<NavigationManager>().NavigateTo(DashboardUrls.AddResourceSelection(DashboardUrls.MetricsUrl(), ["app1", "app2"])); 447Services.GetRequiredService<NavigationManager>().NavigateTo(DashboardUrls.AddResourceSelection(DashboardUrls.MetricsUrl(), ["api", "worker"])); 934navigationManager.NavigateTo(DashboardUrls.MetricsUrl()); 1002navigationManager.NavigateTo(DashboardUrls.MetricsUrl( 1072navigationManager.NavigateTo(DashboardUrls.MetricsUrl(resource: "TestApp", meter: "test-meter", instrument: "test-instrument")); 1303DashboardUrls.MetricsUrl(resource: "TestApp", meter: "test-meter", instrument: "test-instrument", duration: 5, view: MetricViewKind.Graph.ToString())); 1353DashboardUrls.MetricsUrl(resource: "TestApp", meter: "test-meter", duration: 5, view: MetricViewKind.Graph.ToString())); 1375DashboardUrls.MetricsUrl(resource: "TestApp", meter: "test-meter", instrument: instrumentName, duration: 5, view: MetricViewKind.Graph.ToString()), 1433DashboardUrls.MetricsUrl(resource: "TestApp", meter: "test-meter", instrument: "test-instrument", duration: 5, view: MetricViewKind.Graph.ToString())); 1495DashboardUrls.MetricsUrl(resource: "TestApp", meter: "test-meter", duration: 5, view: MetricViewKind.Graph.ToString())); 1513DashboardUrls.MetricsUrl(resource: "TestApp", duration: 5, view: MetricViewKind.Graph.ToString(), pinned: true), 1802Services.GetRequiredService<NavigationManager>().NavigateTo(DashboardUrls.MetricsUrl( 1979navigationManager.NavigateTo(DashboardUrls.MetricsUrl(resource: "TestApp", duration: 5, pinned: true)); 1989navigationManager.NavigateTo(DashboardUrls.MetricsUrl(resource: "TestApp", meter: "test-meter2", instrument: "queue.length", duration: 5)); 2035DashboardUrls.MetricsUrl(resource: "TestApp", meter: "test-meter", duration: 5)); 2093navigationManager.NavigateTo(DashboardUrls.MetricsUrl(resource: "TestApp", meter: "test-meter", instrument: app1InstrumentName, duration: 720, view: MetricViewKind.Table.ToString()));
Aspire.Dashboard.Tests (1)
DashboardUrlsTests.cs (1)
78var url = DashboardUrls.MetricsUrl(