aa
This commit is contained in:
@@ -6,21 +6,18 @@ namespace watcher_monitoring.Payloads;
|
||||
public class HardwareDto
|
||||
{
|
||||
[Required]
|
||||
public required int Id;
|
||||
|
||||
[Required]
|
||||
public string? IpAddress { get; set; }
|
||||
public required int id;
|
||||
|
||||
// Hardware Info
|
||||
[Required]
|
||||
public string? CpuType { get; set; }
|
||||
public string? cpuType { get; set; }
|
||||
|
||||
[Required]
|
||||
public int CpuCores { get; set; }
|
||||
public int cpuCores { get; set; }
|
||||
|
||||
[Required]
|
||||
public string? GpuType { get; set; }
|
||||
public string? gpuType { get; set; }
|
||||
|
||||
[Required]
|
||||
public double RamSize { get; set; }
|
||||
public double ramSize { get; set; }
|
||||
}
|
||||
44
watcher-monitoring/Payloads/MetricDto.cs
Normal file
44
watcher-monitoring/Payloads/MetricDto.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace watcher_monitoring.Payloads;
|
||||
|
||||
public class MetricDto
|
||||
{
|
||||
// Server Identity
|
||||
[Required]
|
||||
public int id { get; set; }
|
||||
|
||||
// Hardware Metrics
|
||||
// CPU
|
||||
public double cpuLoad { get; set; } // %
|
||||
|
||||
public double cpuTemp { get; set; } // deg C
|
||||
|
||||
// GPU
|
||||
public double gpuLoad { get; set; } // %
|
||||
|
||||
public double gpuTemp { get; set; } // deg C
|
||||
|
||||
public double vRamSize { get; set; } // Bytes
|
||||
|
||||
public double vRamLoad { get; set; } // %
|
||||
|
||||
// RAM
|
||||
public double ramSize { get; set; } // Bytes
|
||||
|
||||
public double ramLoad { get; set; } // %
|
||||
|
||||
// Disks
|
||||
public double diskSize { get; set; } // Bytes
|
||||
|
||||
public double diskLoad { get; set; } // Bytes
|
||||
|
||||
public double diskTempp { get; set; } // deg C (if available)
|
||||
|
||||
// Network
|
||||
public double netIn { get; set; } // Bytes/s
|
||||
|
||||
public double netOut { get; set; } // Bytes/s
|
||||
|
||||
}
|
||||
@@ -7,5 +7,7 @@ namespace watcher_monitoring.Payloads;
|
||||
public class RegistrationDto
|
||||
{
|
||||
[Required]
|
||||
public required string IpAddress { get; set; }
|
||||
public required string ipAddress { get; set; }
|
||||
|
||||
public required string hostName { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user