Sdílet prostřednictvím


Azure Communication Services – Události směrovače úloh

Tento článek obsahuje vlastnosti a schéma pro události směrovače úloh komunikačních služeb. Úvod do schémat událostí najdete ve schématu událostí služby Azure Event Grid. Tyto události se generují pro Službu Azure Communication Services v průběhu životního cyklu úloh a pracovních procesů.

Typy událostí

Služba Azure Communication Services generuje následující typy událostí směrovače úloh:

Události Subdoména Popis
RouterJobReceived Job Pro směrování se vytvořila nová úloha.
RouterJobClassified Job Zásady klasifikace se použily na úlohu.
RouterJobQueued Job Úloha byla úspěšně zapsána do fronty.
RouterJobClassificationFailed Job Směrovač se nepodařilo klasifikovat úlohu pomocí zásad klasifikace
RouterJobCompleted Job Úloha byla dokončena a zabalí se.
RouterJobClosed Job Úloha byla uzavřena a zabalení bylo dokončeno.
RouterJobCancelled Job Úloha byla zrušena.
RouterJobExceptionTriggered Job Byla aktivována výjimka úlohy.
RouterJobWorkerSelectorsExpired Job Platnost jednoho nebo více selektorů pracovních procesů v úloze vypršela.
RouterJobUnassigned Job Již přiřazená úloha byla nepřiřazena od pracovního procesu.
RouterJobWaitingForActivation Job Přišla požadovaná naplánovaná doba naplánované úlohy, směrovač čeká na contoso, aby fungovala s úlohou.
RouterJobSchedulingFailed Job Byla však požadována naplánovaná úloha, směrovač ji nepodařilo vytvořit.
RouterJobDeleted Job Úloha byla odstraněna.
RouterWorkerOfferIssued Worker Pracovní pozice byla nabídnuta pracovníkovi.
RouterWorkerOfferAccepted Worker Nabídka pracovníkovi byla přijata.
RouterWorkerOfferDeclined Worker Nabídka pracovníka byla odmítnuta.
RouterWorkerOfferRevoked Worker Nabídka pracovníkovi byla odvolána.
RouterWorkerOfferExpired Worker Platnost nabídky pracovníkovi vypršela.
RouterWorkerRegistered Worker Pracovní proces byl zaregistrován (stav se změnil z neaktivního nebo vyprázdnění na aktivní).
RouterWorkerDeregistered Worker Pracovní proces se odregistroval (stav se změnil z aktivní na neaktivní nebo vyprázdnění).
RouterWorkerDeleted Worker Pracovní proces byl odstraněn.

Odpovědi na události

Když se událost aktivuje, služba Event Grid odešle data o této události do odběru koncových bodů.

Tato část obsahuje příklad toho, jak by tato data vypadala pro každou událost.

Microsoft.Communication.RouterJobReceived

Zpět do katalogu událostí

{
  "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"
}

Seznam atributů

Atribut Typ S možnou hodnotou Null Popis Notes
jobId string
channelReference string
jobStatus enum Možné hodnoty PendingClassification, Queued Když se tato událost odešle, proces klasifikace se ještě spustil nebo byla vytvořena úloha s přidruženým ID fronty.
channelId string
classificationPolicyId string ✔️ null kdy queueId je zadána pro úlohu
queueId string ✔️ null kdy classificationPolicyId je zadána pro úlohu
Prioritou int ✔️ classificationPolicyId Pokud je zadána hodnota Null. Hodnota, která není null v případě přímého přiřazení fronty
Popisky Dictionary<string, object> ✔️ Na základě uživatelského vstupu
značek Dictionary<string, object> ✔️ Na základě uživatelského vstupu
requestedWorkerSelectors List<WorkerSelector> ✔️ Na základě uživatelského vstupu
ScheduledOn DateTimeOffset ✔️ Na základě uživatelského vstupu
NedostupnéForMatching bool ✔️ Na základě uživatelského vstupu

Microsoft.Communication.RouterJobClassified

Zpět do katalogu událostí

{
  "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"
}

Seznam atributů

Atribut Typ S možnou hodnotou Null Popis Notes
queueDetails QueueDetails
jobId string
channelReference string
channelId string
classificationPolicyId string
queueId string ✔️ null kdy classificationPolicy se nepoužívá pro výběr fronty
Prioritou int ✔️ null kdy classificationPolicy se nepoužívá pro použití priority v úloze
Popisky Dictionary<string, object> ✔️ Na základě uživatelského vstupu
značek Dictionary<string, object> ✔️ Na základě uživatelského vstupu
attachedWorkerSelectors List<WorkerSelector> ✔️ Seznam selektorů pracovních procesů připojených zásadami klasifikace

Microsoft.Communication.RouterJobQueued

