From 88ecb2f4a53ad31ff083145089ba993320fad865 Mon Sep 17 00:00:00 2001 From: ryzij Date: Thu, 2 Jul 2026 14:35:37 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B8=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=B0=D0=BB=20ConnectionsResponse=20->=20Con?= =?UTF-8?q?nectionsCountResponse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{ConnectionsResponse.cs => ConnectionsCountResponse.cs} | 2 +- .../MonitorAgent.API/Controllers/MonitorController.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename Backend/MonitorAgent/MonitorAgent.API/Contracts/{ConnectionsResponse.cs => ConnectionsCountResponse.cs} (72%) diff --git a/Backend/MonitorAgent/MonitorAgent.API/Contracts/ConnectionsResponse.cs b/Backend/MonitorAgent/MonitorAgent.API/Contracts/ConnectionsCountResponse.cs similarity index 72% rename from Backend/MonitorAgent/MonitorAgent.API/Contracts/ConnectionsResponse.cs rename to Backend/MonitorAgent/MonitorAgent.API/Contracts/ConnectionsCountResponse.cs index 1e87c5d..a4dd50b 100644 --- a/Backend/MonitorAgent/MonitorAgent.API/Contracts/ConnectionsResponse.cs +++ b/Backend/MonitorAgent/MonitorAgent.API/Contracts/ConnectionsCountResponse.cs @@ -1,6 +1,6 @@ namespace MonitorAgent.API.Contracts; -public class ConnectionsResponse +public class ConnectionsCountResponse { public int Tcp {get;set;} public int Udp {get;set;} diff --git a/Backend/MonitorAgent/MonitorAgent.API/Controllers/MonitorController.cs b/Backend/MonitorAgent/MonitorAgent.API/Controllers/MonitorController.cs index 7039dcc..55bb021 100644 --- a/Backend/MonitorAgent/MonitorAgent.API/Controllers/MonitorController.cs +++ b/Backend/MonitorAgent/MonitorAgent.API/Controllers/MonitorController.cs @@ -49,11 +49,11 @@ public class MonitorController( return Ok(response); } - [HttpGet("connections")] + [HttpGet("connectionsCount")] public async Task GetConnectionsCountAsync(CancellationToken cancellationToken = default) { var count = await monitorService.GetConnectionsCountAsync(cancellationToken); - var response = new ConnectionsResponse + var response = new ConnectionsCountResponse { Tcp = count.TcpCount, Udp = count.UdpCount