using Newtonsoft.Json;
namespace PSProxmoxVE.Core.Models.Vms
{
///
/// Represents a single log line from a Proxmox VE task log,
/// as returned by the /nodes/{node}/tasks/{upid}/log endpoint.
///
public class PveTaskLog
{
/// Line number (1-based).
[JsonProperty("n")]
public int LineNumber { get; set; }
/// Log line text.
[JsonProperty("t")]
public string Text { get; set; } = string.Empty;
///
public override string ToString() => $"{LineNumber,4}: {Text}";
}
}