Started adding node-daemon communication. Added status endpoint

This commit is contained in:
=
2024-09-06 13:53:41 +00:00
parent 66e0fa2283
commit 6d4e1cdaaf
11 changed files with 144 additions and 24 deletions

View File

@@ -0,0 +1,22 @@
namespace MoonlightServers.DaemonShared.Http.Resources.Sys;
public class SystemInfoResponse
{
public string CpuModel { get; set; }
public double[] CpuUsage { get; set; }
public TimeSpan Uptime { get; set; }
public ulong MemoryTotal { get; set; }
public ulong MemoryFree { get; set; }
public ulong MemoryAvailable { get; set; }
public ulong MemoryCached { get; set; }
public ulong SwapTotal { get; set; }
public ulong SwapFree { get; set; }
public ulong DiskTotal { get; set; }
public ulong DiskFree { get; set; }
public ulong DiskTotalInodes { get; set; }
public ulong DiskFreeInodes { get; set; }
}