namespace RoslynBridge.WebApi.Models; /// /// Represents a single query history entry with request and response information /// public class QueryHistoryEntry { /// /// Unique identifier for this history entry /// public string Id { get; set; } = Guid.NewGuid().ToString(); /// /// Timestamp when the request was received /// public DateTime Timestamp { get; set; } = DateTime.UtcNow; /// /// The endpoint path that was called /// public string Path { get; set; } = string.Empty; /// /// HTTP method used /// public string Method { get; set; } = string.Empty; /// /// The Roslyn query request /// public RoslynQueryRequest? Request { get; set; } /// /// The Roslyn query response /// public RoslynQueryResponse? Response { get; set; } /// /// Request duration in milliseconds /// public long DurationMs { get; set; } /// /// Whether the request was successful /// public bool Success { get; set; } /// /// Client IP address /// public string? ClientIp { get; set; } }