Zpět do katalogu událostí

{
  "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"
}

Seznam atributů

Atribut Typ S možnou hodnotou Null Popis Notes
jobId string
channelReference string ✔️
channelId string
queueId string
Prioritou int
Popisky Dictionary<string, object> ✔️ Na základě uživatelského vstupu
značek Dictionary<string, object> ✔️ Na základě uživatelského vstupu
requestedWorkerSelectors List<WorkerSelector> ✔️ Na základě uživatelského vstupu při vytváření úlohy
attachedWorkerSelectors List<WorkerSelector> ✔️ Seznam selektorů pracovních procesů připojených zásadami klasifikace

Microsoft.Communication.RouterJobClassificationFailed

Zpět do katalogu událostí

{
  "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"
}

Seznam atributů

Atribut Typ S možnou hodnotou Null Popis Notes
chyby List<CommunicationError>
jobId string
channelReference string
channelId string
classificationPolicyId string
Popisky Dictionary<string, object> ✔️ Na základě uživatelského vstupu
značek Dictionary<string, object> ✔️ Na základě uživatelského vstupu

Microsoft.Communication.RouterJobCompleted

Zpět do katalogu událostí

{
  "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"
}

Seznam atributů

Atribut Typ S možnou hodnotou Null Popis Notes
jobId string
channelReference string
channelId string
queueId string
Popisky Dictionary<string, object> ✔️ Na základě uživatelského vstupu
značek Dictionary<string, object> ✔️ Na základě uživatelského vstupu
assignmentId string
workerId string

Microsoft.Communication.RouterJobClosed

Zpět do katalogu událostí

{
  "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"
}

Seznam atributů

Atribut Typ S možnou hodnotou Null Popis Notes
jobId string
channelReference string
channelId string
queueId string
Popisky Dictionary<string, object> ✔️ Na základě uživatelského vstupu
značek Dictionary<string, object> ✔️ Na základě uživatelského vstupu
dispositionCode string ✔️ Na základě uživatelského vstupu
workerId string
assignmentId string

Microsoft.Communication.RouterJobCancelled

Zpět do katalogu událostí

{
  "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"
}

Seznam atributů

Atribut Typ S možnou hodnotou Null Popis Notes
poznámka string ✔️ Na základě uživatelského vstupu
dispositionCode string
jobId string
channelReference string
channelId string
Popisky Dictionary<string, object> ✔️ Na základě uživatelského vstupu
značek Dictionary<string, object> ✔️ Na základě uživatelského vstupu
queueId string ✔️

Microsoft.Communication.RouterJobExceptionTriggered

Zpět do katalogu událostí

{
  "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"
}

Seznam atributů

Atribut Typ S možnou hodnotou Null Popis Notes
ruleKey string
exceptionRuleId string
jobId string
channelReference string
channelId string
Popisky Dictionary<string, object> ✔️ Na základě uživatelského vstupu
značek Dictionary<string, object> ✔️ Na základě uživatelského vstupu

Microsoft.Communication.RouterJobWorkerSelectorsExpired

Zpět do katalogu událostí

{
  "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"
}

Seznam atributů

Atribut Typ S možnou hodnotou Null Popis Notes
jobId string
channelReference string ✔️
queueId string
channelId string
Popisky Dictionary<string, object> ✔️ Na základě uživatelského vstupu
značek Dictionary<string, object> ✔️ Na základě uživatelského vstupu
requestedWorkerSelectorsExpired List<WorkerSelector> ✔️ Na základě uživatelského vstupu při vytváření úlohy
attachedWorkerSelectorsExpired List<WorkerSelector> ✔️ Seznam selektorů pracovních procesů připojených zásadami klasifikace

Microsoft.Communication.RouterJobUnassigned

Zpět do katalogu událostí

{
  "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"
}

Seznam atributů

Atribut Typ S možnou hodnotou Null Popis Notes
jobId string
assignmentId string
workerId string
channelId string
channelReference string
queueId string ✔️ null kdy classificationPolicyId je zadána pro úlohu
Popisky Dictionary<string, object> ✔️ Na základě uživatelského vstupu
značek Dictionary<string, object> ✔️ Na základě uživatelského vstupu

Microsoft.Communication.RouterJobWaitingForActivation

Zpět do katalogu událostí

{
  "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"
}

Seznam atributů

Atribut Typ S možnou hodnotou Null Popis Notes
jobId string
channelId string
channelReference string
queueId string ✔️ null kdy classificationPolicyId je zadána pro úlohu
Popisky Dictionary<string, object> ✔️ Na základě uživatelského vstupu
značek Dictionary<string, object> ✔️ Na základě uživatelského vstupu
requestedWorkerSelectorsExpired List<WorkerSelector> ✔️ Na základě uživatelského vstupu při vytváření úlohy
attachedWorkerSelectorsExpired List<WorkerSelector> ✔️ Seznam selektorů pracovních procesů připojených zásadami klasifikace
ScheduledOn DateTimeOffset ✔️ Na základě uživatelského vstupu při vytváření úlohy
NedostupnéForMatching bool ✔️ Na základě uživatelského vstupu při vytváření úlohy
Prioritou int Na základě uživatelského vstupu při vytváření úlohy

