Serviços de Comunicação do Azure – eventos do Roteador de Trabalhos

Este artigo fornece as propriedades e o esquema dos eventos do roteador de trabalhos dos serviços de comunicação. Para obter uma introdução a esquemas de evento, consulte esquema de grade de eventos do Azure. Esses eventos são emitidos para os Serviços de Comunicação do Azure ao longo dos ciclos de vida de trabalho e de trabalhador.

Tipos de evento

Os Serviços de Comunicação do Azure emitem os seguintes tipos de evento de roteador de trabalho:

Eventos Subdomínio Descrição
RouterJobReceived Job Um trabalho foi criado para roteamento
RouterJobClassified Job A política de classificação foi aplicada a um trabalho
RouterJobQueued Job Um trabalho foi enfileirado com êxito
RouterJobClassificationFailed Job O roteador não pôde classificar o trabalho usando a política de classificação
RouterJobCompleted Job Um trabalho foi concluído e entra na fase de encerramento.
RouterJobClosed Job Um trabalho foi fechado e o encerramento foi concluído
RouterJobCancelled Job Um trabalho foi cancelado
RouterJobExceptionTriggered Job Uma exceção de trabalho foi disparada
RouterJobWorkerSelectorsExpired Job Um ou mais seletores de trabalho em um trabalho expiraram
RouterJobUnassigned Job Um trabalho já atribuído tece a atribuição cancelada para um trabalhador
RouterJobWaitingForActivation Job A hora agendada solicitada de um trabalho agendado chegou, o Roteador está aguardando a contoso atuar no trabalho
RouterJobSchedulingFailed Job Um trabalho agendado foi solicitado; no entanto, o roteador não conseguiu criá-lo
RouterJobDeleted Job Um trabalho foi excluído
RouterWorkerOfferIssued Worker Um trabalho foi oferecido a um trabalhador
RouterWorkerOfferAccepted Worker Uma oferta para uma função de trabalho foi aceita
RouterWorkerOfferDeclined Worker Uma oferta para uma função de trabalho foi recusada
RouterWorkerOfferRevoked Worker Uma oferta para um trabalhador foi revogada
RouterWorkerOfferExpired Worker Uma oferta para um trabalhador expirou
RouterWorkerRegistered Worker Um trabalhador foi registrado (status alterado de inativo/esvaziamento para ativo)
RouterWorkerDeregistered Worker Um trabalhador teve o registro cancelado (status alterado de ativo para inativo/esvaziamento)
RouterWorkerDeleted Worker Um trabalhador foi excluído

Respostas do evento

Quando um evento é disparado, o serviço de Grade de Eventos envia dados sobre esse evento para pontos de extremidade de assinatura.

Esta seção mostra um exemplo de como os dados seriam para cada evento.

Microsoft.Communication.RouterJobReceived

Voltar ao catálogo de eventos

{
  "id": "acdf8fa5-8ab4-4a65-874a-c1d2a4a97f2e",
  "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
  "subject": "job/{job-id}/channel/{channel-id}",
  "data": {
    "jobId": "7f1df17b-570b-4ae5-9cf5-fe6ff64cc712",
    "channelReference": "test-abc",
    "jobStatus": "PendingClassification",
    "channelId": "FooVoiceChannelId",
    "classificationPolicyId": "test-policy",
    "queueId": "queue-id",
    "priority": 0,
    "labels": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "tags": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "requestedWorkerSelectors": [
      {
        "key": "string",
        "labelOperator": "equal",
        "value": 5,
        "ttlSeconds": 50,
        "expirationTime": "2022-02-17T00:58:25.1736293Z"
      }
    ],
    "scheduledOn": "3/28/2007 7:13:50 PM +00:00",
    "unavailableForMatching": false
  },
  "eventType": "Microsoft.Communication.RouterJobReceived",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "eventTime": "2022-02-17T00:55:25.1736293Z"
}

Lista de atributos

