creates simple healthchecks

This commit is contained in:
2025-08-25 23:46:04 +02:00
commit b81eb5b9f5
21 changed files with 2835 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
namespace MCVIngenieros.Healthchecks.Options;
public class HealthCheckOptions
{
public string? CacheDuration { get; set; }
public string? Timeout { get; set; }
public string[]? AssembliesToScan { get; set; }
}

View File

@@ -0,0 +1,20 @@
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
};
}