Ten artykuł zawiera właściwości i schemat zdarzeń routera zadań usług komunikacyjnych. Aby zapoznać się ze schematami zdarzeń, zobacz Schemat zdarzeń usługi Azure Event Grid. Te zdarzenia są emitowane dla usług Azure Communication Services w całym cyklu życia zadania i procesu roboczego.
Typy zdarzeń
Usługi Azure Communication Services wywołują następujące typy zdarzeń routera zadań.
Odpowiedzi na zdarzenia
Po wyzwoleniu zdarzenia usługa Event Grid wysyła dane dotyczące tego zdarzenia do punktów końcowych, które są subskrybentami.
Ta sekcja zawiera przykład tego, jak te dane będą wyglądać dla każdego zdarzenia.
Microsoft.Communication.RouterJobReceived
Powrót do wykazu zdarzeń
{
"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 atrybutów
| [No changes needed]) |
Typ |
Zanullowalny |
Opis |
Notatki |
| ID zadania |
string |
❌ |
|
|
| channelReference |
string |
❌ |
|
|
| jobStatus |
enum |
❌ |
Możliwe wartości: PendingClassification (Oczekuje na klasyfikację), Queued (W kolejce) |
Po wysłaniu tego zdarzenia proces klasyfikacji nie został jeszcze wykonany lub zadanie zostało utworzone za pomocą skojarzonego identyfikatora queueId. |
| channelId |
string |
❌ |
|
|
| IdentyfikatorPolitykiKlasyfikacji |
string |
✔️ |
|
null gdy queueId jest określony dla zadania |
| queueId |
string |
✔️ |
|
null gdy classificationPolicyId jest określony dla zadania |
| priorytet |
int |
✔️ |
|
Wartość null, gdy classificationPolicyId jest określona. Wartość niepusta w przypadku bezpośredniego przypisania kolejki. |
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| wybranePracownikiŻądane |
List<WorkerSelector> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| zaplanowano na |
DateTimeOffset |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| niedostępnyDoDopasowania |
bool |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
Microsoft.Communication.RouterJobClassified
Powrót do wykazu zdarzeń
{
"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 atrybutów
| [No changes needed]) |
Typ |
Zanullowalny |
Opis |
Notatki |
| queueDetails |
QueueDetails |
❌ |
|
|
| ID zadania |
string |
❌ |
|
|
| channelReference |
string |
❌ |
|
|
| channelId |
string |
❌ |
|
|
| identyfikatorPolitykiKlasyfikacji |
string |
❌ |
|
|
| queueId |
string |
✔️ |
|
null gdy classificationPolicy nie jest używany do wyboru kolejki |
| priorytet |
int |
✔️ |
|
null gdy classificationPolicy nie jest używany do stosowania priorytetu zadania |
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| dołączoneSelektoryPracowników |
List<WorkerSelector> |
✔️ |
|
Lista selektorów pracowników przypisane przez politykę klasyfikacji |
Microsoft.Communication.RouterJobQueued
Powrót do wykazu zdarzeń
{
"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 atrybutów
| [No changes needed]) |
Typ |
Zanullowalny |
Opis |
Notatki |
| ID zadania |
string |
❌ |
|
|
| channelReference |
string |
✔️ |
|
|
| channelId |
string |
❌ |
|
|
| queueId |
string |
❌ |
|
|
| priorytet |
int |
❌ |
|
|
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| żądane selektory pracowników |
List<WorkerSelector> |
✔️ |
|
Na podstawie danych wejściowych użytkownika podczas tworzenia zadania |
| attachedWorkerSelectors |
List<WorkerSelector> |
✔️ |
|
Lista selektorów pracowników powiązanych z zasadami klasyfikacji |
Microsoft.Komunikacja.KlasyfikacjaZadaniaRouteraNiepowiodlaSie
Powrót do wykazu zdarzeń
{
"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 atrybutów
| [No changes needed]) |
Typ |
Zanullowalny |
Opis |
Notatki |
| Błędy |
List<CommunicationError> |
❌ |
|
|
| ID zadania |
string |
❌ |
|
|
| channelReference |
string |
❌ |
|
|
| channelId |
string |
❌ |
|
|
| classificationPolicyId |
string |
❌ |
|
|
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
Microsoft.Communication.RouterJobCompleted
Powrót do wykazu zdarzeń
{
"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 atrybutów
| [No changes needed]) |
Typ |
Zanullowalny |
Opis |
Notatki |
| ID zadania |
string |
❌ |
|
|
| channelReference |
string |
❌ |
|
|
| channelId |
string |
❌ |
|
|
| queueId |
string |
❌ |
|
|
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| ID przypisania |
string |
❌ |
|
|
| identyfikator pracownika |
string |
❌ |
|
|
Microsoft.Communication.RouterJobClosed
Powrót do wykazu zdarzeń
{
"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 atrybutów
| [No changes needed]) |
Typ |
Zanullowalny |
Opis |
Notatki |
| ID zadania |
string |
❌ |
|
|
| channelReference |
string |
❌ |
|
|
| channelId |
string |
❌ |
|
|
| queueId |
string |
❌ |
|
|
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| kod dyspozycji |
string |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| identyfikator pracownika |
string |
❌ |
|
|
| identyfikator przypisania |
string |
❌ |
|
|
Microsoft.Communication.RouterJobCancelled (Anulowanie zadania routera w komunikacji)
Powrót do wykazu zdarzeń
{
"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 atrybutów
| [No changes needed]) |
Typ |
Zanullowalny |
Opis |
Notatki |
| notatka |
string |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| kod dyspozycji |
string |
❌ |
|
|
| ID zadania |
string |
❌ |
|
|
| channelReference |
string |
❌ |
|
|
| channelId |
string |
❌ |
|
|
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| queueId |
string |
✔️ |
|
|
Microsoft.Communication.RouterJobExceptionTriggered
Powrót do wykazu zdarzeń
{
"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 atrybutów
| [No changes needed]) |
Typ |
Zanullowalny |
Opis |
Notatki |
| ruleKey |
string |
❌ |
|
|
| exceptionRuleId |
string |
❌ |
|
|
| ID zadania |
string |
❌ |
|
|
| channelReference |
string |
❌ |
|
|
| channelId |
string |
❌ |
|
|
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
Microsoft.Communication.RouterJobWorkerSelectorsExpired
Powrót do wykazu zdarzeń
{
"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 atrybutów
| [No changes needed]) |
Typ |
Zanullowalny |
Opis |
Notatki |
| ID zadania |
string |
❌ |
|
|
| channelReference |
string |
✔️ |
|
|
| queueId |
string |
❌ |
|
|
| channelId |
string |
❌ |
|
|
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| żądaneWyborcyRobotnikówWygasły |
List<WorkerSelector> |
✔️ |
|
Na podstawie danych wejściowych użytkownika podczas tworzenia zadania |
| załączoneSelektoryPracownikaWygasły |
List<WorkerSelector> |
✔️ |
|
Lista selektorów pracowników dołączonych przez politykę klasyfikacji |
Microsoft.Communication.RouterJobUnassigned
Powrót do wykazu zdarzeń
{
"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 atrybutów
| [No changes needed]) |
Typ |
Zanullowalny |
Opis |
Notatki |
| ID zadania |
string |
❌ |
|
|
| identyfikator przypisania |
string |
❌ |
|
|
| identyfikator pracownika |
string |
❌ |
|
|
| channelId |
string |
❌ |
|
|
| channelReference |
string |
❌ |
|
|
| queueId |
string |
✔️ |
|
null gdy classificationPolicyId jest określony dla zadania |
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
Microsoft.Communication.RouterJobWaitingForActivation
Powrót do wykazu zdarzeń
{
"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 atrybutów
| [No changes needed]) |
Typ |
Zanullowalny |
Opis |
Notatki |
| ID zadania |
string |
❌ |
|
|
| channelId |
string |
❌ |
|
|
| channelReference |
string |
❌ |
|
|
| queueId |
string |
✔️ |
|
null gdy classificationPolicyId jest określony dla zadania |
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| Żądane selektory pracowników wygasły |
List<WorkerSelector> |
✔️ |
|
Na podstawie danych wejściowych użytkownika podczas tworzenia zadania |
| wygasłeSelektoryPracownikówDołączonych |
List<WorkerSelector> |
✔️ |
|
Lista selektorów pracowników dołączonych przez politykę klasyfikacji |
| scheduledOn |
DateTimeOffset |
✔️ |
|
Na podstawie danych wejściowych użytkownika podczas tworzenia zadania |
| niedostępny do dopasowania |
bool |
✔️ |
|
Na podstawie danych wejściowych użytkownika podczas tworzenia zadania |
| priorytet |
int |
❌ |
|
Na podstawie danych wejściowych użytkownika podczas tworzenia zadania |
Microsoft.Communication.RouterJobSchedulingFailed
Powrót do wykazu zdarzeń
{
"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 atrybutów
| [No changes needed]) |
Typ |
Zanullowalny |
Opis |
Notatki |
| ID zadania |
string |
❌ |
|
|
| channelId |
string |
❌ |
|
|
| channelReference |
string |
❌ |
|
|
| queueId |
string |
✔️ |
|
null gdy classificationPolicyId jest określony dla zadania |
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| żądaneSelektoryPracownikówWygasły |
List<WorkerSelector> |
✔️ |
|
Na podstawie danych wejściowych użytkownika podczas tworzenia zadania |
| załączoneSelektoryPracownikówWygasły |
List<WorkerSelector> |
✔️ |
|
Lista selektorów pracowników dołączonych przez politykę klasyfikacji |
| zaplanowany na |
DateTimeOffset |
✔️ |
|
Na podstawie danych wejściowych użytkownika podczas tworzenia zadania |
| przyczyna niepowodzenia |
string |
✔️ |
|
Ustalone przez system |
| priorytet |
int |
❌ |
|
Na podstawie danych wejściowych użytkownika podczas tworzenia zadania |
Microsoft.Communication.RouterJobDeleted
Powrót do wykazu zdarzeń
{
"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 atrybutów
| [No changes needed]) |
Typ |
Zanullowalny |
Opis |
Notatki |
| ID zadania |
string |
❌ |
|
|
Zdarzenia pracownicze
Microsoft.Communication.RouterWorkerOfferIssued
Powrót do wykazu zdarzeń
{
"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 atrybutów
| [No changes needed]) |
Typ |
Zanullowalny |
Opis |
Notatki |
| identyfikator pracownika |
string |
❌ |
|
|
| ID zadania |
string |
❌ |
|
|
| channelReference |
string |
❌ |
|
|
| channelId |
string |
❌ |
|
|
| queueId |
string |
❌ |
|
|
| Identyfikator oferty |
string |
❌ |
|
|
| offeredOn |
DateTimeOffset |
❌ |
|
|
| wygasa |
DateTimeOffset |
❌ |
|
|
| priorytet zadania |
int |
❌ |
|
|
| jobLabels |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| tagi pracy |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
Microsoft.Communication.RouterWorkerOfferAccepted
Powrót do wykazu zdarzeń
{
"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 atrybutów
| [No changes needed]) |
Typ |
Zanullowalny |
Opis |
Notatki |
| identyfikator pracownika |
string |
❌ |
|
|
| ID zadania |
string |
❌ |
|
|
| priorytet zadania |
int |
❌ |
|
|
| etykiety pracy |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| jobTags |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| channelReference |
string |
❌ |
|
|
| channelId |
string |
❌ |
|
|
| queueId |
string |
❌ |
|
|
| Identyfikator oferty |
string |
❌ |
|
|
| identyfikator przypisania |
string |
❌ |
|
|
Microsoft.Communication.RouterWorkerOfferDeclined
Powrót do wykazu zdarzeń
{
"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 atrybutów
| [No changes needed]) |
Typ |
Zanullowalny |
Opis |
Notatki |
| identyfikator pracownika |
string |
❌ |
|
|
| ID zadania |
string |
❌ |
|
|
| channelReference |
string |
❌ |
|
|
| channelId |
string |
❌ |
|
|
| queueId |
string |
❌ |
|
|
| Identyfikator oferty |
string |
❌ |
|
|
Microsoft.Communication.RouterWorkerOfferRevoked
Powrót do wykazu zdarzeń
{
"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 atrybutów
| [No changes needed]) |
Typ |
Zanullowalny |
Opis |
Notatki |
| Identyfikator oferty |
string |
❌ |
|
|
| identyfikator pracownika |
string |
❌ |
|
|
| ID zadania |
string |
❌ |
|
|
| channelReference |
string |
❌ |
|
|
| channelId |
string |
❌ |
|
|
| queueId |
string |
❌ |
|
|
Microsoft.Communication.RouterPracownikOfertaWygasła
Powrót do wykazu zdarzeń
{
"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 atrybutów
| [No changes needed]) |
Typ |
Zanullowalny |
Opis |
Notatki |
| identyfikator pracownika |
string |
❌ |
|
|
| Identyfikator oferty |
string |
❌ |
|
|
| ID zadania |
string |
❌ |
|
|
| channelReference |
string |
❌ |
|
|
| channelId |
string |
❌ |
|
|
| queueId |
string |
❌ |
|
|
Microsoft.Communication.RouterWorkerRegistered
Powrót do wykazu zdarzeń
{
"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 atrybutów
| [No changes needed]) |
Typ |
Zanullowalny |
Opis |
Notatki |
| identyfikator pracownika |
string |
❌ |
|
|
| całkowita pojemność |
int |
❌ |
|
|
| queueAssignments |
List<QueueDetails> |
❌ |
|
|
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| konfiguracje kanałów |
List<ChannelConfiguration> |
❌ |
|
|
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
Microsoft.Communication.RouterWorkerDeregistered
Powrót do wykazu zdarzeń
{
"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 atrybutów
| [No changes needed]) |
Typ |
Zanullowalny |
Opis |
Notatki |
| identyfikator pracownika |
string |
❌ |
|
|
Microsoft.Communication.RouterWorkerDeleted
Powrót do wykazu zdarzeń
{
"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 atrybutów
| [No changes needed]) |
Typ |
Zanullowalny |
Opis |
Notatki |
| identyfikator procesu roboczego |
string |
❌ |
|
|
| całkowita pojemność |
int |
❌ |
|
|
| przypisania do kolejki |
List<QueueDetails> |
❌ |
|
|
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
| konfiguracje kanałów |
List<ChannelConfiguration> |
❌ |
|
|
| Etykiety |
Dictionary<string, object> |
✔️ |
|
Na podstawie danych wejściowych użytkownika |
Definicje modelu
Szczegóły kolejki
public class QueueDetails
{
public string Id { get; set; }
public string Name { get; set; }
public Dictionary<string, object>? Labels { get; set; }
}
Błąd komunikacji
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; }
}
Konfiguracja kanału
public class ChannelConfiguration
{
public string ChannelId { get; set; }
public int CapacityCostPerJob { get; set; }
public int? MaxNumberOfJobs { get; set; }
}
SelektorPracowników
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,
}