From 198dc2a87765c7e491407fd21434aa918fc2c28a Mon Sep 17 00:00:00 2001 From: movingsam Date: Tue, 3 Mar 2026 15:31:02 +0800 Subject: [PATCH] feat(03-01): add GwHealthCheckConfig value object - Created health check configuration value object - Includes Enabled, Path, IntervalSeconds, TimeoutSeconds fields - Matches YARP ClusterConfig health check structure --- .../GatewayAggregate/GwHealthCheckConfig.cs | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Fengling.Platform.Domain/AggregatesModel/GatewayAggregate/GwHealthCheckConfig.cs diff --git a/Fengling.Platform.Domain/AggregatesModel/GatewayAggregate/GwHealthCheckConfig.cs b/Fengling.Platform.Domain/AggregatesModel/GatewayAggregate/GwHealthCheckConfig.cs new file mode 100644 index 0000000..788fc62 --- /dev/null +++ b/Fengling.Platform.Domain/AggregatesModel/GatewayAggregate/GwHealthCheckConfig.cs @@ -0,0 +1,27 @@ +namespace Fengling.Platform.Domain.AggregatesModel.GatewayAggregate; + +/// +/// 健康检查配置(值对象) +/// +public class GwHealthCheckConfig +{ + /// + /// 是否启用健康检查 + /// + public bool Enabled { get; set; } + + /// + /// 健康检查路径 + /// + public string? Path { get; set; } + + /// + /// 检查间隔(秒) + /// + public int IntervalSeconds { get; set; } = 30; + + /// + /// 超时时间(秒) + /// + public int TimeoutSeconds { get; set; } = 10; +}