Microsoft.Communication.RouterJobSchedulingFailed

Zpět do katalogu událostí

{
  "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"
}

Seznam atributů

Atribut Typ S možnou hodnotou Null Popis Notes
jobId string
channelId string
channelReference string
queueId string ✔️ null kdy classificationPolicyId je zadána pro úlohu
Popisky Dictionary<string, object> ✔️ Na základě uživatelského vstupu
značek Dictionary<string, object> ✔️ Na základě uživatelského vstupu
requestedWorkerSelectorsExpired List<WorkerSelector> ✔️ Na základě uživatelského vstupu při vytváření úlohy
attachedWorkerSelectorsExpired List<WorkerSelector> ✔️ Seznam selektorů pracovních procesů připojených zásadami klasifikace
ScheduledOn DateTimeOffset ✔️ Na základě uživatelského vstupu při vytváření úlohy
failureReason string ✔️ Systém určený
Prioritou int Na základě uživatelského vstupu při vytváření úlohy

Microsoft.Communication.RouterJobDeleted

Zpět do katalogu událostí

{
  "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"
}

Seznam atributů

Atribut Typ S možnou hodnotou Null Popis Notes
jobId string

Události pracovního procesu

Microsoft.Communication.RouterWorkerOfferIssued

Zpět do katalogu událostí

{
  "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"
}

Seznam atributů

Atribut Typ S možnou hodnotou Null Popis Notes
workerId string
jobId string
channelReference string
channelId string
queueId string
offerId string
offeredOn DateTimeOffset
expiresOn DateTimeOffset
jobPriority int
jobLabels Dictionary<string, object> ✔️ Na základě uživatelského vstupu
jobTags Dictionary<string, object> ✔️ Na základě uživatelského vstupu

Microsoft.Communication.RouterWorkerOfferAccepted

Zpět do katalogu událostí

{
  "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"
}

Seznam atributů

Atribut Typ S možnou hodnotou Null Popis Notes
workerId string
jobId string
jobPriority int
jobLabels Dictionary<string, object> ✔️ Na základě uživatelského vstupu
jobTags Dictionary<string, object> ✔️ Na základě uživatelského vstupu
channelReference string
channelId string
queueId string
offerId string
assignmentId string

Microsoft.Communication.RouterWorkerOfferDeclined

Zpět do katalogu událostí

{
  "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"
}

Seznam atributů

Atribut Typ S možnou hodnotou Null Popis Notes
workerId string
jobId string
channelReference string
channelId string
queueId string
offerId string

Microsoft.Communication.RouterWorkerOfferRevolat

Zpět do katalogu událostí

{
  "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"
}

Seznam atributů

Atribut Typ S možnou hodnotou Null Popis Notes
offerId string
workerId string
jobId string
channelReference string
channelId string
queueId string

Microsoft.Communication.RouterWorkerOfferExpired

Zpět do katalogu událostí

{
  "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"
}

Seznam atributů

Atribut Typ S možnou hodnotou Null Popis Notes
workerId string
offerId string
jobId string
channelReference string
channelId string
queueId string

Microsoft.Communication.RouterWorkerRegistered

Zpět do katalogu událostí

{
  "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"
}

Seznam atributů

Atribut Typ S možnou hodnotou Null Popis Notes
workerId string
totalCapacity int
queueAssignments List<QueueDetails>
Popisky Dictionary<string, object> ✔️ Na základě uživatelského vstupu
channelConfigurations List<ChannelConfiguration>
značek Dictionary<string, object> ✔️ Na základě uživatelského vstupu

Microsoft.Communication.RouterWorkerDeregistered

Zpět do katalogu událostí

{
  "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"
}

Seznam atributů

Atribut Typ S možnou hodnotou Null Popis Notes
workerId string

Microsoft.Communication.RouterWorkerDeleted

Zpět do katalogu událostí

{
  "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"
}

Seznam atributů

Atribut Typ S možnou hodnotou Null Popis Notes
workerId string
totalCapacity int
queueAssignments List<QueueDetails>
Popisky Dictionary<string, object> ✔️ Na základě uživatelského vstupu
channelConfigurations List<ChannelConfiguration>
značek Dictionary<string, object> ✔️ Na základě uživatelského vstupu

Definice modelu

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; }
}

ChannelConfiguration

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

WorkerSelector

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,
}