namespace MiGu.Server.Fleet;

/// <summary>与 SimpleLite GET /projection/fleet/health 行对齐，供车队运维前端消费。</summary>
public sealed class FleetHealthRowDto
{
    public int CarId { get; set; }
    public string? CarName { get; set; }
    public string? Ip { get; set; }
    public string? OnboardUrl { get; set; }
    public int? LatencyMs { get; set; }
    public bool? Reachable { get; set; }
    public string? ProbedAt { get; set; }
    public double? UptimeSecs { get; set; }
    public double? AlarmActiveSecs { get; set; }
    public double? FaultRatePercent { get; set; }
    public bool? IsAlarmActive { get; set; }
    public double? CpuPercent { get; set; }
    public double? MemPercent { get; set; }
    /// <summary>latency 探测通道：watchdog | onboard | none</summary>
    public string? LatencySource { get; set; }
}
