using System;

namespace ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Host.Backend.Historian
{
    /// <summary>
    ///     Point-in-time state of a single historian cluster node. One entry per configured node
    ///     appears inside <see cref="HistorianHealthSnapshot"/>.
    /// </summary>
    public sealed class HistorianClusterNodeState
    {
        public string Name { get; set; } = "";
        public bool IsHealthy { get; set; }
        public DateTime? CooldownUntil { get; set; }
        public int FailureCount { get; set; }
        public string? LastError { get; set; }
        public DateTime? LastFailureTime { get; set; }
    }
}
