Delen via


RouterWorkerSelector Class

Definition

Describes a condition that must be met against a set of labels for worker selection.

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

Constructors

RouterWorkerSelector(String, LabelOperator, RouterValue)

Initializes a new instance of WorkerSelector.

Properties

Expedite

Pushes the job to the front of the queue as long as this selector is active.

ExpiresAfter

Describes how long this label selector is valid for.

ExpiresAt

The time at which this worker selector expires in UTC.

Key

The label key to query against.

LabelOperator

Describes how the value of the label is compared to the value defined on the worker selector.

Status

Status of the worker selector.

Value

The value to compare against the actual label value with the given operator. Values must be primitive values - number, string, boolean.

Explicit Interface Implementations

IJsonModel<RouterWorkerSelector>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<RouterWorkerSelector>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<RouterWorkerSelector>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RouterWorkerSelector>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<RouterWorkerSelector>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to