Skip to content

Commit c539c53

Browse files
authored
Add message count property to Queue model (#1572)
1 parent d819933 commit c539c53

File tree

1 file changed

+4
-0
lines changed
  • src/NServiceBus.Transport.RabbitMQ/Administration/ManagementApi/Models

1 file changed

+4
-0
lines changed

src/NServiceBus.Transport.RabbitMQ/Administration/ManagementApi/Models/Queue.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ class Queue
2626
[JsonPropertyName("policy")]
2727
public string? AppliedPolicyName { get; set; }
2828

29+
// For ServiceControl queue length provider
30+
[JsonPropertyName("messages")]
31+
public long MessageCount { get; set; }
32+
2933
// For ServiceControl licensing component
3034
[JsonPropertyName("message_stats")]
3135
public QueueMessageStats? MessageStats { get; set; }

0 commit comments

Comments
 (0)