Sdílet prostřednictvím


JobRouterModelFactory.RouterQueueStatistics Method

Definition

Initializes a new instance of RouterQueueStatistics.

public static Azure.Communication.JobRouter.RouterQueueStatistics RouterQueueStatistics (string queueId = default, int length = 0, System.Collections.Generic.IDictionary<int,TimeSpan> estimatedWaitTimes = default, double? longestJobWaitTimeMinutes = default);
static member RouterQueueStatistics : string * int * System.Collections.Generic.IDictionary<int, TimeSpan> * Nullable<double> -> Azure.Communication.JobRouter.RouterQueueStatistics
Public Shared Function RouterQueueStatistics (Optional queueId As String = Nothing, Optional length As Integer = 0, Optional estimatedWaitTimes As IDictionary(Of Integer, TimeSpan) = Nothing, Optional longestJobWaitTimeMinutes As Nullable(Of Double) = Nothing) As RouterQueueStatistics

Parameters

queueId
String

Id of the queue these details are about.

length
Int32

Length of the queue: total number of enqueued jobs.

estimatedWaitTimes
IDictionary<Int32,TimeSpan>

The estimated wait time of this queue rounded up to the nearest minute, grouped by job priority.

longestJobWaitTimeMinutes
Nullable<Double>

The wait time of the job that has been enqueued in this queue for the longest.

Returns

A new RouterQueueStatistics instance for mocking.

Applies to