Atributo Tipo Anulável Descrição Anotações
jobId string ❌
channelReference string ❌
jobStatus enum ❌ Valores possíveis de PendingClassification, Na fila Quando este evento é enviado, o processo de classificação ainda não foi executado ou o trabalho foi criado com um ID de fila associado.
channelId string ❌
classificationPolicyId string ✔️ null quando queueId é especificado para um trabalho
queueId string ✔️ null quando classificationPolicyId é especificado para um trabalho
prioridade int ✔️ Nulo quando classificationPolicyId é especificado. Valor não nulo no caso de atribuição de fila direta.
rótulos Dictionary<string, object> ✔️ Com base na entrada de usuário
etiquetas Dictionary<string, object> ✔️ Com base na entrada de usuário
requestedWorkerSelectors List<WorkerSelector> ✔️ Com base na entrada de usuário
scheduledOn DateTimeOffset ✔️ Com base na entrada de usuário
unavailableForMatching bool ✔️ Com base na entrada de usuário

Microsoft.Communication.RouterJobClassified

Voltar ao catálogo de eventos

{
  "id": "b6d8687a-5a1a-42ae-b8b5-ff7ec338c872",
  "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
  "subject": "job/{job-id}/channel/{channel-id}/queue/{queue-id}",
  "data": {
    "queueDetails": {
      "id": "625fec06-ab81-4e60-b780-f364ed96ade1",
      "name": "Queue 1",
      "labels": {
        "Language": "en",
        "Product": "Office",
        "Geo": "NA"
      }
    },
    "jobId": "7f1df17b-570b-4ae5-9cf5-fe6ff64cc712",
    "channelReference": "test-abc",
    "channelId": "FooVoiceChannelId",
    "classificationPolicyId": "test-policy",
    "queueId": "625fec06-ab81-4e60-b780-f364ed96ade1",
    "priority": 5,
    "labels": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "tags": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "attachedWorkerSelectors": [
      {
        "key": "string",
        "labelOperator": "equal",
        "value": 5,
        "ttl": "P3Y6M4DT12H30M5S"
      }
    ]
  },
  "eventType": "Microsoft.Communication.RouterJobClassified",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "eventTime": "2022-02-17T00:55:25.1736293Z"
}

Lista de atributos

Atributo Tipo Anulável Descrição Anotações
queueDetails QueueDetails ❌
jobId string ❌
channelReference string ❌
channelId string ❌
classificationPolicyId string ❌
queueId string ✔️ null quando classificationPolicy não é usado para seleção de fila
prioridade int ✔️ null quando classificationPolicy não é usado para aplicar prioridade no trabalho
rótulos Dictionary<string, object> ✔️ Com base na entrada de usuário
etiquetas Dictionary<string, object> ✔️ Com base na entrada de usuário
attachedWorkerSelectors List<WorkerSelector> ✔️ Lista de seletores de trabalho anexados por uma política de classificação

Microsoft.Communication.RouterJobQueued

Voltar ao catálogo de eventos

{
  "id": "b6d8687a-5a1a-42ae-b8b5-ff7ec338c872",
  "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
  "subject": "job/{job-id}/channel/{channel-id}/queue/{queue-id}",
  "data": {
    "jobId": "7f1df17b-570b-4ae5-9cf5-fe6ff64cc712",
    "channelReference": "test-abc",
    "channelId": "FooVoiceChannelId",
    "queueId": "625fec06-ab81-4e60-b780-f364ed96ade1",
    "priority": 1,
    "labels": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "tags": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "requestedWorkerSelectors": [
      {
        "key": "string",
        "labelOperator": "equal",
        "value": 5,
        "ttl": "P3Y6M4DT12H30M5S"
      }
    ],
    "attachedWorkerSelectors": [
      {
        "key": "string",
        "labelOperator": "equal",
        "value": 5,
        "ttl": "P3Y6M4DT12H30M5S"
      }
    ]
  },
  "eventType": "Microsoft.Communication.RouterJobQueued",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "eventTime": "2022-02-17T00:55:25.1736293Z"
}

Lista de atributos

Atributo Tipo Anulável Descrição Anotações
jobId string ❌
channelReference string ✔️
channelId string ❌
queueId string ❌
prioridade int ❌
rótulos Dictionary<string, object> ✔️ Com base na entrada de usuário
etiquetas Dictionary<string, object> ✔️ Com base na entrada de usuário
requestedWorkerSelectors List<WorkerSelector> ✔️ Com base na entrada do usuário durante a criação do trabalho
attachedWorkerSelectors List<WorkerSelector> ✔️ Lista de seletores de trabalho anexados por uma política de classificação

