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