Share via


Azure Communication Services - 작업 라우터 이벤트

이 문서에서는 통신 서비스 작업 라우터 이벤트에 대한 속성과 스키마를 제공합니다. 이벤트 스키마에 대한 소개는 Azure Event Grid 이벤트 스키마를 참조하세요. 이러한 이벤트는 작업 및 작업자 수명 주기 전반에 걸쳐 Azure Communication Services에 대해 내보내집니다.

이벤트 유형

Azure Communication Services는 다음과 같은 작업 라우터 이벤트 유형을 내보낸다.

이벤트 하위 도메인 설명
RouterJobReceived Job 라우팅을 위해 새 작업이 만들어졌습니다.
RouterJobClassified Job 분류 정책이 작업에 적용되었습니다.
RouterJobQueued Job 작업이 성공적으로 큐에 추가되었습니다.
RouterJobClassificationFailed Job 라우터가 분류 정책을 사용하여 작업을 분류하지 못했습니다.
RouterJobCompleted Job 작업이 완료되었고 마무리에 들어갑니다.
RouterJobClosed Job 작업이 마감되었고 마무리가 완료되었습니다.
RouterJobCancelled Job 작업이 취소되었습니다.
RouterJobExceptionTriggered Job 작업 예외가 트리거되었습니다.
RouterJobWorkerSelectorsExpired Job 작업에서 하나 이상의 작업자 선택기가 만료되었습니다.
RouterJobUnassigned Job 이미 할당된 작업이 작업자에서 할당되지 않았습니다.
RouterJobWaitingForActivation Job 예약된 작업의 요청된 예약된 시간이 도착했습니다. 라우터는 contoso에서 작업을 수행하기를 기다리고 있습니다.
RouterJobSchedulingFailed Job 그러나 예약된 작업이 요청되었지만 라우터가 작업을 만들지 못했습니다.
RouterJobDeleted Job 작업이 삭제되었습니다.
RouterWorkerOfferIssued Worker 작업자에게 작업이 제공되었습니다.
RouterWorkerOfferAccepted Worker 작업자에 대한 제안이 수락되었습니다.
RouterWorkerOfferDeclined Worker 작업자에 대한 제안이 거부되었습니다.
RouterWorkerOfferRevoked Worker 작업자에 대한 제안이 철회되었습니다.
RouterWorkerOfferExpired Worker 작업자에 대한 제안이 만료되었습니다.
RouterWorkerRegistered Worker 작업자가 등록되었습니다(상태 비활성/드레이닝에서 활성으로 변경됨)
RouterWorkerDeregistered Worker 작업자 등록이 취소되었습니다(상태 활성에서 비활성/드레이닝으로 변경됨)
RouterWorkerDeleted Worker 작업자가 삭제되었습니다.

이벤트 응답

이벤트가 트리거되면 Event Grid 서비스는 해당 이벤트에 대한 데이터를 구독 엔드포인트로 보냅니다.

이 섹션에는 각 이벤트에 대해 데이터가 어떻게 표시되는지에 대한 예제가 포함되어 있습니다.

Microsoft.Communication.RouterJobReceived

이벤트 카탈로그로 돌아가기

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

특성 목록

Attribute Type Nullable 설명 참고
jobId string
channelReference string
jobStatus enum 가능한 값 PendingClassification, Queued 이 이벤트가 전송되면 분류 프로세스가 아직 실행되지 않았거나 연결된 queueId를 사용하여 작업이 생성되었습니다.
channelId string
classificationPolicyId string ✔️ 작업에 대해 queueId가 지정된 경우 null
queueId string ✔️ 작업에 대해 classificationPolicyId가 지정된 경우 null
priority int ✔️ classificationPolicyId가 지정된 경우 Null. 직접 큐 할당의 경우 null이 아닌 값입니다.
레이블 Dictionary<string, object> ✔️ 사용자 입력 기반
tags Dictionary<string, object> ✔️ 사용자 입력 기반
requestedWorkerSelectors List<WorkerSelector> ✔️ 사용자 입력 기반
scheduledOn DateTimeOffset ✔️ 사용자 입력 기반
unavailableForMatching bool ✔️ 사용자 입력 기반

Microsoft.Communication.RouterJobClassified

이벤트 카탈로그로 돌아가기

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

특성 목록

