creates simple healthchecks
This commit is contained in:
16
Abstracts/IHealthCheck.cs
Normal file
16
Abstracts/IHealthCheck.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace MCVIngenieros.Healthchecks.Abstracts;
|
||||
|
||||
// Health check interface
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public interface IHealthCheck
|
||||
{
|
||||
int? RetryAttempts { get; }
|
||||
TimeSpan? Timeout { get; }
|
||||
TimeSpan? RetryDelay { get; }
|
||||
HealthCheckSeverity? Severity { get; }
|
||||
string? Description { get; }
|
||||
|
||||
Task<HealthCheckResult> CheckAsync(CancellationToken cancellationToken = default);
|
||||
}
|
Reference in New Issue
Block a user