Microsoft.Communication.RouterJobClassificationFailed

Voltar ao catálogo de eventos

{
  "id": "b6d8687a-5a1a-42ae-b8b5-ff7ec338c872",
  "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
  "subject": "job/{job-id}/channel/{channel-id}/classificationpolicy/{classificationpolicy-id}",
  "data": {
    "errors": [
      {
        "code": null,
        "message": "Classification failed due to <reason>",
        "target": null,
        "innerError": null,
        "details": null
      }
    ],
    "jobId": "7f1df17b-570b-4ae5-9cf5-fe6ff64cc712",
    "channelReference": "test-abc",
    "channelId": "FooVoiceChannelId",
    "classificationPolicyId": "test-policy",
    "labels": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "tags": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    }
  },
  "eventType": "Microsoft.Communication.RouterJobClassificationFailed",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "eventTime": "2022-02-17T00:55:25.1736293Z"
}

Lista de atributos

Atributo Tipo Anulável Descrição Anotações
Erros List<CommunicationError> ❌
jobId string ❌
channelReference string ❌
channelId string ❌
classificationPolicyId string ❌
rótulos Dictionary<string, object> ✔️ Com base na entrada de usuário
etiquetas Dictionary<string, object> ✔️ Com base na entrada de usuário

Microsoft.Communication.RouterJobCompleted

Voltar ao catálogo de eventos

{
  "id": "b6d8687a-5a1a-42ae-b8b5-ff7ec338c872",
  "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
  "subject": "job/{job-id}/channel/{channel-id}/assignment/{assignment-id}",
  "data": {
    "jobId": "7f1df17b-570b-4ae5-9cf5-fe6ff64cc712",
    "channelReference": "test-abc",
    "channelId": "FooVoiceChannelId",
    "queueId": "queue-id",
    "assignmentId": "6f1df17b-570b-4ae5-9cf5-fe6ff64cc712",
    "labels": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "tags": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "workerId": "e3a3f2f9-3582-4bfe-9c5a-aa57831a0f88"
  },
  "eventType": "Microsoft.Communication.RouterJobCompleted",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "eventTime": "2022-02-17T00:55:25.1736293Z"
}

Lista de atributos

Atributo Tipo Anulável Descrição Anotações
jobId string ❌
channelReference string ❌
channelId string ❌
queueId string ❌
rótulos Dictionary<string, object> ✔️ Com base na entrada de usuário
etiquetas Dictionary<string, object> ✔️ Com base na entrada de usuário
assignmentId string ❌
ID do trabalhador string ❌

Microsoft.Communication.RouterJobClosed

Voltar ao catálogo de eventos

{
  "id": "b6d8687a-5a1a-42ae-b8b5-ff7ec338c872",
  "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
  "subject": "job/{job-id}/channel/{channel-id}/assignment/{assignment-id}",
  "data": {
    "jobId": "7f1df17b-570b-4ae5-9cf5-fe6ff64cc712",
    "channelReference": "test-abc",
    "channelId": "FooVoiceChannelId",
    "queueId": "",
    "dispositionCode": "",
    "workerId": "",
    "assignmentId": "",
    "labels": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "tags": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    }
  },
  "eventType": "Microsoft.Communication.RouterJobClosed",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "eventTime": "2022-02-17T00:55:25.1736293Z"
}

Lista de atributos

Atributo Tipo Anulável Descrição Anotações
jobId string ❌
channelReference string ❌
channelId string ❌
queueId string ❌
rótulos Dictionary<string, object> ✔️ Com base na entrada de usuário
etiquetas Dictionary<string, object> ✔️ Com base na entrada de usuário
dispositionCode string ✔️ Com base na entrada de usuário
ID do trabalhador string ❌
assignmentId string ❌

Microsoft.Communication.RouterJobCancelled

Voltar ao catálogo de eventos