Attribute Type Nullable 설명 참고
queueDetails QueueDetails
jobId string
channelReference string
channelId string
classificationPolicyId string
queueId string ✔️ 큐 선택에 classificationPolicy가 사용되지 않은 경우 null
priority int ✔️ 작업에 우선 순위를 적용하는 데 classificationPolicy가 사용되지 않은 경우 null
레이블 Dictionary<string, object> ✔️ 사용자 입력 기반
tags Dictionary<string, object> ✔️ 사용자 입력 기반
attachedWorkerSelectors List<WorkerSelector> ✔️ 분류 정책에 의해 연결된 작업자 선택기 목록

Microsoft.Communication.RouterJobQueued

이벤트 카탈로그로 돌아가기

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

특성 목록

Attribute Type Nullable 설명 참고
jobId string
channelReference string ✔️
channelId string
queueId string
priority int
레이블 Dictionary<string, object> ✔️ 사용자 입력 기반
tags Dictionary<string, object> ✔️ 사용자 입력 기반
requestedWorkerSelectors List<WorkerSelector> ✔️ 작업을 만드는 동안 사용자 입력 기반
attachedWorkerSelectors List<WorkerSelector> ✔️ 분류 정책에 의해 연결된 작업자 선택기 목록

Microsoft.Communication.RouterJobClassificationFailed

이벤트 카탈로그로 돌아가기

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

특성 목록

Attribute Type Nullable 설명 참고
오류 List<CommunicationError>
jobId string
channelReference string
channelId string
classificationPolicyId string
레이블 Dictionary<string, object> ✔️ 사용자 입력 기반
tags Dictionary<string, object> ✔️ 사용자 입력 기반

Microsoft.Communication.RouterJobCompleted

이벤트 카탈로그로 돌아가기

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

특성 목록

Attribute Type Nullable 설명 참고
jobId string
channelReference string
channelId string
queueId string
레이블 Dictionary<string, object> ✔️ 사용자 입력 기반
tags Dictionary<string, object> ✔️ 사용자 입력 기반
assignmentId string
workerId string

Microsoft.Communication.RouterJobClosed

이벤트 카탈로그로 돌아가기

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

특성 목록

Attribute Type Nullable 설명 참고
jobId string
channelReference string
channelId string
queueId string
레이블 Dictionary<string, object> ✔️ 사용자 입력 기반
tags Dictionary<string, object> ✔️ 사용자 입력 기반
dispositionCode string ✔️ 사용자 입력 기반
workerId string
assignmentId string

Microsoft.Communication.RouterJobCancelled

이벤트 카탈로그로 돌아가기

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

특성 목록

Attribute Type Nullable 설명 참고
참고 string ✔️ 사용자 입력 기반
dispositionCode string
jobId string
channelReference string
channelId string
레이블 Dictionary<string, object> ✔️ 사용자 입력 기반
tags Dictionary<string, object> ✔️ 사용자 입력 기반
queueId string ✔️

Microsoft.Communication.RouterJobExceptionTriggered

이벤트 카탈로그로 돌아가기

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

특성 목록

Attribute Type Nullable 설명 참고
ruleKey string
exceptionRuleId string
jobId string
channelReference string
channelId string
레이블 Dictionary<string, object> ✔️ 사용자 입력 기반
tags Dictionary<string, object> ✔️ 사용자 입력 기반

Microsoft.Communication.RouterJobWorkerSelectorsExpired

이벤트 카탈로그로 돌아가기

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

특성 목록

Attribute Type Nullable 설명 참고
jobId string
channelReference string ✔️
queueId string
channelId string
레이블 Dictionary<string, object> ✔️ 사용자 입력 기반
tags Dictionary<string, object> ✔️ 사용자 입력 기반
requestedWorkerSelectorsExpired List<WorkerSelector> ✔️ 작업을 만드는 동안 사용자 입력 기반
attachedWorkerSelectorsExpired List<WorkerSelector> ✔️ 분류 정책에 의해 연결된 작업자 선택기 목록

Microsoft.Communication.RouterJobUnassigned

이벤트 카탈로그로 돌아가기

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

특성 목록

Attribute Type Nullable 설명 참고
jobId string
assignmentId string
workerId string
channelId string
channelReference string
queueId string ✔️ 작업에 대해 classificationPolicyId가 지정된 경우 null
레이블 Dictionary<string, object> ✔️ 사용자 입력 기반
tags Dictionary<string, object> ✔️ 사용자 입력 기반

Microsoft.Communication.RouterJobWaitingForActivation

이벤트 카탈로그로 돌아가기

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

특성 목록

