This commit is contained in:
2024-01-23 17:50:29 +01:00
parent 26b1f60948
commit 26e3226ae9
16 changed files with 307 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
namespace HealtRegistry.Models;
public record HealthRequest(bool? Health);

View File

@@ -0,0 +1,3 @@
namespace HealtRegistry.Models;
public record ServiceConfiguration(bool DefaultValue, TimeSpan Timeout);

View File

@@ -0,0 +1,7 @@
namespace HealtRegistry.Models;
public class ServiceHealthData
{
public required bool Healthy { get; set; }
public required DateTimeOffset LastUpdated { get; set; }
}

View File

@@ -0,0 +1,4 @@
namespace HealtRegistry.Models;
public record ServiceHealth(bool Health);
public record ServiceHealthes(IReadOnlyDictionary<string, ServiceHealth> Healthes);

View File

@@ -0,0 +1,8 @@
using System.ComponentModel.DataAnnotations;
namespace HealtRegistry.Models;
public class ServicesConfiguration
{
[Required] public required Dictionary<string, ServiceConfiguration> Services { get; init; }
}