| | | 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 | | /// This provides runtime properties of the subscription. |
| | | 10 | | /// </summary> |
| | | 11 | | public class SubscriptionRuntimeProperties |
| | | 12 | | { |
| | 0 | 13 | | internal SubscriptionRuntimeProperties(string topicName, string subscriptionName) |
| | | 14 | | { |
| | 0 | 15 | | TopicName = topicName; |
| | 0 | 16 | | SubscriptionName = subscriptionName; |
| | 0 | 17 | | } |
| | | 18 | | |
| | | 19 | | /// <summary> |
| | | 20 | | /// The name of the topic. |
| | | 21 | | /// </summary> |
| | 0 | 22 | | public string TopicName { get; internal set; } |
| | | 23 | | |
| | | 24 | | /// <summary> |
| | | 25 | | /// The name of subscription. |
| | | 26 | | /// </summary> |
| | 0 | 27 | | public string SubscriptionName { get; internal set; } |
| | | 28 | | |
| | | 29 | | /// <summary> |
| | | 30 | | /// The total number of messages in the subscription. |
| | | 31 | | /// </summary> |
| | 0 | 32 | | public long TotalMessageCount { get; internal set; } |
| | | 33 | | |
| | | 34 | | /// <summary> |
| | | 35 | | /// The number of active messages in the entity. |
| | | 36 | | /// </summary> |
| | 0 | 37 | | public long ActiveMessageCount { get; internal set; } |
| | | 38 | | |
| | | 39 | | /// <summary> |
| | | 40 | | /// The number of dead-lettered messages in the entity. |
| | | 41 | | /// </summary> |
| | 0 | 42 | | public long DeadLetterMessageCount { get; internal set; } |
| | | 43 | | |
| | | 44 | | /// <summary> |
| | | 45 | | /// The number of messages which are yet to be transferred/forwarded to destination entity. |
| | | 46 | | /// </summary> |
| | 0 | 47 | | public long TransferMessageCount { get; internal set; } |
| | | 48 | | |
| | | 49 | | /// <summary> |
| | | 50 | | /// The number of messages transfer-messages which are dead-lettered into transfer-dead-letter sub-queue. |
| | | 51 | | /// </summary> |
| | 0 | 52 | | public long TransferDeadLetterMessageCount { get; internal set; } |
| | | 53 | | |
| | | 54 | | /// <summary> |
| | | 55 | | /// The <see cref="DateTimeOffset"/> when the entity was last accessed. |
| | | 56 | | /// </summary> |
| | 0 | 57 | | public DateTimeOffset AccessedAt { get; internal set; } |
| | | 58 | | |
| | | 59 | | /// <summary> |
| | | 60 | | /// The <see cref="DateTimeOffset"/> when the entity was created. |
| | | 61 | | /// </summary> |
| | 0 | 62 | | public DateTimeOffset CreatedAt { get; internal set; } |
| | | 63 | | |
| | | 64 | | /// <summary> |
| | | 65 | | /// The <see cref="DateTime"/> when the entity description was last updated. |
| | | 66 | | /// </summary> |
| | 0 | 67 | | public DateTimeOffset UpdatedAt { get; internal set; } |
| | | 68 | | } |
| | | 69 | | } |