| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | |
| | | 6 | | namespace Azure.Messaging.ServiceBus.Management |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// Represents the runtime properties of the queue. |
| | | 10 | | /// </summary> |
| | | 11 | | public class QueueRuntimeProperties |
| | | 12 | | { |
| | 0 | 13 | | internal QueueRuntimeProperties(string name) |
| | | 14 | | { |
| | 0 | 15 | | Name = name; |
| | 0 | 16 | | } |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// The name of the queue. |
| | | 20 | | /// </summary> |
| | 0 | 21 | | public string Name { get; internal set; } |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// The total number of messages in the queue. |
| | | 25 | | /// </summary> |
| | 0 | 26 | | public long TotalMessageCount { get; internal set; } |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// The number of active messages in the entity. |
| | | 30 | | /// </summary> |
| | 0 | 31 | | public long ActiveMessageCount { get; internal set; } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// The number of dead-lettered messages in the entity. |
| | | 35 | | /// </summary> |
| | 0 | 36 | | public long DeadLetterMessageCount { get; internal set; } |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// The number of messages that are scheduled to be enqueued. |
| | | 40 | | /// </summary> |
| | 0 | 41 | | public long ScheduledMessageCount { get; internal set; } |
| | | 42 | | |
| | | 43 | | /// <summary> |
| | | 44 | | /// The number of messages which are yet to be transferred/forwarded to destination entity. |
| | | 45 | | /// </summary> |
| | 0 | 46 | | public long TransferMessageCount { get; internal set; } |
| | | 47 | | |
| | | 48 | | /// <summary> |
| | | 49 | | /// The number of messages transfer-messages which are dead-lettered into transfer-dead-letter sub-queue. |
| | | 50 | | /// </summary> |
| | 0 | 51 | | public long TransferDeadLetterMessageCount { get; internal set; } |
| | | 52 | | |
| | | 53 | | /// <summary> |
| | | 54 | | /// The current size of the entity in bytes. |
| | | 55 | | /// </summary> |
| | 0 | 56 | | public long SizeInBytes { get; internal set; } |
| | | 57 | | |
| | | 58 | | /// <summary> |
| | | 59 | | /// The <see cref="DateTimeOffset"/> when the entity was created. |
| | | 60 | | /// </summary> |
| | 0 | 61 | | public DateTimeOffset CreatedAt { get; internal set; } |
| | | 62 | | |
| | | 63 | | /// <summary> |
| | | 64 | | /// The <see cref="DateTimeOffset"/> when the entity description was last updated. |
| | | 65 | | /// </summary> |
| | 0 | 66 | | public DateTimeOffset UpdatedAt { get; internal set; } |
| | | 67 | | |
| | | 68 | | /// <summary> |
| | | 69 | | /// The <see cref="DateTimeOffset"/> when the entity was last accessed. |
| | | 70 | | /// </summary> |
| | 0 | 71 | | public DateTimeOffset AccessedAt { get; internal set; } |
| | | 72 | | } |
| | | 73 | | } |