using System; using Newtonsoft.Json; namespace Unity.Pipeline.Models { /// /// Response model for the console command: a page of captured console entries plus /// the cursor needed to fetch the next page. /// [Serializable] public class ConsoleLogResponse { /// /// The matching entries, oldest first, after applying the level filter, since cursor, /// and tail limit. /// [JsonProperty("entries")] public ConsoleLogEntry[] Entries { get; set; } /// /// The highest currently held in the buffer (regardless of /// the level filter). A "--follow" client passes this back as since on the next poll /// so it resumes exactly where it left off, even if the only new entries were filtered out. /// [JsonProperty("cursor")] public long Cursor { get; set; } /// /// Number of entries returned in . /// [JsonProperty("returned")] public int Returned { get; set; } /// /// True when the requested since cursor pointed at entries that have already been /// evicted from the bounded buffer, meaning the consumer missed some entries. Lets a /// "--follow" client warn about a gap instead of silently skipping output. /// [JsonProperty("dropped")] public bool Dropped { get; set; } } }