Condividi tramite


RouterJob Class

Definition

A unit of work to be routed.

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

Constructors

RouterJob(String)

Initializes a new instance of a job.

Properties

Assignments

A collection of the assignments of the job. Key is AssignmentId.

AttachedWorkerSelectors

A collection of worker selectors attached by a classification policy, which a worker must satisfy in order to process this job.

ChannelId

The channel identifier. eg. voice, chat, etc.

ChannelReference

Reference to an external parent context, eg. call ID.

ClassificationPolicyId

Id of a classification policy used for classifying this job.

DispositionCode

Indicates the outcome of a job, populate this field with your own custom values.

EnqueuedAt

Timestamp a job was queued in UTC.

ETag

The entity tag for this resource.

Id

Id of a job.

Labels

A set of key/value pairs that are identifying attributes used by the rules engines to make decisions. Values must be primitive values - number, string, boolean.

MatchingMode

If provided, will determine how job matching will be carried out. Default mode: QueueAndMatchMode.

Notes

A collection of notes attached to a job.

Priority

The priority of this job.

QueueId

Id of a queue that this job is queued to.

RequestedWorkerSelectors

A collection of manually specified worker selectors, which a worker must satisfy in order to process this job.

ScheduledAt

If set, job will be scheduled to be enqueued at a given time.

Status

The status of the job.

Tags

A set of non-identifying attributes attached to this job. Values must be primitive values - number, string, boolean.

Explicit Interface Implementations

IJsonModel<RouterJob>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<RouterJob>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<RouterJob>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RouterJob>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<RouterJob>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to