21 lines
626 B
C#
21 lines
626 B
C#
using MCVIngenieros.Healthchecks.Abstracts;
|
|
|
|
namespace MCVIngenieros.Healthchecks.Options;
|
|
|
|
public partial class HealthChecksConfigs
|
|
{
|
|
public string? Description { get; init; }
|
|
public int? RetryAttempts { get; init; }
|
|
public TimeSpan? Timeout { get; init; }
|
|
public TimeSpan? RetryDelay { get; init; }
|
|
public HealthCheckSeverity? Severity { get; init; }
|
|
|
|
public static readonly HealthChecksConfigs Default = new()
|
|
{
|
|
RetryAttempts = 2,
|
|
Timeout = TimeSpan.FromMinutes(5),
|
|
RetryDelay = TimeSpan.FromMilliseconds(100),
|
|
Severity = HealthCheckSeverity.Critical
|
|
};
|
|
}
|