namespace Cleanuparr.Infrastructure.Stats;
///
/// Cached health snapshot for a single download client.
///
public class DownloadClientHealthDto
{
///
/// Unique identifier of the download client.
///
public Guid Id { get; set; }
///
/// Display name of the download client.
///
public string Name { get; set; } = string.Empty;
///
/// Client type (qBittorrent, Transmission, Deluge, ...).
///
public string Type { get; set; } = string.Empty;
///
/// Whether the last health check succeeded.
///
public bool IsHealthy { get; set; }
///
/// When the last health check ran (UTC).
///
public DateTimeOffset LastChecked { get; set; }
///
/// Response time of the last health check in milliseconds, or null if unavailable.
///
public double? ResponseTimeMs { get; set; }
///
/// Error message from the last health check, or null when healthy.
///
public string? ErrorMessage { get; set; }
}