{
  "id": "b6d8687a-5a1a-42ae-b8b5-ff7ec338c872",
  "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
  "subject": "job/{job-id}/channel/{channel-id}/disposition/{disposition-code}",
  "data": {
    "note": "Cancelled due to <reason>",
    "dispositionCode": "100",
    "jobId": "7f1df17b-570b-4ae5-9cf5-fe6ff64cc712",
    "channelReference": "test-abc",
    "channelId": "FooVoiceChannelId",
    "labels": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "tags": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "queueId": ""
  },
  "eventType": "Microsoft.Communication.RouterJobCancelled",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "eventTime": "2022-02-17T00:55:25.1736293Z"
}

Lista de atributos

Atributo Tipo Anulável Descrição Anotações
nota string ✔️ Com base na entrada de usuário
dispositionCode string ❌
jobId string ❌
channelReference string ❌
channelId string ❌
rótulos Dictionary<string, object> ✔️ Com base na entrada de usuário
etiquetas Dictionary<string, object> ✔️ Com base na entrada de usuário
queueId string ✔️

Microsoft.Communication.RouterJobExceptionTriggered

Voltar ao catálogo de eventos

{
  "id": "1027db4a-17fe-4a7f-ae67-276c3120a29f",
  "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
  "subject": "job/{job-id}/channel/{channel-id}/exceptionrule/{rulekey}",
  "data": {
    "ruleKey": "r100",
    "exceptionRuleId": "7f1df17b-570b-4ae5-9cf5-fe6ff64cc712",
    "jobId": "7f1df17b-570b-4ae5-9cf5-fe6ff64cc712",
    "channelReference": "test-abc",
    "channelId": "FooVoiceChannelId",
    "labels": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "tags": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    }
  },
  "eventType": "Microsoft.Communication.RouterJobExceptionTriggered",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "eventTime": "2022-02-17T00:55:25.1736293Z"
}

Lista de atributos

Atributo Tipo Anulável Descrição Anotações
ruleKey string ❌
exceptionRuleId string ❌
jobId string ❌
channelReference string ❌
channelId string ❌
rótulos Dictionary<string, object> ✔️ Com base na entrada de usuário
etiquetas Dictionary<string, object> ✔️ Com base na entrada de usuário

Microsoft.Communication.RouterJobWorkerSelectorsExpired

Voltar ao catálogo de eventos

{
  "id": "b6d8687a-5a1a-42ae-b8b5-ff7ec338c872",
  "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
  "subject": "job/{job-id}/channel/{channel-id}/queue/{queue-id}",
  "data": {
    "jobId": "7f1df17b-570b-4ae5-9cf5-fe6ff64cc712",
    "channelReference": "test-abc",
    "channelId": "FooVoiceChannelId",
    "queueId": "625fec06-ab81-4e60-b780-f364ed96ade1",
    "labels": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "tags": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "requestedWorkerSelectorsExpired": [
      {
        "key": "string",
        "labelOperator": "equal",
        "value": 5,
        "ttl": "P3Y6M4DT12H30M5S"
      }
    ],
    "attachedWorkerSelectorsExpired": [
      {
        "key": "string",
        "labelOperator": "equal",
        "value": 5,
        "ttl": "P3Y6M4DT12H30M5S"
      }
    ]
  },
  "eventType": "Microsoft.Communication.RouterJobWorkerSelectorsExpired",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "eventTime": "2022-02-17T00:55:25.1736293Z"
}

Lista de atributos

Atributo Tipo Anulável Descrição Anotações
jobId string ❌
channelReference string ✔️
queueId string ❌
channelId string ❌
rótulos Dictionary<string, object> ✔️ Com base na entrada de usuário
etiquetas Dictionary<string, object> ✔️ Com base na entrada de usuário
requestedWorkerSelectorsExpired List<WorkerSelector> ✔️ Com base na entrada do usuário durante a criação de uma tarefa
attachedWorkerSelectorsExpired List<WorkerSelector> ✔️ Lista de seletores de trabalho anexados por uma política de classificação

Microsoft.Communication.RouterJobUnassigned

Voltar ao catálogo de eventos

