namespace FrameworkDAL.DTO.DiagnosticsSession; public class DiagnosticsSessionDTO { public int DiagnosticSessionId { get; set; } /// 1=Global 2=Tenant 3=User 4=Session public byte SessionScope { get; set; } public string? ScopeId { get; set; } /// 1=Info 2=Debug 3=Verbose 4=Trace public byte DiagnosticLevel { get; set; } = 1; public bool CaptureQueryBodies { get; set; } public bool CaptureResponseBodies { get; set; } public bool IncreaseSampling { get; set; } public DateTime ExpiresAt { get; set; } public bool IsActive { get; set; } = true; public DateTime CreatedOn { get; set; } public int CreatedById { get; set; } public int TenantId { get; set; } } public class SupportTokenDTO { public int SupportTokenId { get; set; } public string Token { get; set; } = string.Empty; public int? DiagnosticSessionId { get; set; } public string IssuedTo { get; set; } = string.Empty; /// JSON: {"enableDiagnostics":true,"increasesampling":true} public string Capabilities { get; set; } = "{}"; public DateTime ExpiresAt { get; set; } public DateTime? UsedAt { get; set; } public string? UsedByIp { get; set; } public bool IsActive { get; set; } = true; public int TenantId { get; set; } }