| | | 1 | | using Elsa.Diagnostics.StructuredLogs.Models; |
| | | 2 | | |
| | | 3 | | namespace Elsa.Diagnostics.StructuredLogs.Persistence.Relational.Models; |
| | | 4 | | |
| | | 5 | | public record RelationalStructuredLogRecord |
| | | 6 | | { |
| | 7 | 7 | | public string Id { get; init; } = default!; |
| | 7 | 8 | | public long Sequence { get; init; } |
| | 7 | 9 | | public string Timestamp { get; init; } = default!; |
| | 7 | 10 | | public string ReceivedAt { get; init; } = default!; |
| | 7 | 11 | | public StructuredLogLevel Level { get; init; } |
| | 7 | 12 | | public string Category { get; init; } = default!; |
| | 7 | 13 | | public int EventId { get; init; } |
| | 6 | 14 | | public string? EventName { get; init; } |
| | 11 | 15 | | public string Message { get; init; } = string.Empty; |
| | 6 | 16 | | public string? MessageTemplate { get; init; } |
| | 7 | 17 | | public string? ExceptionJson { get; init; } |
| | 11 | 18 | | public string ScopesJson { get; init; } = "{}"; |
| | 11 | 19 | | public string PropertiesJson { get; init; } = "{}"; |
| | 6 | 20 | | public string? TraceId { get; init; } |
| | 6 | 21 | | public string? SpanId { get; init; } |
| | 6 | 22 | | public string? CorrelationId { get; init; } |
| | 6 | 23 | | public string? TenantId { get; init; } |
| | 6 | 24 | | public string? WorkflowDefinitionId { get; init; } |
| | 6 | 25 | | public string? WorkflowInstanceId { get; init; } |
| | 7 | 26 | | public string SourceId { get; init; } = default!; |
| | | 27 | | } |