using OTSSignsOrchestrator.Core.Models.Entities;
namespace OTSSignsOrchestrator.Desktop.Models;
///
/// Represents a CMS stack discovered live from a Docker Swarm host.
/// No data is persisted locally — all values come from docker stack ls / inspect.
///
public class LiveStackItem
{
/// Docker stack name, e.g. "acm-cms-stack".
public string StackName { get; set; } = string.Empty;
/// 3-letter abbreviation derived from the stack name.
public string CustomerAbbrev { get; set; } = string.Empty;
/// Number of services reported by docker stack ls.
public int ServiceCount { get; set; }
/// The SSH host this stack was found on.
public SshHost Host { get; set; } = null!;
/// Label of the host — convenience property for data-binding.
public string HostLabel => Host?.Label ?? string.Empty;
}