Share via


JobRouterClient.GetQueueStatistics Method

Definition

Overloads

GetQueueStatistics(String, RequestContext)

[Protocol Method] Retrieves a queue's statistics.

GetQueueStatistics(String, CancellationToken)

Retrieves a queue's statistics.

GetQueueStatistics(String, RequestContext)

Source:
JobRouterClient.cs
Source:
JobRouterClient.cs

[Protocol Method] Retrieves a queue's statistics.

public virtual Azure.Response GetQueueStatistics (string queueId, Azure.RequestContext context);
abstract member GetQueueStatistics : string * Azure.RequestContext -> Azure.Response
override this.GetQueueStatistics : string * Azure.RequestContext -> Azure.Response
Public Overridable Function GetQueueStatistics (queueId As String, context As RequestContext) As Response

Parameters

queueId
String

Id of the queue to retrieve statistics.

context
RequestContext

The request context, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

queueId is null.

queueId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

GetQueueStatistics(String, CancellationToken)

Source:
JobRouterClient.cs
Source:
JobRouterClient.cs

Retrieves a queue's statistics.

public virtual Azure.Response<Azure.Communication.JobRouter.RouterQueueStatistics> GetQueueStatistics (string queueId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetQueueStatistics : string * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.JobRouter.RouterQueueStatistics>
override this.GetQueueStatistics : string * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.JobRouter.RouterQueueStatistics>
Public Overridable Function GetQueueStatistics (queueId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of RouterQueueStatistics)

Parameters

queueId
String

Id of the queue to retrieve statistics.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

queueId is null.

queueId is an empty string, and was expected to be non-empty.

Applies to