creates simple healthchecks
This commit is contained in:
8
Options/HealthCheckOptions.cs
Normal file
8
Options/HealthCheckOptions.cs
Normal 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; }
|
||||
}
|
20
Options/HealthChecksConfigs.cs
Normal file
20
Options/HealthChecksConfigs.cs
Normal 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
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user