namespace OTSSignsOrchestrator.Core.Models.DTOs; /// /// Represents a single log line from a Docker service. /// Parsed from docker service logs --timestamps output. /// public class ServiceLogEntry { /// UTC timestamp of the log entry (from Docker). public DateTimeOffset Timestamp { get; set; } /// Service/replica identifier (e.g. "acm-cms-stack_acm-web.1.abc123"). public string Source { get; set; } = string.Empty; /// The log message text. public string Message { get; set; } = string.Empty; /// Short service name without the stack prefix (e.g. "acm-web"). public string ServiceName { get; set; } = string.Empty; /// Formatted display string for binding: "[timestamp] source | message". public string DisplayLine => $"[{Timestamp:HH:mm:ss}] {Source} | {Message}"; }