Files
Cleanuparr/code/Infrastructure/Health/HealthStatus.cs
Flaminel f2027f77a9 #12
2025-05-16 19:16:32 +03:00

43 lines
1.1 KiB
C#

namespace Infrastructure.Health;
/// <summary>
/// Represents the health status of a client
/// </summary>
public class HealthStatus
{
/// <summary>
/// Gets or sets whether the client is healthy
/// </summary>
public bool IsHealthy { get; set; }
/// <summary>
/// Gets or sets the time when the client was last checked
/// </summary>
public DateTime LastChecked { get; set; }
/// <summary>
/// Gets or sets the error message if the client is not healthy
/// </summary>
public string? ErrorMessage { get; set; }
/// <summary>
/// Gets or sets the response time of the last health check
/// </summary>
public TimeSpan ResponseTime { get; set; }
/// <summary>
/// Gets or sets the client ID
/// </summary>
public string ClientId { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the client name
/// </summary>
public string ClientName { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the client type
/// </summary>
public Common.Enums.DownloadClient ClientType { get; set; }
}