BestWorkerMode Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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 |