mirror of
https://github.com/ryzij/ServerMonitor.git
synced 2026-07-14 03:46:58 +00:00
Переименовал ConnectionsResponse -> ConnectionsCountResponse
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
namespace MonitorAgent.API.Contracts;
|
namespace MonitorAgent.API.Contracts;
|
||||||
|
|
||||||
public class ConnectionsResponse
|
public class ConnectionsCountResponse
|
||||||
{
|
{
|
||||||
public int Tcp {get;set;}
|
public int Tcp {get;set;}
|
||||||
public int Udp {get;set;}
|
public int Udp {get;set;}
|
||||||
@@ -49,11 +49,11 @@ public class MonitorController(
|
|||||||
return Ok(response);
|
return Ok(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("connections")]
|
[HttpGet("connectionsCount")]
|
||||||
public async Task<ActionResult> GetConnectionsCountAsync(CancellationToken cancellationToken = default)
|
public async Task<ActionResult> GetConnectionsCountAsync(CancellationToken cancellationToken = default)
|
||||||
{
|
{
|
||||||
var count = await monitorService.GetConnectionsCountAsync(cancellationToken);
|
var count = await monitorService.GetConnectionsCountAsync(cancellationToken);
|
||||||
var response = new ConnectionsResponse
|
var response = new ConnectionsCountResponse
|
||||||
{
|
{
|
||||||
Tcp = count.TcpCount,
|
Tcp = count.TcpCount,
|
||||||
Udp = count.UdpCount
|
Udp = count.UdpCount
|
||||||
|
|||||||
Reference in New Issue
Block a user