45 lines
942 B
C#
45 lines
942 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace AmtScanner.Api.Models;
|
|
|
|
public class AmtDevice
|
|
{
|
|
[Key]
|
|
public long Id { get; set; }
|
|
|
|
[Required]
|
|
public string IpAddress { get; set; } = string.Empty;
|
|
|
|
public string? Hostname { get; set; }
|
|
|
|
public int MajorVersion { get; set; }
|
|
|
|
public int MinorVersion { get; set; }
|
|
|
|
public ProvisioningState ProvisioningState { get; set; }
|
|
|
|
public string? Description { get; set; }
|
|
|
|
/// <summary>
|
|
/// AMT 在线状态(端口是否可访问)
|
|
/// </summary>
|
|
public bool AmtOnline { get; set; }
|
|
|
|
/// <summary>
|
|
/// 操作系统在线状态(电源状态是否为开机)
|
|
/// </summary>
|
|
public bool OsOnline { get; set; }
|
|
|
|
public DateTime DiscoveredAt { get; set; }
|
|
|
|
public DateTime LastSeenAt { get; set; }
|
|
}
|
|
|
|
public enum ProvisioningState
|
|
{
|
|
UNKNOWN,
|
|
PRE,
|
|
IN,
|
|
POST
|
|
}
|