diff --git a/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json index 1a5cf729b577..12f99a19ac06 100644 --- a/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json +++ b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json @@ -424,6 +424,73 @@ "type": "string" } } + }, + "StorageTaskQueuedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Storage.StorageTaskQueued event.", + "type": "object", + "properties": { + "queuedDateTime": { + "description": "The time at which a storage task was queued.", + "format": "date-time", + "type": "string" + }, + "taskExecutionId": { + "description": "The execution id for a storage task.", + "type": "string" + } + }, + "x-ms-examples": { + "StorageTaskQueuedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/storage_task_queued.json" + }, + "StorageTaskQueuedEventGridSchema": { + "$ref": "./examples/event-grid-schema/storage_task_queued.json" + } + } + }, + "StorageTaskCompletedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Storage.StorageTaskCompleted event.", + "type": "object", + "properties": { + "status": { + "description": "The status for a storage task.", + "type": "string", + "enum": [ + "Succeeded", + "Failed" + ], + "x-ms-enum": { + "name": "StorageTaskCompletedStatus", + "modelAsString": true + } + }, + "completedDateTime": { + "description": "The time at which a storage task was completed.", + "format": "date-time", + "type": "string" + }, + "taskExecutionId": { + "description": "The execution id for a storage task.", + "type": "string" + }, + "taskName": { + "description": "The task name for a storage task.", + "type": "string" + }, + "summaryReportBlobUrl": { + "description": "The summary report blob url for a storage task", + "format": "url", + "type": "string" + } + }, + "x-ms-examples": { + "StorageTaskCompletedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/storage_task_completed.json" + }, + "StorageTaskCompletedEventGridSchema": { + "$ref": "./examples/event-grid-schema/storage_task_completed.json" + } + } } } } diff --git a/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/examples/cloud-events-schema/storage_task_completed.json b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/examples/cloud-events-schema/storage_task_completed.json new file mode 100644 index 000000000000..73603cc61d12 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/examples/cloud-events-schema/storage_task_completed.json @@ -0,0 +1,15 @@ +{ + "source": "/subscriptions/c86a9c18-8373-41fa-92d4-1d7bdc16977b/resourceGroups/shulin-rg/providers/Microsoft.Storage/storageAccounts/shulinstcanest2", + "subject": "DataManagement/StorageTasks", + "type": "Microsoft.Storage.StorageTaskCompleted", + "time": "2023-03-23T16:52:58Z", + "id": "b34b3b93-a64d-41ea-aba4-d55f2d29190b", + "data": { + "status": "Succeeded", + "completedDateTime": "2023-03-23T16:52:58Z", + "taskExecutionId": "deletetest-2023-03-23T16:42:33.8658256Z_2023-03-23T16:42:58.8983000Z", + "taskName": "delete123", + "summaryReportBlobUrl": "https://shulinstcanest2.blob.core.windows.net/report/delete123_deletetest_2023-03-23T16:43:50/SummaryReport.json" + }, + "specversion": "1.0" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/examples/cloud-events-schema/storage_task_queued.json b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/examples/cloud-events-schema/storage_task_queued.json new file mode 100644 index 000000000000..829137f260eb --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/examples/cloud-events-schema/storage_task_queued.json @@ -0,0 +1,12 @@ +{ + "source": "/subscriptions/c86a9c18-8373-41fa-92d4-1d7bdc16977b/resourceGroups/shulin-rg/providers/Microsoft.Storage/storageAccounts/shulinstcanest2", + "subject": "DataManagement/StorageTasks", + "type": "Microsoft.Storage.StorageTaskQueued", + "time": "2023-03-23T16:43:50Z", + "id": "7fddaf06-24e8-4d57-9b66-5b7ab920a626", + "data": { + "queuedDateTime": "2023-03-23T16:43:50Z", + "taskExecutionId": "deletetest-2023-03-23T16:42:33.8658256Z_2023-03-23T16:42:58.8983000Z" + }, + "specversion": "1.0" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/examples/event-grid-schema/storage_task_completed.json b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/examples/event-grid-schema/storage_task_completed.json new file mode 100644 index 000000000000..230f5368e77c --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/examples/event-grid-schema/storage_task_completed.json @@ -0,0 +1,16 @@ +{ + "topic": "/subscriptions/c86a9c18-8373-41fa-92d4-1d7bdc16977b/resourceGroups/shulin-rg/providers/Microsoft.Storage/storageAccounts/shulinstcanest2", + "subject": "DataManagement/StorageTasks", + "eventType": "Microsoft.Storage.StorageTaskCompleted", + "id": "b34b3b93-a64d-41ea-aba4-d55f2d29190b", + "data": { + "status": "Succeeded", + "completedDateTime": "2023-03-23T16:52:58Z", + "taskExecutionId": "deletetest-2023-03-23T16:42:33.8658256Z_2023-03-23T16:42:58.8983000Z", + "taskName": "delete123", + "summaryReportBlobUrl": "https://shulinstcanest2.blob.core.windows.net/report/delete123_deletetest_2023-03-23T16:43:50/SummaryReport.json" + }, + "dataVersion": "1.0", + "metadataVersion": "1", + "eventTime": "2023-03-23T16:52:58Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/examples/event-grid-schema/storage_task_queued.json b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/examples/event-grid-schema/storage_task_queued.json new file mode 100644 index 000000000000..ad968f9430c3 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/examples/event-grid-schema/storage_task_queued.json @@ -0,0 +1,13 @@ +{ + "topic": "/subscriptions/c86a9c18-8373-41fa-92d4-1d7bdc16977b/resourceGroups/shulin-rg/providers/Microsoft.Storage/storageAccounts/shulinstcanest2", + "subject": "DataManagement/StorageTasks", + "eventType": "Microsoft.Storage.StorageTaskQueued", + "id": "7fddaf06-24e8-4d57-9b66-5b7ab920a626", + "data": { + "queuedDateTime": "2023-03-23T16:43:50Z", + "taskExecutionId": "deletetest-2023-03-23T16:42:33.8658256Z_2023-03-23T16:42:58.8983000Z" + }, + "dataVersion": "1.0", + "metadataVersion": "1", + "eventTime": "2023-03-23T16:43:50Z" +}