Attribute Type Nullable 설명 참고
jobId string
channelId string
channelReference string
queueId string ✔️ 작업에 대해 classificationPolicyId가 지정된 경우 null
레이블 Dictionary<string, object> ✔️ 사용자 입력 기반
tags Dictionary<string, object> ✔️ 사용자 입력 기반
requestedWorkerSelectorsExpired List<WorkerSelector> ✔️ 작업을 만드는 동안 사용자 입력 기반
attachedWorkerSelectorsExpired List<WorkerSelector> ✔️ 분류 정책에 의해 연결된 작업자 선택기 목록
scheduledOn DateTimeOffset ✔️ 작업을 만드는 동안 사용자 입력 기반
unavailableForMatching bool ✔️ 작업을 만드는 동안 사용자 입력 기반
priority int 작업을 만드는 동안 사용자 입력 기반

Microsoft.Communication.RouterJobSchedulingFailed

이벤트 카탈로그로 돌아가기

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

특성 목록

Attribute Type Nullable 설명 참고
jobId string
channelId string
channelReference string
queueId string ✔️ 작업에 대해 classificationPolicyId가 지정된 경우 null
레이블 Dictionary<string, object> ✔️ 사용자 입력 기반
tags Dictionary<string, object> ✔️ 사용자 입력 기반
requestedWorkerSelectorsExpired List<WorkerSelector> ✔️ 작업을 만드는 동안 사용자 입력 기반
attachedWorkerSelectorsExpired List<WorkerSelector> ✔️ 분류 정책에 의해 연결된 작업자 선택기 목록
scheduledOn DateTimeOffset ✔️ 작업을 만드는 동안 사용자 입력 기반
failureReason string ✔️ 시스템 결정
priority int 작업을 만드는 동안 사용자 입력 기반

Microsoft.Communication.RouterJobDeleted

이벤트 카탈로그로 돌아가기

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

특성 목록

Attribute Type Nullable 설명 참고
jobId string

작업자 이벤트

Microsoft.Communication.RouterWorkerOfferIssued

이벤트 카탈로그로 돌아가기

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

특성 목록

Attribute Type Nullable 설명 참고
workerId string
jobId string
channelReference string
channelId string
queueId string
offerId string
offeredOn DateTimeOffset
expiresOn DateTimeOffset
jobPriority int
jobLabels Dictionary<string, object> ✔️ 사용자 입력 기반
jobTags Dictionary<string, object> ✔️ 사용자 입력 기반

Microsoft.Communication.RouterWorkerOfferAccepted

이벤트 카탈로그로 돌아가기

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

특성 목록

Attribute Type Nullable 설명 참고
workerId string
jobId string
jobPriority int
jobLabels Dictionary<string, object> ✔️ 사용자 입력 기반
jobTags Dictionary<string, object> ✔️ 사용자 입력 기반
channelReference string
channelId string
queueId string
offerId string
assignmentId string

Microsoft.Communication.RouterWorkerOfferDeclined

이벤트 카탈로그로 돌아가기

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

특성 목록

Attribute Type Nullable 설명 참고
workerId string
jobId string
channelReference string
channelId string
queueId string
offerId string

Microsoft.Communication.RouterWorkerOfferRevoked

이벤트 카탈로그로 돌아가기

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

특성 목록

Attribute Type Nullable 설명 참고
offerId string
workerId string
jobId string
channelReference string
channelId string
queueId string

Microsoft.Communication.RouterWorkerOfferExpired

이벤트 카탈로그로 돌아가기

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

특성 목록

Attribute Type Nullable 설명 참고
workerId string
offerId string
jobId string
channelReference string
channelId string
queueId string

Microsoft.Communication.RouterWorkerRegistered

이벤트 카탈로그로 돌아가기

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

특성 목록

Attribute Type Nullable 설명 참고
workerId string
totalCapacity int
queueAssignments List<QueueDetails>
레이블 Dictionary<string, object> ✔️ 사용자 입력 기반
channelConfigurations List<ChannelConfiguration>
tags Dictionary<string, object> ✔️ 사용자 입력 기반

Microsoft.Communication.RouterWorkerDeregistered

이벤트 카탈로그로 돌아가기

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

특성 목록

Attribute Type Nullable 설명 참고
workerId string

Microsoft.Communication.RouterWorkerDeleted

이벤트 카탈로그로 돌아가기

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

특성 목록

Attribute Type Nullable 설명 참고
workerId string
totalCapacity int
queueAssignments List<QueueDetails>
레이블 Dictionary<string, object> ✔️ 사용자 입력 기반
channelConfigurations List<ChannelConfiguration>
tags Dictionary<string, object> ✔️ 사용자 입력 기반

모델 정의

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