Started with servers sync to daemon

This commit is contained in:
2024-12-24 00:42:17 +01:00
parent 4326af2925
commit 9f8c1f6d24
19 changed files with 271 additions and 12 deletions

View File

@@ -0,0 +1,8 @@
namespace MoonlightServers.DaemonShared.DaemonSide.Http.Responses.Statistics;
public class StatisticsApplicationResponse
{
public int CpuUsage { get; set; }
public long MemoryUsage { get; set; }
public TimeSpan Uptime { get; set; }
}

View File

@@ -0,0 +1,15 @@
namespace MoonlightServers.DaemonShared.DaemonSide.Http.Responses.Statistics;
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; }
}

View File

@@ -0,0 +1,6 @@
namespace MoonlightServers.DaemonShared.DaemonSide.Http.Responses.Statistics;
public class StatisticsHostResponse
{
public string OperatingSystem { get; set; }
}

View File

@@ -0,0 +1,9 @@
namespace MoonlightServers.DaemonShared.DaemonSide.Http.Responses.Sys;
public class SystemStatusResponse
{
public bool TripSuccess { get; set; }
public TimeSpan TripTime { get; set; }
public string? TripError { get; set; }
public string Version { get; set; }
}