Udostępnij za pośrednictwem


JobRouterModelFactory.ClassificationPolicy Method

Definition

Initializes a new instance of ClassificationPolicy.

public static Azure.Communication.JobRouter.ClassificationPolicy ClassificationPolicy (Azure.ETag eTag = default, string id = default, string name = default, string fallbackQueueId = default, System.Collections.Generic.IEnumerable<Azure.Communication.JobRouter.QueueSelectorAttachment> queueSelectorAttachments = default, Azure.Communication.JobRouter.RouterRule prioritizationRule = default, System.Collections.Generic.IEnumerable<Azure.Communication.JobRouter.WorkerSelectorAttachment> workerSelectorAttachments = default);
static member ClassificationPolicy : Azure.ETag * string * string * string * seq<Azure.Communication.JobRouter.QueueSelectorAttachment> * Azure.Communication.JobRouter.RouterRule * seq<Azure.Communication.JobRouter.WorkerSelectorAttachment> -> Azure.Communication.JobRouter.ClassificationPolicy
Public Shared Function ClassificationPolicy (Optional eTag As ETag = Nothing, Optional id As String = Nothing, Optional name As String = Nothing, Optional fallbackQueueId As String = Nothing, Optional queueSelectorAttachments As IEnumerable(Of QueueSelectorAttachment) = Nothing, Optional prioritizationRule As RouterRule = Nothing, Optional workerSelectorAttachments As IEnumerable(Of WorkerSelectorAttachment) = Nothing) As ClassificationPolicy

Parameters

eTag
ETag

The entity tag for this resource.

id
String

Id of a classification policy.

name
String

Friendly name of this policy.

fallbackQueueId
String

Id of a fallback queue to select if queue selector attachments doesn't find a match.

queueSelectorAttachments
IEnumerable<QueueSelectorAttachment>

Queue selector attachments used to resolve a queue for a job. Please note QueueSelectorAttachment is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ConditionalQueueSelectorAttachment, PassThroughQueueSelectorAttachment, RuleEngineQueueSelectorAttachment, StaticQueueSelectorAttachment and WeightedAllocationQueueSelectorAttachment.

prioritizationRule
RouterRule

A rule to determine a priority score for a job. Please note RouterRule is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include DirectMapRouterRule, ExpressionRouterRule, FunctionRouterRule, StaticRouterRule and WebhookRouterRule.

workerSelectorAttachments
IEnumerable<WorkerSelectorAttachment>

Worker selector attachments used to attach worker selectors to a job. Please note WorkerSelectorAttachment is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ConditionalWorkerSelectorAttachment, PassThroughWorkerSelectorAttachment, RuleEngineWorkerSelectorAttachment, StaticWorkerSelectorAttachment and WeightedAllocationWorkerSelectorAttachment.

Returns

A new ClassificationPolicy instance for mocking.

Applies to