{
  "id": "acdf8fa5-8ab4-4a65-874a-c1d2a4a97f2e",
  "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
  "subject": "job/{job-id}/channel/{channel-id}/assignment/{assignment-id}",
  "data": {
    "jobId": "7f1df17b-570b-4ae5-9cf5-fe6ff64cc712",
    "assignmentId": "",
    "workerId": "",
    "channelId": "FooVoiceChannelId",
    "channelReference": "test-abc",
    "queueId": "queue-id",    
    "labels": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "tags": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    }
  },
  "eventType": "Microsoft.Communication.RouterJobUnassigned",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "eventTime": "2022-02-17T00:55:25.1736293Z"
}

Lista de atributos

Atributo Tipo Anulável Descrição Anotações
jobId string ❌
assignmentId string ❌
ID do trabalhador string ❌
channelId string ❌
channelReference string ❌
queueId string ✔️ null quando classificationPolicyId é especificado para um trabalho
rótulos Dictionary<string, object> ✔️ Com base na entrada de usuário
etiquetas Dictionary<string, object> ✔️ Com base na entrada de usuário

Microsoft.Communication.RouterJobWaitingForActivation

Voltar ao catálogo de eventos

{
  "id": "acdf8fa5-8ab4-4a65-874a-c1d2a4a97f2e",
  "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
  "subject": "job/{job-id}/channel/{channel-id}",
  "data": {
    "jobId": "7f1df17b-570b-4ae5-9cf5-fe6ff64cc712",
    "channelId": "FooVoiceChannelId",
    "channelReference": "test-abc",
    "queueId": "queue-id",    
    "priority": 1,
    "labels": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "tags": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "requestedWorkerSelectors": [
      {
        "key": "string",
        "labelOperator": "equal",
        "value": 5,
        "ttl": "P3Y6M4DT12H30M5S"
      }
    ],
    "attachedWorkerSelectors": [
      {
        "key": "string",
        "labelOperator": "equal",
        "value": 5,
        "ttl": "P3Y6M4DT12H30M5S"
      }
    ],
    "scheduledOn": "2022-02-17T00:55:25.1736293Z",
    "unavailableForMatching": false
  },
  "eventType": "Microsoft.Communication.RouterJobWaitingForActivation",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "eventTime": "2022-02-17T00:55:25.1736293Z"
}

Lista de atributos

Atributo Tipo Anulável Descrição Anotações
jobId string ❌
channelId string ❌
channelReference string ❌
queueId string ✔️ null quando classificationPolicyId é especificado para um trabalho
rótulos Dictionary<string, object> ✔️ Com base na entrada de usuário
etiquetas Dictionary<string, object> ✔️ Com base na entrada de usuário
requestedWorkerSelectorsExpired List<WorkerSelector> ✔️ Com base na entrada do usuário durante a criação de uma tarefa
attachedWorkerSelectorsExpired List<WorkerSelector> ✔️ Lista de seletores de trabalho anexados por uma política de classificação
scheduledOn DateTimeOffset ✔️ Com base na entrada do usuário durante a criação de uma tarefa
unavailableForMatching bool ✔️ Com base na entrada do usuário durante a criação de uma tarefa
prioridade int ❌ Com base na entrada do usuário durante a criação de uma tarefa

Microsoft.Communication.RouterJobSchedulingFailed

Voltar ao catálogo de eventos

{
  "id": "acdf8fa5-8ab4-4a65-874a-c1d2a4a97f2e",
  "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
  "subject": "job/{job-id}/channel/{channel-id}",
  "data": {
    "jobId": "7f1df17b-570b-4ae5-9cf5-fe6ff64cc712",
    "channelId": "FooVoiceChannelId",
    "channelReference": "test-abc",
    "queueId": "queue-id",    
    "priority": 1,
    "labels": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "tags": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "requestedWorkerSelectors": [
      {
        "key": "string",
        "labelOperator": "equal",
        "value": 5,
        "ttl": "P3Y6M4DT12H30M5S"
      }
    ],
    "attachedWorkerSelectors": [
      {
        "key": "string",
        "labelOperator": "equal",
        "value": 5,
        "ttl": "P3Y6M4DT12H30M5S"
      }
    ],
    "scheduledOn": "2022-02-17T00:55:25.1736293Z",
    "failureReason": "Error"
  },
  "eventType": "Microsoft.Communication.RouterJobSchedulingFailed",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "eventTime": "2022-02-17T00:55:25.1736293Z"
}

