diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json index 2ceb3cdac1be..60cf419dc41a 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json @@ -9,45 +9,808 @@ "definitions": { "AcsIncomingCallEventData": { "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.IncomingCall event", + "type": "object", + "properties": { + "to": { + "description": "The communication identifier of the target user.", + "$ref": "../../../../../communication/data-plane/Common/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel", + "x-ms-client-name": "toCommunicationIdentifier" + }, + "from": { + "description": "The communication identifier of the user who initiated the call.", + "$ref": "../../../../../communication/data-plane/Common/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel", + "x-ms-client-name": "fromCommunicationIdentifier" + }, + "serverCallId": { + "description": "The Id of the server call", + "type": "string" + }, + "callerDisplayName": { + "description": "Display name of caller.", + "type": "string" + }, + "customContext": { + "description": "Custom Context of Incoming Call", + "$ref": "#/definitions/AcsIncomingCallCustomContext" + }, + "incomingCallContext": { + "description": "Signed incoming call context.", + "type": "string" + }, + "correlationId": { + "description": "CorrelationId (CallId).", + "type": "string" + } + } + }, + "AcsUserDisconnectedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.UserDisconnected event.", + "type": "object", + "properties": { + "userCommunicationIdentifier": { + "description": "The communication identifier of the user who was disconnected", + "$ref": "../../../../../communication/data-plane/Common/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel" + } + } + }, + "AcsRouterJobCancelledEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobCancelled event", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AcsRouterJobEventData" + } + ], + "properties": { + "note": { + "description": "Router Job Note", + "type": "string" + }, + "dispositionCode": { + "description": "Router Job Disposition Code", + "type": "string" + } + }, + "x-ms-examples": { + "snapshotCreatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/router_job_cancelled.json" + }, + "snapshotCreatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/router_job_cancelled.json" + } + } + }, + "AcsRouterJobClassificationFailedEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobClassificationFailed event", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AcsRouterJobEventData" + } + ], + "properties": { + "classificationPolicyId": { + "description": "Router Job Classification Policy Id", + "type": "string" + }, + "errors": { + "description": "Router Job Classification Failed Errors", + "type": "array", + "items": { + "$ref": "#/definitions/AcsRouterCommunicationError" + } + } + }, + "x-ms-examples": { + "snapshotCreatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/router_job_classification_failed.json" + }, + "snapshotCreatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/router_job_classification_failed.json" + } + } + }, + "AcsRouterJobClassifiedEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobClassified event", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AcsRouterJobEventData" + } + ], + "properties": { + "queueDetails": { + "description": "Router Job Queue Info", + "$ref": "#/definitions/AcsRouterQueueDetails" + }, + "classificationPolicyId": { + "description": "Router Job Classification Policy Id", + "type": "string" + }, + "priority": { + "description": "Router Job Priority", + "type": "integer", + "format": "int32" + }, + "attachedWorkerSelectors": { + "description": "Router Job Attached Worker Selector", + "type": "array", + "items": { + "$ref": "#/definitions/AcsRouterWorkerSelector" + } + } + }, + "x-ms-examples": { + "snapshotCreatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/router_job_classified.json" + }, + "snapshotCreatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/router_job_classified.json" + } + } + }, + "AcsRouterJobClosedEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobClosed event", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AcsRouterJobEventData" + } + ], + "properties": { + "assignmentId": { + "description": "Router Job Closed Assignment Id", + "type": "string" + }, + "workerId": { + "description": "Router Job Closed Worker Id", + "type": "string" + }, + "dispositionCode": { + "description": "Router Job Closed Disposition Code", + "type": "string" + } + }, + "x-ms-examples": { + "snapshotCreatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/router_job_closed.json" + }, + "snapshotCreatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/router_job_closed.json" + } + } + }, + "AcsRouterJobCompletedEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobCompleted event", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AcsRouterJobEventData" + } + ], + "properties": { + "assignmentId": { + "description": "Router Job Completed Assignment Id", + "type": "string" + }, + "workerId": { + "description": "Router Job Completed Worker Id", + "type": "string" + } + }, + "x-ms-examples": { + "snapshotCreatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/router_job_completed.json" + }, + "snapshotCreatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/router_job_completed.json" + } + } + }, + "AcsRouterJobDeletedEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobDeleted event", + "allOf": [ + { + "$ref": "#/definitions/AcsRouterJobEventData" + } + ], + "x-ms-examples": { + "snapshotCreatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/router_job_deleted.json" + }, + "snapshotCreatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/router_job_deleted.json" + } + } + }, + "AcsRouterJobExceptionTriggeredEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobExceptionTriggered event", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AcsRouterJobEventData" + } + ], + "properties": { + "ruleKey": { + "description": "Router Job Exception Triggered Rule Key", + "type": "string" + }, + "exceptionRuleId": { + "description": "Router Job Exception Triggered Rule Id", + "type": "string" + } + }, + "x-ms-examples": { + "snapshotCreatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/router_job_exception_triggered.json" + }, + "snapshotCreatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/router_job_exception_triggered.json" + } + } + }, + "AcsRouterJobQueuedEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobQueued event", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AcsRouterJobEventData" + } + ], + "properties": { + "priority": { + "description": "Router Job Priority", + "type": "integer", + "format": "int32" + }, + "attachedWorkerSelectors": { + "description": "Router Job Queued Attached Worker Selector", + "type": "array", + "items": { + "$ref": "#/definitions/AcsRouterWorkerSelector" + } + }, + "requestedWorkerSelectors": { + "description": "Router Job Queued Requested Worker Selector", + "type": "array", + "items": { + "$ref": "#/definitions/AcsRouterWorkerSelector" + } + } + }, + "x-ms-examples": { + "snapshotCreatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/router_job_queued.json" + }, + "snapshotCreatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/router_job_queued.json" + } + } + }, + "AcsRouterJobReceivedEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobReceived event", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AcsRouterJobEventData" + } + ], + "properties": { + "jobStatus": { + "description": "Router Job Received Job Status", + "type": "string", + "enum": [ + "PendingClassification", + "Queued", + "Assigned", + "Completed", + "Closed", + "Cancelled", + "ClassificationFailed", + "Created", + "PendingSchedule", + "Scheduled", + "ScheduleFailed", + "WaitingForActivation" + ], + "x-ms-enum": { + "name": "acsRouterJobStatus", + "modelAsString": true + } + }, + "classificationPolicyId": { + "description": "Router Job Classification Policy Id", + "type": "string" + }, + "priority": { + "description": "Router Job Priority", + "type": "integer", + "format": "int32" + }, + "requestedWorkerSelectors": { + "description": "Router Job Received Requested Worker Selectors", + "type": "array", + "items": { + "$ref": "#/definitions/AcsRouterWorkerSelector" + } + }, + "scheduledOn": { + "description": "Router Job Received Scheduled Time in UTC", + "type": "string", + "format": "date-time" + }, + "unavailableForMatching": { + "description": "Unavailable For Matching for Router Job Received", + "type": "boolean" + } + }, + "required": [ + "unavailableForMatching" + ], + "x-ms-examples": { + "snapshotCreatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/router_job_received.json" + }, + "snapshotCreatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/router_job_received.json" + } + } + }, + "AcsRouterJobSchedulingFailedEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobSchedulingFailed event", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AcsRouterJobEventData" + } + ], + "properties": { + "priority": { + "description": "Router Job Priority", + "type": "integer", + "format": "int32" + }, + "expiredAttachedWorkerSelectors": { + "description": "Router Job Scheduling Failed Attached Worker Selector Expired", + "type": "array", + "items": { + "$ref": "#/definitions/AcsRouterWorkerSelector" + } + }, + "expiredRequestedWorkerSelectors": { + "description": "Router Job Scheduling Failed Requested Worker Selector Expired", + "type": "array", + "items": { + "$ref": "#/definitions/AcsRouterWorkerSelector" + } + }, + "scheduledOn": { + "description": "Router Job Scheduling Failed Scheduled Time in UTC", + "type": "string", + "format": "date-time" + }, + "failureReason": { + "description": "Router Job Scheduling Failed Reason", + "type": "string" + } + }, + "x-ms-examples": { + "snapshotCreatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/router_job_scheduling_failed.json" + }, + "snapshotCreatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/router_job_scheduling_failed.json" + } + } + }, + "AcsRouterJobUnassignedEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobUnassigned event", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AcsRouterJobEventData" + } + ], + "properties": { + "assignmentId": { + "description": "Router Job Unassigned Assignment Id", + "type": "string" + }, + "workerId": { + "description": "Router Job Unassigned Worker Id", + "type": "string" + } + }, + "x-ms-examples": { + "snapshotCreatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/router_job_unassigned.json" + }, + "snapshotCreatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/router_job_unassigned.json" + } + } + }, + "AcsRouterJobWaitingForActivationEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobWaitingForActivation event", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AcsRouterJobEventData" + } + ], + "properties": { + "priority": { + "description": "Router Job Waiting For Activation Priority", + "type": "integer", + "format": "int32" + }, + "expiredAttachedWorkerSelectors": { + "description": "Router Job Waiting For Activation Worker Selector Expired", + "type": "array", + "items": { + "$ref": "#/definitions/AcsRouterWorkerSelector" + } + }, + "expiredRequestedWorkerSelectors": { + "description": "Router Job Waiting For Activation Requested Worker Selector Expired", + "type": "array", + "items": { + "$ref": "#/definitions/AcsRouterWorkerSelector" + } + }, + "scheduledOn": { + "description": "Router Job Waiting For Activation Scheduled Time in UTC", + "type": "string", + "format": "date-time" + }, + "unavailableForMatching": { + "description": "Router Job Waiting For Activation Unavailable For Matching", + "type": "boolean" + } + }, + "required": [ + "unavailableForMatching" + ], + "x-ms-examples": { + "snapshotCreatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/router_job_waiting_for_activation.json" + }, + "snapshotCreatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/router_job_waiting_for_activation.json" + } + } + }, + "AcsRouterJobWorkerSelectorsExpiredEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobWorkerSelectorsExpired event", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AcsRouterJobEventData" + } + ], + "properties": { + "expiredRequestedWorkerSelectors": { + "description": "Router Job Worker Selectors Expired Requested Worker Selectors", + "type": "array", + "items": { + "$ref": "#/definitions/AcsRouterWorkerSelector" + } + }, + "expiredAttachedWorkerSelectors": { + "description": "Router Job Worker Selectors Expired Attached Worker Selectors", + "type": "array", + "items": { + "$ref": "#/definitions/AcsRouterWorkerSelector" + } + } + }, + "x-ms-examples": { + "snapshotCreatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/router_job_worker_selectors_expired.json" + }, + "snapshotCreatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/router_job_worker_selectors_expired.json" + } + } + }, + "AcsRouterWorkerDeletedEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerDeleted event", + "allOf": [ + { + "$ref": "#/definitions/AcsRouterWorkerEventData" + } + ], + "x-ms-examples": { + "snapshotCreatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/router_worker_deleted.json" + }, + "snapshotCreatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/router_worker_deleted.json" + } + } + }, + "AcsRouterWorkerDeregisteredEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerDeregistered event", + "type": "object", + "properties": { + "workerId": { + "description": "Router Worker Deregistered Worker Id", + "type": "string" + } + }, + "x-ms-examples": { + "snapshotCreatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/router_worker_deregistered.json" + }, + "snapshotCreatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/router_worker_deregistered.json" + } + } + }, + "AcsRouterWorkerOfferAcceptedEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferAccepted event", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AcsRouterWorkerEventData" + } + ], + "properties": { + "queueId": { + "description": "Router Worker Offer Accepted Queue Id", + "type": "string" + }, + "offerId": { + "description": "Router Worker Offer Accepted Offer Id", + "type": "string" + }, + "assignmentId": { + "description": "Router Worker Offer Accepted Assignment Id", + "type": "string" + }, + "jobPriority": { + "description": "Router Worker Offer Accepted Job Priority", + "type": "integer", + "format": "int32" + }, + "workerLabels": { + "type": "object", + "description": "Router Worker Offer Accepted Worker Labels", + "additionalProperties": { + "type": "string" + } + }, + "workerTags": { + "type": "object", + "description": "Router Worker Offer Accepted Worker Tags", + "additionalProperties": { + "type": "string" + } + }, + "jobLabels": { + "type": "object", + "description": "Router Worker Offer Accepted Job Labels", + "additionalProperties": { + "type": "string" + } + }, + "jobTags": { + "type": "object", + "description": "Router Worker Offer Accepted Job Tags", + "additionalProperties": { + "type": "string" + } + } + }, + "x-ms-examples": { + "snapshotCreatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/router_worker_offer_accepted.json" + }, + "snapshotCreatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/router_worker_offer_accepted.json" + } + } + }, + "AcsRouterWorkerOfferDeclinedEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferDeclined event", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AcsRouterWorkerEventData" + } + ], + "properties": { + "queueId": { + "description": "Router Worker Offer Declined Queue Id", + "type": "string" + }, + "offerId": { + "description": "Router Worker Offer Declined Offer Id", + "type": "string" + } + }, + "x-ms-examples": { + "snapshotCreatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/router_worker_offer_declined.json" + }, + "snapshotCreatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/router_worker_offer_declined.json" + } + } + }, + "AcsRouterWorkerOfferExpiredEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferExpired event", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AcsRouterWorkerEventData" + } + ], "properties": { - "to": { - "description": "The communication identifier of the target user.", - "$ref": "../../../../../communication/data-plane/Common/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel", - "x-ms-client-name": "toCommunicationIdentifier" + "queueId": { + "description": "Router Worker Offer Expired Queue Id", + "type": "string" }, - "from": { - "description": "The communication identifier of the user who initiated the call.", - "$ref": "../../../../../communication/data-plane/Common/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel", - "x-ms-client-name": "fromCommunicationIdentifier" + "offerId": { + "description": "Router Worker Offer Expired Offer Id", + "type": "string" + } + }, + "x-ms-examples": { + "snapshotCreatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/router_worker_offer_expired.json" }, - "serverCallId": { - "description": "The Id of the server call", + "snapshotCreatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/router_worker_offer_expired.json" + } + } + }, + "AcsRouterWorkerOfferIssuedEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferIssued event", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AcsRouterWorkerEventData" + } + ], + "properties": { + "queueId": { + "description": "Router Worker Offer Issued Queue Id", "type": "string" }, - "callerDisplayName": { - "description": "Display name of caller.", + "offerId": { + "description": "Router Worker Offer Issued Offer Id", "type": "string" }, - "customContext": { - "description": "Custom Context of Incoming Call", - "$ref": "#/definitions/AcsIncomingCallCustomContext" + "jobPriority": { + "description": "Router Worker Offer Issued Job Priority", + "type": "integer", + "format": "int32" }, - "incomingCallContext": { - "description": "Signed incoming call context.", + "workerLabels": { + "type": "object", + "description": "Router Worker Offer Issued Worker Labels", + "additionalProperties": { + "type": "string" + } + }, + "offeredOn": { + "description": "Router Worker Offer Issued Time in UTC", + "type": "string", + "format": "date-time" + }, + "expiresOn": { + "description": "Router Worker Offer Issued Expiration Time in UTC", + "type": "string", + "format": "date-time" + }, + "workerTags": { + "type": "object", + "description": "Router Worker Offer Issued Worker Tags", + "additionalProperties": { + "type": "string" + } + }, + "jobLabels": { + "type": "object", + "description": "Router Worker Offer Issued Job Labels", + "additionalProperties": { + "type": "string" + } + }, + "jobTags": { + "type": "object", + "description": "Router Worker Offer Issued Job Tags", + "additionalProperties": { + "type": "string" + } + } + }, + "x-ms-examples": { + "snapshotCreatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/router_worker_offer_issued.json" + }, + "snapshotCreatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/router_worker_offer_issued.json" + } + } + }, + "AcsRouterWorkerOfferRevokedEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferRevoked event", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AcsRouterWorkerEventData" + } + ], + "properties": { + "queueId": { + "description": "Router Worker Offer Revoked Queue Id", "type": "string" }, - "correlationId": { - "description": "CorrelationId (CallId).", + "offerId": { + "description": "Router Worker Offer Revoked Offer Id", "type": "string" } + }, + "x-ms-examples": { + "snapshotCreatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/router_worker_offer_revoked.json" + }, + "snapshotCreatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/router_worker_offer_revoked.json" + } } }, - "AcsUserDisconnectedEventData": { - "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Communication.UserDisconnected event.", + "AcsRouterWorkerRegisteredEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerRegistered event", + "type": "object", "properties": { - "userCommunicationIdentifier": { - "description": "The communication identifier of the user who was disconnected", - "$ref": "../../../../../communication/data-plane/Common/stable/2021-03-07/common.json#/definitions/CommunicationIdentifierModel" + "workerId": { + "description": "Router Worker Registered Worker Id", + "type": "string" + }, + "queueAssignments": { + "description": "Router Worker Registered Queue Info", + "type": "array", + "items": { + "$ref": "#/definitions/AcsRouterQueueDetails" + } + }, + "channelConfigurations": { + "description": "Router Worker Registered Channel Configuration", + "type": "array", + "items": { + "$ref": "#/definitions/AcsRouterChannelConfiguration" + } + }, + "totalCapacity": { + "description": "Router Worker Register Total Capacity", + "type": "integer", + "format": "int32" + }, + "labels": { + "type": "object", + "description": "Router Worker Registered Labels", + "additionalProperties": { + "type": "string" + } + }, + "tags": { + "type": "object", + "description": "Router Worker Registered Tags", + "additionalProperties": { + "type": "string" + } + } + }, + "x-ms-examples": { + "snapshotCreatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/router_worker_registered.json" + }, + "snapshotCreatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/router_worker_registered.json" } } }, @@ -58,6 +821,7 @@ "$ref": "#/definitions/AcsChatMessageEventBaseProperties" } ], + "type": "object", "properties": { "messageBody": { "description": "The body of the chat message", @@ -79,6 +843,7 @@ "$ref": "#/definitions/AcsChatMessageEventInThreadBaseProperties" } ], + "type": "object", "properties": { "messageBody": { "description": "The body of the chat message", @@ -100,6 +865,7 @@ "$ref": "#/definitions/AcsChatMessageEventBaseProperties" } ], + "type": "object", "properties": { "messageBody": { "description": "The body of the chat message", @@ -126,6 +892,7 @@ "$ref": "#/definitions/AcsChatMessageEventInThreadBaseProperties" } ], + "type": "object", "properties": { "messageBody": { "description": "The body of the chat message", @@ -152,6 +919,7 @@ "$ref": "#/definitions/AcsChatMessageEventBaseProperties" } ], + "type": "object", "properties": { "deleteTime": { "description": "The time at which the message was deleted", @@ -167,6 +935,7 @@ "$ref": "#/definitions/AcsChatMessageEventInThreadBaseProperties" } ], + "type": "object", "properties": { "deleteTime": { "description": "The time at which the message was deleted", @@ -182,6 +951,7 @@ "$ref": "#/definitions/AcsChatThreadEventBaseProperties" } ], + "type": "object", "properties": { "createdByCommunicationIdentifier": { "description": "The communication identifier of the user who created the thread", @@ -210,6 +980,7 @@ "$ref": "#/definitions/AcsChatThreadEventInThreadBaseProperties" } ], + "type": "object", "properties": { "createdByCommunicationIdentifier": { "description": "The communication identifier of the user who created the thread", @@ -238,6 +1009,7 @@ "$ref": "#/definitions/AcsChatThreadEventBaseProperties" } ], + "type": "object", "properties": { "deletedByCommunicationIdentifier": { "description": "The communication identifier of the user who deleted the thread", @@ -257,6 +1029,7 @@ "$ref": "#/definitions/AcsChatThreadEventInThreadBaseProperties" } ], + "type": "object", "properties": { "deletedByCommunicationIdentifier": { "description": "The communication identifier of the user who deleted the thread", @@ -276,6 +1049,7 @@ "$ref": "#/definitions/AcsChatThreadEventBaseProperties" } ], + "type": "object", "properties": { "editedByCommunicationIdentifier": { "description": "The communication identifier of the user who updated the thread properties", @@ -302,6 +1076,7 @@ "$ref": "#/definitions/AcsChatThreadEventInThreadBaseProperties" } ], + "type": "object", "properties": { "editedByCommunicationIdentifier": { "description": "The communication identifier of the user who updated the thread properties", @@ -328,6 +1103,7 @@ "$ref": "#/definitions/AcsChatThreadEventBaseProperties" } ], + "type": "object", "properties": { "time": { "description": "The time at which the user was added to the thread", @@ -351,6 +1127,7 @@ "$ref": "#/definitions/AcsChatThreadEventBaseProperties" } ], + "type": "object", "properties": { "time": { "description": "The time at which the user was removed to the thread", @@ -374,6 +1151,7 @@ "$ref": "#/definitions/AcsChatEventInThreadBaseProperties" } ], + "type": "object", "properties": { "time": { "description": "The time at which the user was added to the thread", @@ -402,6 +1180,7 @@ "$ref": "#/definitions/AcsChatEventInThreadBaseProperties" } ], + "type": "object", "properties": { "time": { "description": "The time at which the user was removed to the thread", @@ -430,6 +1209,7 @@ "$ref": "#/definitions/AcsSmsEventBaseProperties" } ], + "type": "object", "properties": { "deliveryStatus": { "description": "Status of Delivery", @@ -464,6 +1244,7 @@ "$ref": "#/definitions/AcsSmsEventBaseProperties" } ], + "type": "object", "properties": { "message": { "description": "The SMS content", @@ -478,6 +1259,7 @@ }, "AcsRecordingFileStatusUpdatedEventData": { "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RecordingFileStatusUpdated event.", + "type": "object", "properties": { "recordingStorageInfo": { "description": "The details of recording storage information", @@ -659,6 +1441,7 @@ "$ref": "#/definitions/AcsChatEventBaseProperties" } ], + "type": "object", "properties": { "createTime": { "description": "The original creation time of the thread", @@ -679,6 +1462,7 @@ "$ref": "#/definitions/AcsChatEventInThreadBaseProperties" } ], + "type": "object", "properties": { "createTime": { "description": "The original creation time of the thread", @@ -699,6 +1483,7 @@ "$ref": "#/definitions/AcsChatEventBaseProperties" } ], + "type": "object", "properties": { "messageId": { "description": "The chat message id", @@ -735,6 +1520,7 @@ "$ref": "#/definitions/AcsChatEventInThreadBaseProperties" } ], + "type": "object", "properties": { "messageId": { "description": "The chat message id", @@ -778,6 +1564,68 @@ } } }, + "AcsRouterJobEventData": { + "description": "Schema of common properties of all Router Job events", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AcsRouterEventData" + } + ], + "properties": { + "queueId": { + "description": "Router Job events Queue Id", + "type": "string" + }, + "labels": { + "description": "Router Job events Labels", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "tags": { + "description": "Router Jobs events Tags", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "AcsRouterWorkerEventData": { + "description": "Schema of common properties of all Router Worker events", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AcsRouterEventData" + } + ], + "properties": { + "workerId": { + "description": "Router Worker events Worker Id", + "type": "string" + } + } + }, + "AcsRouterEventData": { + "description": "Schema of common properties of all Router events", + "type": "object", + "properties": { + "jobId": { + "description": "Router Event Job ID", + "type": "string" + }, + "channelReference": { + "description": "Router Event Channel Reference", + "type": "string" + }, + "channelId": { + "description": "Router Event Channel ID", + "type": "string" + } + } + }, "AcsChatEventBaseProperties": { "description": "Schema of common properties of all chat events", "type": "object", @@ -920,6 +1768,164 @@ } } } + }, + "AcsRouterChannelConfiguration": { + "description": "Router Channel Configuration", + "type": "object", + "properties": { + "channelId": { + "description": "Channel ID for Router Job", + "type": "string" + }, + "capacityCostPerJob": { + "description": "Capacity Cost Per Job for Router Job", + "type": "integer", + "format": "int32" + }, + "maxNumberOfJobs": { + "description": "Max Number of Jobs for Router Job", + "type": "integer", + "format": "int32" + } + } + }, + "AcsRouterQueueDetails": { + "description": "Router Queue Details", + "type": "object", + "properties": { + "id": { + "description": "Router Queue Id", + "type": "string" + }, + "name": { + "description": "Router Queue Name", + "type": "string" + }, + "labels": { + "description": "Router Queue Labels", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "AcsRouterCommunicationError": { + "description": "Router Communication Error", + "type": "object", + "properties": { + "code": { + "description": "Router Communication Error Code", + "type": "string" + }, + "message": { + "description": "Router Communication Error Message", + "type": "string" + }, + "target": { + "description": "Router Communication Error Target", + "type": "string" + }, + "innerError": { + "description": "Router Communication Inner Error", + "$ref": "#/definitions/AcsRouterCommunicationError" + }, + "details": { + "description": "List of Router Communication Errors", + "type": "array", + "items": { + "$ref": "#/definitions/AcsRouterCommunicationError" + } + } + } + }, + "AcsRouterWorkerSelector": { + "description": "Router Job Worker Selector", + "type": "object", + "properties": { + "key": { + "description": "Router Job Worker Selector Key", + "type": "string" + }, + "labelOperator": { + "description": "Router Job Worker Selector Label Operator", + "type": "string", + "enum": [ + "Equal", + "NotEqual", + "Greater", + "Less", + "GreaterThanOrEqual", + "LessThanOrEqual" + ], + "x-ms-enum": { + "name": "acsRouterLabelOperator", + "modelAsString": true, + "values": [ + { + "value": "Equal", + "description": "=" + }, + { + "value": "NotEqual", + "description": "!=" + }, + { + "value": "Greater", + "description": ">" + }, + { + "value": "Less", + "description": "<" + }, + { + "value": "GreaterThanOrEqual", + "description": ">=" + }, + { + "value": "LessThanOrEqual", + "description": "<=" + } + ] + } + }, + "labelValue": { + "description": "Router Job Worker Selector Value", + "type": "object" + }, + "ttl": { + "description": "Router Job Worker Selector TTL", + "type": "number", + "x-ms-client-name": "timeToLive" + }, + "state": { + "description": "Router Job Worker Selector State", + "type": "string", + "enum": [ + "active", + "expired" + ], + "x-ms-enum": { + "name": "AcsRouterWorkerSelectorState", + "modelAsString": true, + "values": [ + { + "value": "active", + "description": "Router Job Worker Selector is Active" + }, + { + "value": "expired", + "description": "Router Job Worker Selector has Expire" + } + ] + } + }, + "expirationTime": { + "description": "Router Job Worker Selector Expiration Time", + "type": "string", + "format": "date-time" + } + } } } } diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_cancelled.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_cancelled.json new file mode 100644 index 000000000000..290e8538407a --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_cancelled.json @@ -0,0 +1,26 @@ +{ + "id": "b6d8687a-5a1a-42ae-b8b5-ff7ec338c872", + "source": "/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 ", + "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": "" + }, + "type": "Microsoft.Communication.RouterJobCancelled", + "specVersion": "1.0", + "time": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_classification_failed.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_classification_failed.json new file mode 100644 index 000000000000..fb3b6fd0d6df --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_classification_failed.json @@ -0,0 +1,33 @@ +{ + "id": "b6d8687a-5a1a-42ae-b8b5-ff7ec338c872", + "source": "/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 ", + "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" + } + }, + "type": "Microsoft.Communication.RouterJobClassificationFailed", + "specVersion": "1.0", + "time": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_classified.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_classified.json new file mode 100644 index 000000000000..39bf9af18f8f --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_classified.json @@ -0,0 +1,43 @@ +{ + "id": "b6d8687a-5a1a-42ae-b8b5-ff7ec338c872", + "source": "/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" + } + ] + }, + "type": "Microsoft.Communication.RouterJobClassified", + "specVersion": "1.0", + "time": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_closed.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_closed.json new file mode 100644 index 000000000000..402167d10350 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_closed.json @@ -0,0 +1,27 @@ +{ + "id": "b6d8687a-5a1a-42ae-b8b5-ff7ec338c872", + "source": "/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" + } + }, + "type": "Microsoft.Communication.RouterJobClosed", + "specVersion": "1.0", + "time": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_completed.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_completed.json new file mode 100644 index 000000000000..893b46f5ec4b --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_completed.json @@ -0,0 +1,26 @@ +{ + "id": "b6d8687a-5a1a-42ae-b8b5-ff7ec338c872", + "source": "/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": "" + }, + "type": "Microsoft.Communication.RouterJobCompleted", + "specVersion": "1.0", + "time": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_deleted.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_deleted.json new file mode 100644 index 000000000000..700ceb21d06e --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_deleted.json @@ -0,0 +1,24 @@ +{ + "id": "acdf8fa5-8ab4-4a65-874a-c1d2a4a97f2e", + "source": "/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": "" + }, + "type": "Microsoft.Communication.RouterJobDeleted", + "specVersion": "1.0", + "time": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_exception_triggered.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_exception_triggered.json new file mode 100644 index 000000000000..c57bb8ab6579 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_exception_triggered.json @@ -0,0 +1,25 @@ +{ + "id": "1027db4a-17fe-4a7f-ae67-276c3120a29f", + "source": "/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" + } + }, + "type": "Microsoft.Communication.RouterJobExceptionTriggered", + "specVersion": "1.0", + "time": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_queued.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_queued.json new file mode 100644 index 000000000000..4a624031d800 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_queued.json @@ -0,0 +1,41 @@ +{ + "id": "b6d8687a-5a1a-42ae-b8b5-ff7ec338c872", + "source": "/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" + } + ] + }, + "type": "Microsoft.Communication.RouterJobQueued", + "specVersion": "1.0", + "time": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_received.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_received.json new file mode 100644 index 000000000000..51a1b4a162de --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_received.json @@ -0,0 +1,37 @@ +{ + "id": "acdf8fa5-8ab4-4a65-874a-c1d2a4a97f2e", + "source": "/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, + "ttl": "P3Y6M4DT12H30M5S" + } + ], + "scheduledOn": "3/28/2007 7:13:50 PM +00:00", + "unavailableForMatching": false + }, + "type": "Microsoft.Communication.RouterJobReceived", + "specVersion": "1.0", + "time": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_scheduling_failed.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_scheduling_failed.json new file mode 100644 index 000000000000..d19c5e46d2cd --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_scheduling_failed.json @@ -0,0 +1,43 @@ +{ + "id": "acdf8fa5-8ab4-4a65-874a-c1d2a4a97f2e", + "source": "/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": "Expired Job" + }, + "type": "Microsoft.Communication.RouterJobSchedulingFailed", + "specVersion": "1.0", + "time": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_unassigned.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_unassigned.json new file mode 100644 index 000000000000..21311888e4b6 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_unassigned.json @@ -0,0 +1,26 @@ +{ + "id": "acdf8fa5-8ab4-4a65-874a-c1d2a4a97f2e", + "source": "/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" + } + }, + "type": "Microsoft.Communication.RouterJobUnassigned", + "specVersion": "1.0", + "time": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_waiting_for_activation.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_waiting_for_activation.json new file mode 100644 index 000000000000..eb225a92aebc --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_waiting_for_activation.json @@ -0,0 +1,43 @@ +{ + "id": "acdf8fa5-8ab4-4a65-874a-c1d2a4a97f2e", + "source": "/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 + }, + "type": "Microsoft.Communication.RouterJobWaitingForActivation", + "specVersion": "1.0", + "time": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_worker_selectors_expired.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_worker_selectors_expired.json new file mode 100644 index 000000000000..23be55969e5f --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_job_worker_selectors_expired.json @@ -0,0 +1,40 @@ +{ + "id": "b6d8687a-5a1a-42ae-b8b5-ff7ec338c872", + "source": "/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" + }, + "expiredRequestedWorkerSelectors": [ + { + "key": "string", + "labelOperator": "equal", + "value": 5, + "ttl": "P3Y6M4DT12H30M5S" + } + ], + "attachedWorkerSelectorsExpired": [ + { + "key": "string", + "labelOperator": "equal", + "value": 5, + "ttl": "P3Y6M4DT12H30M5S" + } + ] + }, + "type": "Microsoft.Communication.RouterJobWorkerSelectorsExpired", + "specVersion": "1.0", + "time": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_deleted.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_deleted.json new file mode 100644 index 000000000000..9f3772d4bb03 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_deleted.json @@ -0,0 +1,11 @@ +{ + "id": "1027db4a-17fe-4a7f-ae67-276c3120a29f", + "source": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}", + "subject": "worker/{worker-id}", + "data": { + "workerId": "worker3" + }, + "type": "Microsoft.Communication.RouterWorkerDeleted", + "specVersion": "1.0", + "time": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_deregistered.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_deregistered.json new file mode 100644 index 000000000000..b4e8db29830d --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_deregistered.json @@ -0,0 +1,11 @@ +{ + "id": "1027db4a-17fe-4a7f-ae67-276c3120a29f", + "source": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}", + "subject": "worker/{worker-id}", + "data": { + "workerId": "worker3" + }, + "type": "Microsoft.Communication.RouterWorkerDeregistered", + "specVersion": "1.0", + "time": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_offer_accepted.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_offer_accepted.json new file mode 100644 index 000000000000..a25cbc7fa573 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_offer_accepted.json @@ -0,0 +1,28 @@ +{ + "id": "1027db4a-17fe-4a7f-ae67-276c3120a29f", + "source": "/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" + }, + "type": "Microsoft.Communication.RouterWorkerOfferAccepted", + "specVersion": "1.0", + "time": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_offer_declined.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_offer_declined.json new file mode 100644 index 000000000000..215ddc5b21c2 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_offer_declined.json @@ -0,0 +1,16 @@ +{ + "id": "1027db4a-17fe-4a7f-ae67-276c3120a29f", + "source": "/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" + }, + "type": "Microsoft.Communication.RouterWorkerOfferDeclined", + "specVersion": "1.0", + "time": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_offer_expired.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_offer_expired.json new file mode 100644 index 000000000000..a6844f457a53 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_offer_expired.json @@ -0,0 +1,16 @@ +{ + "id": "1027db4a-17fe-4a7f-ae67-276c3120a29f", + "source": "/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" + }, + "type": "Microsoft.Communication.RouterWorkerOfferExpired", + "specVersion": "1.0", + "time": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_offer_issued.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_offer_issued.json new file mode 100644 index 000000000000..c9169cf47e2e --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_offer_issued.json @@ -0,0 +1,29 @@ +{ + "id": "1027db4a-17fe-4a7f-ae67-276c3120a29f", + "source": "/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" + } + }, + "type": "Microsoft.Communication.RouterWorkerOfferIssued", + "specVersion": "1.0", + "time": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_offer_revoked.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_offer_revoked.json new file mode 100644 index 000000000000..174bfb8982ee --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_offer_revoked.json @@ -0,0 +1,16 @@ +{ + "id": "1027db4a-17fe-4a7f-ae67-276c3120a29f", + "source": "/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" + }, + "type": "Microsoft.Communication.RouterWorkerOfferRevoked", + "specVersion": "1.0", + "time": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_registered.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_registered.json new file mode 100644 index 000000000000..e3b242ae8df5 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/cloud-events-schema/router_worker_registered.json @@ -0,0 +1,39 @@ +{ + "id": "1027db4a-17fe-4a7f-ae67-276c3120a29f", + "source": "/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 + } + ], + "tags": { + "Locale": "en-us", + "Segment": "Enterprise", + "Token": "FooToken" + }, + "maxNumberOfJobs": 5 + }, + "type": "Microsoft.Communication.RouterWorkerRegistered", + "specVersion": "1.0", + "time": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_cancelled.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_cancelled.json new file mode 100644 index 000000000000..ef13d59a8437 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_cancelled.json @@ -0,0 +1,27 @@ +{ + "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 ", + "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" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_classification_failed.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_classification_failed.json new file mode 100644 index 000000000000..ad361b31ca0a --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_classification_failed.json @@ -0,0 +1,34 @@ +{ + "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 ", + "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" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_classified.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_classified.json new file mode 100644 index 000000000000..44466184eb22 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_classified.json @@ -0,0 +1,44 @@ +{ + "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": { + "queueInfo": { + "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" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_closed.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_closed.json new file mode 100644 index 000000000000..504fa5834b66 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_closed.json @@ -0,0 +1,28 @@ +{ + "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" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_completed.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_completed.json new file mode 100644 index 000000000000..e33a06a000b5 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_completed.json @@ -0,0 +1,27 @@ +{ + "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": "" + }, + "eventType": "Microsoft.Communication.RouterJobCompleted", + "dataVersion": "1.0", + "metadataVersion": "1", + "eventTime": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_deleted.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_deleted.json new file mode 100644 index 000000000000..400da9f562bf --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_deleted.json @@ -0,0 +1,25 @@ +{ + "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" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_exception_triggered.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_exception_triggered.json new file mode 100644 index 000000000000..f7a982fefb09 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_exception_triggered.json @@ -0,0 +1,26 @@ +{ + "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" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_queued.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_queued.json new file mode 100644 index 000000000000..76462d18085d --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_queued.json @@ -0,0 +1,42 @@ +{ + "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" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_received.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_received.json new file mode 100644 index 000000000000..20da712b08b5 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_received.json @@ -0,0 +1,38 @@ +{ + "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, + "ttl": "P3Y6M4DT12H30M5S" + } + ], + "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" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_scheduling_failed.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_scheduling_failed.json new file mode 100644 index 000000000000..f6e4e6d0d206 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_scheduling_failed.json @@ -0,0 +1,44 @@ +{ + "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": "Expired Job" + }, + "eventType": "Microsoft.Communication.RouterJobSchedulingFailed", + "dataVersion": "1.0", + "metadataVersion": "1", + "eventTime": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_unassigned.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_unassigned.json new file mode 100644 index 000000000000..5c15917bd7e2 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_unassigned.json @@ -0,0 +1,27 @@ +{ + "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" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_waiting_for_activation.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_waiting_for_activation.json new file mode 100644 index 000000000000..d26020ea45f3 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_waiting_for_activation.json @@ -0,0 +1,44 @@ +{ + "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" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_worker_selectors_expired.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_worker_selectors_expired.json new file mode 100644 index 000000000000..8b716e5d75d4 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_job_worker_selectors_expired.json @@ -0,0 +1,41 @@ +{ + "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" + }, + "expiredRequestedWorkerSelectors": [ + { + "key": "string", + "labelOperator": "equal", + "value": 5, + "ttl": "P3Y6M4DT12H30M5S" + } + ], + "expiredAttachedWorkerSelectors": [ + { + "key": "string", + "labelOperator": "equal", + "value": 5, + "ttl": "P3Y6M4DT12H30M5S" + } + ] + }, + "eventType": "Microsoft.Communication.RouterJobWorkerSelectorsExpired", + "dataVersion": "1.0", + "metadataVersion": "1", + "eventTime": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_deleted.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_deleted.json new file mode 100644 index 000000000000..3db418f49e9d --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_deleted.json @@ -0,0 +1,12 @@ +{ + "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.RouterWorkerDeleted", + "dataVersion": "1.0", + "metadataVersion": "1", + "eventTime": "2022-02-17T00:55:25.1736293Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_deregistered.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_deregistered.json new file mode 100644 index 000000000000..ad80934ac30c --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_deregistered.json @@ -0,0 +1,12 @@ +{ + "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" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_offer_accepted.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_offer_accepted.json new file mode 100644 index 000000000000..3226a433dfc4 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_offer_accepted.json @@ -0,0 +1,29 @@ +{ + "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" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_offer_declined.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_offer_declined.json new file mode 100644 index 000000000000..daa1afc3b75c --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_offer_declined.json @@ -0,0 +1,17 @@ +{ + "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" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_offer_expired.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_offer_expired.json new file mode 100644 index 000000000000..c62dc520b90a --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_offer_expired.json @@ -0,0 +1,17 @@ +{ + "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" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_offer_issued.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_offer_issued.json new file mode 100644 index 000000000000..ed59ae53ac03 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_offer_issued.json @@ -0,0 +1,30 @@ +{ + "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" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_offer_revoked.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_offer_revoked.json new file mode 100644 index 000000000000..a53f224d3baa --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_offer_revoked.json @@ -0,0 +1,17 @@ +{ + "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" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_registered.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_registered.json new file mode 100644 index 000000000000..6043142a5fe2 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/examples/event-grid-schema/router_worker_registered.json @@ -0,0 +1,40 @@ +{ + "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 + } + ], + "tags": { + "Locale": "en-us", + "Segment": "Enterprise", + "Token": "FooToken" + }, + "maxNumberOfJobs": 5 + }, + "eventType": "Microsoft.Communication.RouterWorkerRegistered", + "dataVersion": "1.0", + "metadataVersion": "1", + "eventTime": "2022-02-17T00:55:25.1736293Z" +}