-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathFailedMessageEntity.cs
More file actions
36 lines (30 loc) · 1.41 KB
/
FailedMessageEntity.cs
File metadata and controls
36 lines (30 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
namespace ServiceControl.Persistence.Sql.Core.Entities;
using System;
using ServiceControl.MessageFailures;
public class FailedMessageEntity
{
public Guid Id { get; set; }
public string UniqueMessageId { get; set; } = null!;
public FailedMessageStatus Status { get; set; }
// JSON columns for complex nested data
public string ProcessingAttemptsJson { get; set; } = null!;
public string FailureGroupsJson { get; set; } = null!;
public string HeadersJson { get; set; } = null!;
// Full-text search column (populated from headers and body)
public string? Query { get; set; }
// Denormalized fields from FailureGroups for efficient filtering
// PrimaryFailureGroupId is the first group ID from FailureGroupsJson array
public string? PrimaryFailureGroupId { get; set; }
// Denormalized fields from the last processing attempt for efficient querying
public string? MessageId { get; set; }
public string? MessageType { get; set; }
public DateTime? TimeSent { get; set; }
public string? SendingEndpointName { get; set; }
public string? ReceivingEndpointName { get; set; }
public string? ExceptionType { get; set; }
public string? ExceptionMessage { get; set; }
public string? QueueAddress { get; set; }
public int? NumberOfProcessingAttempts { get; set; }
public DateTime? LastProcessedAt { get; set; }
public string? ConversationId { get; set; }
}