Lista de atributos

Atributo Tipo Anulável Descrição Anotações
jobId string ❌
channelId string ❌
channelReference string ❌
queueId string ✔️ null quando classificationPolicyId é especificado para um trabalho
rótulos Dictionary<string, object> ✔️ Com base na entrada de usuário
etiquetas Dictionary<string, object> ✔️ Com base na entrada de usuário
requestedWorkerSelectorsExpired List<WorkerSelector> ✔️ Com base na entrada do usuário durante a criação de uma tarefa
attachedWorkerSelectorsExpired List<WorkerSelector> ✔️ Lista de seletores de trabalho anexados por uma política de classificação
scheduledOn DateTimeOffset ✔️ Com base na entrada do usuário durante a criação de uma tarefa
razão da falha string ✔️ Determinado pelo sistema
prioridade int ❌ Com base na entrada do usuário durante a criação de uma tarefa

Microsoft.Communication.RouterJobDeleted

Voltar ao catálogo de eventos

{
  "id": "acdf8fa5-8ab4-4a65-874a-c1d2a4a97f2e",
  "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
  "subject": "job/{job-id}/channel/{channel-id}",
  "data": {
    "jobId": "7f1df17b-570b-4ae5-9cf5-fe6ff64cc712",
    "channelReference": "test-abc",
    "channelId": "FooVoiceChannelId",
    "labels": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "tags": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "queueId": ""
  },
  "eventType": "Microsoft.Communication.RouterJobDeleted",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "eventTime": "2022-02-17T00:55:25.1736293Z"
}

Lista de atributos

Atributo Tipo Anulável Descrição Anotações
jobId string ❌

Eventos do Trabalhador

Microsoft.Communication.RouterWorkerOfferIssued

Voltar ao catálogo de eventos

{
  "id": "1027db4a-17fe-4a7f-ae67-276c3120a29f",
  "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
  "subject": "worker/{worker-id}/job/{job-id}",
  "data": {
    "workerId": "w100",
    "jobId": "7f1df17b-570b-4ae5-9cf5-fe6ff64cc712",
    "channelReference": "test-abc",
    "channelId": "FooVoiceChannelId",
    "queueId": "625fec06-ab81-4e60-b780-f364ed96ade1",
    "offerId": "525fec06-ab81-4e60-b780-f364ed96ade1",
    "offeredOn": "2021-06-23T02:43:30.3847144Z",
    "expiresOn": "2021-06-23T02:44:30.3847674Z",
    "jobPriority": 5,
    "jobLabels": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "jobTags": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    }
  },
  "eventType": "Microsoft.Communication.RouterWorkerOfferIssued",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "eventTime": "2022-02-17T00:55:25.1736293Z"
}

Lista de atributos

Atributo Tipo Anulável Descrição Anotações
ID do trabalhador string ❌
jobId string ❌
channelReference string ❌
channelId string ❌
queueId string ❌
offerId string ❌
offeredOn DateTimeOffset ❌
expiresOn DateTimeOffset ❌
jobPriority int ❌
jobLabels Dictionary<string, object> ✔️ Com base na entrada de usuário
jobTags Dictionary<string, object> ✔️ Com base na entrada de usuário

Microsoft.Communication.RouterWorkerOfferAccepted

Voltar ao catálogo de eventos

{
  "id": "1027db4a-17fe-4a7f-ae67-276c3120a29f",
  "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
  "subject": "worker/{worker-id}/job/{job-id}",
  "data": {
    "workerId": "w100",
    "jobId": "7f1df17b-570b-4ae5-9cf5-fe6ff64cc712",
    "jobPriority": 5,
    "jobLabels": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "jobTags": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    },
    "channelReference": "test-abc",
    "channelId": "FooVoiceChannelId",
    "queueId": "625fec06-ab81-4e60-b780-f364ed96ade1",
    "offerId": "565fec06-ab81-4e60-b780-f364ed96ade1",
    "assignmentId": "765fec06-ab81-4e60-b780-f364ed96ade1"
  },
  "eventType": "Microsoft.Communication.RouterWorkerOfferAccepted",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "eventTime": "2022-02-17T00:55:25.1736293Z"
}

