Dela via


BestWorkerMode Class

Definition

Jobs are distributed to the worker with the strongest abilities available.

public class BestWorkerMode : Azure.Communication.JobRouter.DistributionMode
public class BestWorkerMode : Azure.Communication.JobRouter.DistributionMode, System.ClientModel.Primitives.IJsonModel<Azure.Communication.JobRouter.BestWorkerMode>, System.ClientModel.Primitives.IPersistableModel<Azure.Communication.JobRouter.BestWorkerMode>
type BestWorkerMode = class
    inherit DistributionMode
type BestWorkerMode = class
    inherit DistributionMode
    interface IJsonModel<BestWorkerMode>
    interface IPersistableModel<BestWorkerMode>
Public Class BestWorkerMode
Inherits DistributionMode
Public Class BestWorkerMode
Inherits DistributionMode
Implements IJsonModel(Of BestWorkerMode), IPersistableModel(Of BestWorkerMode)
Inheritance
BestWorkerMode
Implements

Constructors

BestWorkerMode()

Initializes a new instance of BestWorkerModePolicy with default scoring rule. Default scoring formula that uses the number of job labels that the worker labels match, as well as the number of label selectors the worker labels match and/or exceed using a logistic function (https://en.wikipedia.org/wiki/Logistic_function).

Properties

BypassSelectors

If set to true, then router will match workers to jobs even if they don't match label selectors. Warning: You may get workers that are not qualified for a job they are matched with if you set this variable to true. This flag is intended more for temporary usage. By default, set to false.

(Inherited from DistributionMode)
Kind

The type discriminator describing a sub-type of DistributionMode.

(Inherited from DistributionMode)
MaxConcurrentOffers

Governs the maximum number of active concurrent offers a job can have.

(Inherited from DistributionMode)
MinConcurrentOffers

Governs the minimum desired number of active concurrent offers a job can have.

(Inherited from DistributionMode)
ScoringRule

A rule of one of the following types:

StaticRule: A rule providing static rules that always return the same result, regardless of input. DirectMapRule: A rule that return the same labels as the input labels. ExpressionRule: A rule providing inline expression rules. FunctionRule: A rule providing a binding to an HTTP Triggered Azure Function. WebhookRule: A rule providing a binding to a webserver following OAuth2.0 authentication protocol. 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.

ScoringRuleOptions

Encapsulates all options that can be passed as parameters for scoring rule with BestWorkerMode

Explicit Interface Implementations

IJsonModel<BestWorkerMode>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<BestWorkerMode>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<DistributionMode>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from DistributionMode)
IJsonModel<DistributionMode>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from DistributionMode)
IPersistableModel<BestWorkerMode>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<BestWorkerMode>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<BestWorkerMode>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<DistributionMode>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from DistributionMode)
IPersistableModel<DistributionMode>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from DistributionMode)
IPersistableModel<DistributionMode>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from DistributionMode)

Applies to