using System;
namespace ZB.MOM.WW.OtOpcUa.Driver.Historian.Wonderware.Backend
{
///
/// Point-in-time state of a single historian cluster node. One entry per configured node
/// appears inside .
///
public sealed class HistorianClusterNodeState
{
/// Gets or sets the node name.
public string Name { get; set; } = "";
/// Gets or sets a value indicating whether the node is healthy.
public bool IsHealthy { get; set; }
/// Gets or sets the time until the node exits cooldown mode.
public DateTime? CooldownUntil { get; set; }
/// Gets or sets the count of recent failures.
public int FailureCount { get; set; }
/// Gets or sets the last error message.
public string? LastError { get; set; }
/// Gets or sets the time of the last failure.
public DateTime? LastFailureTime { get; set; }
}
}