Re-organised statistic endpoints and services/helpers
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
namespace MoonlightServers.DaemonShared.Http.Responses.Statistics;
|
||||
|
||||
public class StatisticsApplicationResponse
|
||||
{
|
||||
public int CpuUsage { get; set; }
|
||||
public long MemoryUsage { get; set; }
|
||||
public TimeSpan Uptime { get; set; }
|
||||
}
|
||||
@@ -1,11 +1,15 @@
|
||||
namespace MoonlightServers.DaemonShared.Http.Responses.Sys;
|
||||
namespace MoonlightServers.DaemonShared.Http.Responses.Statistics;
|
||||
|
||||
public class SystemDataUsageResponse
|
||||
public class StatisticsDockerResponse
|
||||
{
|
||||
public string Version { get; set; }
|
||||
|
||||
public long ImagesUsed { get; set; }
|
||||
public long ImagesReclaimable { get; set; }
|
||||
|
||||
public long ContainersUsed { get; set; }
|
||||
public long ContainersReclaimable { get; set; }
|
||||
|
||||
public long BuildCacheUsed { get; set; }
|
||||
public long BuildCacheReclaimable { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace MoonlightServers.DaemonShared.Http.Responses.Statistics;
|
||||
|
||||
public class StatisticsHostResponse
|
||||
{
|
||||
public string OperatingSystem { get; set; }
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
namespace MoonlightServers.DaemonShared.Http.Responses.Sys;
|
||||
|
||||
public class SystemInfoResponse
|
||||
{
|
||||
public string DockerVersion { get; set; }
|
||||
public string Version { get; set; }
|
||||
public string OsName { get; set; }
|
||||
public long MemoryUsage { get; set; }
|
||||
public TimeSpan Uptime { get; set; }
|
||||
public int CpuUsage { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user