Lista de atributos

Atributo Tipo Anulável Descrição Anotações
ID do trabalhador string ❌
jobId string ❌
jobPriority int ❌
jobLabels Dictionary<string, object> ✔️ Com base na entrada de usuário
jobTags Dictionary<string, object> ✔️ Com base na entrada de usuário
channelReference string ❌
channelId string ❌
queueId string ❌
offerId string ❌
assignmentId string ❌

Microsoft.Communication.RouterWorkerOfferDeclined

Voltar ao catálogo de eventos

{
  "id": "1027db4a-17fe-4a7f-ae67-276c3120a29f",
  "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
  "subject": "worker/{worker-id}/job/{job-id}",
  "data": {
    "workerId": "w100",
    "jobId": "7f1df17b-570b-4ae5-9cf5-fe6ff64cc712",
    "channelReference": "test-abc",
    "channelId": "FooVoiceChannelId",
    "queueId": "625fec06-ab81-4e60-b780-f364ed96ade1",
    "offerId": "565fec06-ab81-4e60-b780-f364ed96ade1",
  },
  "eventType": "Microsoft.Communication.RouterWorkerOfferDeclined",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "eventTime": "2022-02-17T00:55:25.1736293Z"
}

Lista de atributos

Atributo Tipo Anulável Descrição Anotações
ID do trabalhador string ❌
jobId string ❌
channelReference string ❌
channelId string ❌
queueId string ❌
offerId string ❌

Microsoft.Communication.RouterWorkerOfferRevoked

Voltar ao catálogo de eventos

{
  "id": "1027db4a-17fe-4a7f-ae67-276c3120a29f",
  "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
  "subject": "worker/{worker-id}/job/{job-id}",
  "data": {
    "offerId": "565fec06-ab81-4e60-b780-f364ed96ade1",
    "workerId": "w100",
    "jobId": "7f1df17b-570b-4ae5-9cf5-fe6ff64cc712",
    "channelReference": "test-abc",
    "channelId": "FooVoiceChannelId",
    "queueId": "625fec06-ab81-4e60-b780-f364ed96ade1"
  },
  "eventType": "Microsoft.Communication.RouterWorkerOfferRevoked",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "eventTime": "2022-02-17T00:55:25.1736293Z"
}

Lista de atributos

Atributo Tipo Anulável Descrição Anotações
offerId string ❌
ID do trabalhador string ❌
jobId string ❌
channelReference string ❌
channelId string ❌
queueId string ❌

Microsoft.Communication.RouterWorkerOfferExpired

Voltar ao catálogo de eventos

{
  "id": "1027db4a-17fe-4a7f-ae67-276c3120a29f",
  "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
  "subject": "worker/{worker-id}/job/{job-id}",
  "data": {
    "offerId": "565fec06-ab81-4e60-b780-f364ed96ade1",
    "workerId": "w100",
    "jobId": "7f1df17b-570b-4ae5-9cf5-fe6ff64cc712",
    "channelReference": "test-abc",
    "channelId": "FooVoiceChannelId",
    "queueId": "625fec06-ab81-4e60-b780-f364ed96ade1"
  },
  "eventType": "Microsoft.Communication.RouterWorkerOfferExpired",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "eventTime": "2022-02-17T00:55:25.1736293Z"
}

Lista de atributos

Atributo Tipo Anulável Descrição Anotações
ID do trabalhador string ❌
offerId string ❌
jobId string ❌
channelReference string ❌
channelId string ❌
queueId string ❌

Microsoft.Communication.RouterWorkerRegistered

Voltar ao catálogo de eventos

