6 instantiations of ListStructuredLogsTool
aspire (2)
Commands\AgentMcpCommand.cs (2)
186
_knownTools[KnownMcpTools.ListStructuredLogs] = new
ListStructuredLogsTool
(staticProvider, null, _httpClientFactory, _loggerFactory.CreateLogger<ListStructuredLogsTool>());
201
_knownTools[KnownMcpTools.ListStructuredLogs] = new
ListStructuredLogsTool
(dashboardInfoProvider, _auxiliaryBackchannelMonitor, _httpClientFactory, _loggerFactory.CreateLogger<ListStructuredLogsTool>());
Aspire.Cli.Tests (4)
Mcp\ExcludeFromMcpTests.cs (1)
1151
return new
ListStructuredLogsTool
(
Mcp\ListStructuredLogsToolTests.cs (3)
94
var tool = new
ListStructuredLogsTool
(
147
var tool = new
ListStructuredLogsTool
(
507
return new
ListStructuredLogsTool
(
45 references to ListStructuredLogsTool
aspire (3)
Commands\AgentMcpCommand.cs (2)
186
_knownTools[KnownMcpTools.ListStructuredLogs] = new ListStructuredLogsTool(staticProvider, null, _httpClientFactory, _loggerFactory.CreateLogger<
ListStructuredLogsTool
>());
201
_knownTools[KnownMcpTools.ListStructuredLogs] = new ListStructuredLogsTool(dashboardInfoProvider, _auxiliaryBackchannelMonitor, _httpClientFactory, _loggerFactory.CreateLogger<
ListStructuredLogsTool
>());
Mcp\Tools\ListStructuredLogsTool.cs (1)
20
internal sealed class ListStructuredLogsTool(IDashboardInfoProvider dashboardInfoProvider, IAuxiliaryBackchannelMonitor? auxiliaryBackchannelMonitor, IHttpClientFactory httpClientFactory, ILogger<
ListStructuredLogsTool
> logger) : CliMcpTool
Aspire.Cli.Tests (42)
Mcp\ExcludeFromMcpTests.cs (7)
321
var
tool = CreateStructuredLogsTool(monitor, mockHttpClientFactory);
341
var
tool = CreateStructuredLogsTool(monitor, mockHttpClientFactory);
783
var
tool = CreateStructuredLogsTool(CreateMonitorWithDashboardAndExcludedResource(), mockHttpClientFactory);
812
var
tool = CreateStructuredLogsTool(CreateMonitorWithDashboardAndExcludedResource(), factory);
838
var
tool = CreateStructuredLogsTool(CreateMonitorWithDashboardAndExcludedResource(), mockHttpClientFactory);
1146
private static
ListStructuredLogsTool
CreateStructuredLogsTool(
1155
NullLogger<
ListStructuredLogsTool
>.Instance);
Mcp\ListStructuredLogsToolTests.cs (35)
31
var
tool = CreateTool();
49
var
tool = CreateTool(monitor);
92
var logger = new TestLogger<
ListStructuredLogsTool
>(
94
var
tool = new ListStructuredLogsTool(
107
$"https://user:password@example.com:5000/api/telemetry/logs?t=actual-login-token&view=resources&limit={
ListStructuredLogsTool
.DefaultLimit}",
115
$"Fetching structured logs from https://example.com:5000/api/telemetry/logs?view=resources&limit={
ListStructuredLogsTool
.DefaultLimit}",
145
var logger = new TestLogger<
ListStructuredLogsTool
>(
147
var
tool = new ListStructuredLogsTool(
287
var
tool = CreateTool(monitor, mockHttpClientFactory);
380
var
tool = CreateTool(monitor, mockHttpClientFactory);
435
var
tool = CreateTool(monitor, mockHttpClientFactory);
455
var
tool = CreateTool();
463
var
tool = CreateTool();
471
var
tool = CreateTool();
485
var
tool = CreateTool();
501
private static
ListStructuredLogsTool
CreateTool(
511
NullLogger<
ListStructuredLogsTool
>.Instance);
574
var
tool = CreateTool(monitor, mockHttpClientFactory);
591
var
tool = CreateTool();
607
$"?accessKey=request-secret&view=resources&limit={
ListStructuredLogsTool
.DefaultLimit}",
642
var
tool = CreateTool(CreateMonitorWithDashboard(), new MockHttpClientFactory(handler));
652
Assert.Equal($"?severity=Warning&limit={
ListStructuredLogsTool
.DefaultLimit}", logsRequestUri.Query);
659
var
tool = CreateTool(CreateMonitorWithDashboard(), new MockHttpClientFactory(handler));
680
var
tool = CreateTool(CreateMonitorWithDashboard(), new MockHttpClientFactory(handler));
697
var
tool = CreateTool(CreateMonitorWithDashboard(), new MockHttpClientFactory(handler));
723
var
tool = CreateTool(CreateMonitorWithDashboard(), new MockHttpClientFactory(handler));
752
var
tool = CreateTool(CreateMonitorWithDashboard(), new MockHttpClientFactory(handler));
779
var
tool = CreateTool(CreateMonitorWithDashboard(), new MockHttpClientFactory(handler));
801
var
tool = CreateTool(CreateMonitorWithDashboard(), new MockHttpClientFactory(handler));
829
var
tool = CreateTool(CreateMonitorWithDashboard(), new MockHttpClientFactory(handler));
859
var
tool = CreateTool(CreateMonitorWithDashboard(), new MockHttpClientFactory(handler));
884
var
tool = CreateTool(CreateMonitorWithDashboard(), new MockHttpClientFactory(handler));
919
var
tool = CreateTool(CreateMonitorWithDashboard(), new MockHttpClientFactory(handler));
959
var
tool = CreateTool(CreateMonitorWithDashboard(), new MockHttpClientFactory(handler));
983
var
tool = CreateTool(CreateMonitorWithDashboard());