38 references to MetricsUrl
Aspire.Dashboard (12)
Components\Dialogs\ManageDataDialog.razor.cs (1)
272
AspireDataType.Metrics => new TelemetryDataRow { DataType = AspireDataType.Metrics, Icon = new Icons.Regular.Size16.ChartMultiple(), Url = DashboardUrls.
MetricsUrl
(resource: resourceName) },
Components\Layout\MainLayout.razor.cs (1)
630
NavigationManager.NavigateTo(DashboardUrls.
MetricsUrl
());
Components\Layout\ResourcesLayout.razor.cs (2)
1738
ResourceTab.Metrics => DashboardUrls.
MetricsUrl
(activeResourceName is not null && resourceNames.Contains(activeResourceName, StringComparers.ResourceName) ? activeResourceName : null),
1757
ResourceTab.Metrics => DashboardUrls.
MetricsUrl
(resourceName),
Components\Legacy\Layout\LegacyMainLayout.razor.cs (1)
549
NavigationManager.NavigateTo(DashboardUrls.
MetricsUrl
());
Components\Legacy\Layout\LegacyMobileNavMenu.razor.cs (2)
179
() => NavigateToAsync(LegacyNavUrls.ToLegacyUrl(DashboardUrls.
MetricsUrl
())),
182
LinkMatchRegex: GetNonIndexPageRegex(LegacyNavUrls.ToLegacyUrl(DashboardUrls.
MetricsUrl
()))
Components\Legacy\Pages\Metrics.razor.cs (1)
311
var url = DashboardUrls.
MetricsUrl
(
Components\Pages\Metrics.razor.cs (3)
805
var url = DashboardUrls.
MetricsUrl
(
846
var url = DashboardUrls.
MetricsUrl
(
882
var url = DashboardUrls.
MetricsUrl
(
Model\ResourceMenuBuilder.cs (1)
277
_navigationManager.NavigateTo(DashboardUrls.
MetricsUrl
(resource: ResourceViewModel.GetResourceName(resource, resourceByName)));
Aspire.Dashboard.Components.Tests (25)
Layout\MainLayoutResourceTerminalsTests.cs (2)
142
await cut.InvokeAsync(() => navigationManager.NavigateTo(DashboardUrls.
MetricsUrl
()));
145
navigationManager.ToAbsoluteUri(expected ? DashboardUrls.TerminalsUrl() : DashboardUrls.
MetricsUrl
()).AbsoluteUri,
Layout\ResourcesLayoutTests.cs (8)
916
navigation.NavigateTo(DashboardUrls.
MetricsUrl
("api"));
921
await cut.InvokeAsync(() => cut.FindAll(".resource-row-link").Single(link => link.GetAttribute("href") == DashboardUrls.
MetricsUrl
("cache")).Click());
925
await cut.InvokeAsync(() => cut.FindAll(".resource-row-link").Single(link => link.GetAttribute("href") == DashboardUrls.
MetricsUrl
("api"))
1337
navigation.NavigateTo(DashboardUrls.
MetricsUrl
("api"));
1343
cut.FindAll(".resource-row-link").Single(link => link.GetAttribute("href") == DashboardUrls.
MetricsUrl
("api")).Click();
1345
cut.FindAll(".resource-row-link").Single(link => link.GetAttribute("href") == DashboardUrls.
MetricsUrl
("worker")).Click(new Microsoft.AspNetCore.Components.Web.MouseEventArgs { CtrlKey = true });
1362
navigation.NavigateTo(DashboardUrls.
MetricsUrl
());
1366
cut.FindAll(".resource-row-link").Single(link => link.GetAttribute("href") == DashboardUrls.
MetricsUrl
("frontend")).Click(new Microsoft.AspNetCore.Components.Web.MouseEventArgs { MetaKey = true });
Pages\MetricsTests.cs (15)
340
Services.GetRequiredService<NavigationManager>().NavigateTo(DashboardUrls.
MetricsUrl
());
802
navigationManager.NavigateTo(DashboardUrls.
MetricsUrl
());
870
navigationManager.NavigateTo(DashboardUrls.
MetricsUrl
(
940
navigationManager.NavigateTo(DashboardUrls.
MetricsUrl
(resource: "TestApp", meter: "test-meter", instrument: "test-instrument"));
1171
DashboardUrls.
MetricsUrl
(resource: "TestApp", meter: "test-meter", instrument: "test-instrument", duration: 5, view: MetricViewKind.Graph.ToString()));
1221
DashboardUrls.
MetricsUrl
(resource: "TestApp", meter: "test-meter", duration: 5, view: MetricViewKind.Graph.ToString()));
1243
DashboardUrls.
MetricsUrl
(resource: "TestApp", meter: "test-meter", instrument: instrumentName, duration: 5, view: MetricViewKind.Graph.ToString()),
1301
DashboardUrls.
MetricsUrl
(resource: "TestApp", meter: "test-meter", instrument: "test-instrument", duration: 5, view: MetricViewKind.Graph.ToString()));
1363
DashboardUrls.
MetricsUrl
(resource: "TestApp", meter: "test-meter", duration: 5, view: MetricViewKind.Graph.ToString()));
1381
DashboardUrls.
MetricsUrl
(resource: "TestApp", duration: 5, view: MetricViewKind.Graph.ToString(), pinned: true),
1561
Services.GetRequiredService<NavigationManager>().NavigateTo(DashboardUrls.
MetricsUrl
(
1738
navigationManager.NavigateTo(DashboardUrls.
MetricsUrl
(resource: "TestApp", duration: 5, pinned: true));
1748
navigationManager.NavigateTo(DashboardUrls.
MetricsUrl
(resource: "TestApp", meter: "test-meter2", instrument: "queue.length", duration: 5));
1794
DashboardUrls.
MetricsUrl
(resource: "TestApp", meter: "test-meter", duration: 5));
1852
navigationManager.NavigateTo(DashboardUrls.
MetricsUrl
(resource: "TestApp", meter: "test-meter", instrument: app1InstrumentName, duration: 720, view: MetricViewKind.Table.ToString()));
Aspire.Dashboard.Tests (1)
DashboardUrlsTests.cs (1)
78
var url = DashboardUrls.
MetricsUrl
(