{
  "id": "1027db4a-17fe-4a7f-ae67-276c3120a29f",
  "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
  "subject": "worker/{worker-id}",
  "data": {
    "workerId": "worker3",
    "totalCapacity": 100,
    "queueAssignments": [
      {
        "id": "MyQueueId2",
        "name": "Queue 3",
        "labels": {
          "Language": "en",
          "Product": "Office",
          "Geo": "NA"
        }
      }
    ],
    "labels": {
      "x": "111",
      "y": "111"
    },
    "channelConfigurations": [
      {
        "channelId": "FooVoiceChannelId",
        "capacityCostPerJob": 10,
        "maxNumberOfJobs": 5
      }
    ],
    "tags": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    }
  },
  "eventType": "Microsoft.Communication.RouterWorkerRegistered",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "eventTime": "2022-02-17T00:55:25.1736293Z"
}

Lista de atributos

Atributo Tipo Anulável Descrição Anotações
ID do trabalhador string ❌
totalCapacity int ❌
queueAssignments List<QueueDetails> ❌
rótulos Dictionary<string, object> ✔️ Com base na entrada de usuário
configurações de canal List<ChannelConfiguration> ❌
etiquetas Dictionary<string, object> ✔️ Com base na entrada de usuário

Microsoft.Communication.RouterWorkerDeregistered

Voltar ao catálogo de eventos

{
  "id": "1027db4a-17fe-4a7f-ae67-276c3120a29f",
  "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
  "subject": "worker/{worker-id}",
  "data": {
    "workerId": "worker3"
  },
  "eventType": "Microsoft.Communication.RouterWorkerDeregistered",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "eventTime": "2022-02-17T00:55:25.1736293Z"
}

Lista de atributos

Atributo Tipo Anulável Descrição Anotações
ID do trabalhador string ❌

Microsoft.Communication.RouterWorkerDeleted

Voltar ao catálogo de eventos

{
  "id": "1027db4a-17fe-4a7f-ae67-276c3120a29f",
  "topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
  "subject": "worker/{worker-id}",
  "data": {
    "workerId": "worker3",
    "totalCapacity": 100,
    "queueAssignments": [
      {
        "id": "MyQueueId2",
        "name": "Queue 3",
        "labels": {
          "Language": "en",
          "Product": "Office",
          "Geo": "NA"
        }
      }
    ],
    "labels": {
      "x": "111",
      "y": "111"
    },
    "channelConfigurations": [
      {
        "channelId": "FooVoiceChannelId",
        "capacityCostPerJob": 10,
        "maxNumberOfJobs": 5
      }
    ],
    "tags": {
      "Locale": "en-us",
      "Segment": "Enterprise",
      "Token": "FooToken"
    }
  },
  "eventType": "Microsoft.Communication.RouterWorkerDeleted",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "eventTime": "2022-02-17T00:55:25.1736293Z"
}

Lista de atributos

Atributo Tipo Anulável Descrição Anotações
ID do trabalhador string ❌
totalCapacity int ❌
queueAssignments List<QueueDetails> ❌
rótulos Dictionary<string, object> ✔️ Com base na entrada de usuário
configurações de canal List<ChannelConfiguration> ❌
etiquetas Dictionary<string, object> ✔️ Com base na entrada de usuário

Definições de modelo

QueueDetails

public class QueueDetails
{
    public string Id { get; set; }
    public string Name { get; set; }
    public Dictionary<string, object>? Labels { get; set; }
}

CommunicationError

public class CommunicationError
{
    public string? Code { get; init; }
    public string Message { get; init; }
    public string? Target { get; init; }
    public CommunicationError? InnerError { get; init; }
    public IEnumerable<CommunicationError>? Details { get; init; }
}

Configuração de Canal

public class ChannelConfiguration
{
    public string ChannelId { get; set; }
    public int CapacityCostPerJob { get; set; }
    public int? MaxNumberOfJobs { get; set; }
}

SeletorDeTrabalhadores

public class WorkerSelector
{
    public string Key { get; set; }
    public LabelOperator LabelOperator { get; set; }
    public object Value { get; set; }
    public double? TTLSeconds { get; set; }
    public WorkerSelectorState State { get; set; }
    public DateTimeOffset? ExpireTime { get; set; }
}

public enum WorkerSelectorState
{
    Active = 0,
    Expired = 1
}

public enum LabelOperator
{
    Equal,
    NotEqual,
    LessThan,
    LessThanEqual,
    GreaterThan,
    GreaterThanEqual,
}