Skip to content

Commit 0981d74

Browse files
Add new events for Storage StorageTasks (#23280)
* Add new events for Storage StorageTasks * Create storage_task_queued.json * Create storage_task_completed.json * Add files via upload * Add files via upload * Update storage_task_queued.json * Update storage_task_completed.json * Update Storage.json * Update Storage.json * Update Storage.json * Update specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> * Update example ref --------- Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
1 parent 4637adf commit 0981d74

File tree

5 files changed

+123
-0
lines changed

5 files changed

+123
-0
lines changed

specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,73 @@
424424
"type": "string"
425425
}
426426
}
427+
},
428+
"StorageTaskQueuedEventData": {
429+
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Storage.StorageTaskQueued event.",
430+
"type": "object",
431+
"properties": {
432+
"queuedDateTime": {
433+
"description": "The time at which a storage task was queued.",
434+
"format": "date-time",
435+
"type": "string"
436+
},
437+
"taskExecutionId": {
438+
"description": "The execution id for a storage task.",
439+
"type": "string"
440+
}
441+
},
442+
"x-ms-examples": {
443+
"StorageTaskQueuedCloudEventsSchema": {
444+
"$ref": "./examples/cloud-events-schema/storage_task_queued.json"
445+
},
446+
"StorageTaskQueuedEventGridSchema": {
447+
"$ref": "./examples/event-grid-schema/storage_task_queued.json"
448+
}
449+
}
450+
},
451+
"StorageTaskCompletedEventData": {
452+
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Storage.StorageTaskCompleted event.",
453+
"type": "object",
454+
"properties": {
455+
"status": {
456+
"description": "The status for a storage task.",
457+
"type": "string",
458+
"enum": [
459+
"Succeeded",
460+
"Failed"
461+
],
462+
"x-ms-enum": {
463+
"name": "StorageTaskCompletedStatus",
464+
"modelAsString": true
465+
}
466+
},
467+
"completedDateTime": {
468+
"description": "The time at which a storage task was completed.",
469+
"format": "date-time",
470+
"type": "string"
471+
},
472+
"taskExecutionId": {
473+
"description": "The execution id for a storage task.",
474+
"type": "string"
475+
},
476+
"taskName": {
477+
"description": "The task name for a storage task.",
478+
"type": "string"
479+
},
480+
"summaryReportBlobUrl": {
481+
"description": "The summary report blob url for a storage task",
482+
"format": "url",
483+
"type": "string"
484+
}
485+
},
486+
"x-ms-examples": {
487+
"StorageTaskCompletedCloudEventsSchema": {
488+
"$ref": "./examples/cloud-events-schema/storage_task_completed.json"
489+
},
490+
"StorageTaskCompletedEventGridSchema": {
491+
"$ref": "./examples/event-grid-schema/storage_task_completed.json"
492+
}
493+
}
427494
}
428495
}
429496
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"source": "/subscriptions/c86a9c18-8373-41fa-92d4-1d7bdc16977b/resourceGroups/shulin-rg/providers/Microsoft.Storage/storageAccounts/shulinstcanest2",
3+
"subject": "DataManagement/StorageTasks",
4+
"type": "Microsoft.Storage.StorageTaskCompleted",
5+
"time": "2023-03-23T16:52:58Z",
6+
"id": "b34b3b93-a64d-41ea-aba4-d55f2d29190b",
7+
"data": {
8+
"status": "Succeeded",
9+
"completedDateTime": "2023-03-23T16:52:58Z",
10+
"taskExecutionId": "deletetest-2023-03-23T16:42:33.8658256Z_2023-03-23T16:42:58.8983000Z",
11+
"taskName": "delete123",
12+
"summaryReportBlobUrl": "https://shulinstcanest2.blob.core.windows.net/report/delete123_deletetest_2023-03-23T16:43:50/SummaryReport.json"
13+
},
14+
"specversion": "1.0"
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"source": "/subscriptions/c86a9c18-8373-41fa-92d4-1d7bdc16977b/resourceGroups/shulin-rg/providers/Microsoft.Storage/storageAccounts/shulinstcanest2",
3+
"subject": "DataManagement/StorageTasks",
4+
"type": "Microsoft.Storage.StorageTaskQueued",
5+
"time": "2023-03-23T16:43:50Z",
6+
"id": "7fddaf06-24e8-4d57-9b66-5b7ab920a626",
7+
"data": {
8+
"queuedDateTime": "2023-03-23T16:43:50Z",
9+
"taskExecutionId": "deletetest-2023-03-23T16:42:33.8658256Z_2023-03-23T16:42:58.8983000Z"
10+
},
11+
"specversion": "1.0"
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"topic": "/subscriptions/c86a9c18-8373-41fa-92d4-1d7bdc16977b/resourceGroups/shulin-rg/providers/Microsoft.Storage/storageAccounts/shulinstcanest2",
3+
"subject": "DataManagement/StorageTasks",
4+
"eventType": "Microsoft.Storage.StorageTaskCompleted",
5+
"id": "b34b3b93-a64d-41ea-aba4-d55f2d29190b",
6+
"data": {
7+
"status": "Succeeded",
8+
"completedDateTime": "2023-03-23T16:52:58Z",
9+
"taskExecutionId": "deletetest-2023-03-23T16:42:33.8658256Z_2023-03-23T16:42:58.8983000Z",
10+
"taskName": "delete123",
11+
"summaryReportBlobUrl": "https://shulinstcanest2.blob.core.windows.net/report/delete123_deletetest_2023-03-23T16:43:50/SummaryReport.json"
12+
},
13+
"dataVersion": "1.0",
14+
"metadataVersion": "1",
15+
"eventTime": "2023-03-23T16:52:58Z"
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"topic": "/subscriptions/c86a9c18-8373-41fa-92d4-1d7bdc16977b/resourceGroups/shulin-rg/providers/Microsoft.Storage/storageAccounts/shulinstcanest2",
3+
"subject": "DataManagement/StorageTasks",
4+
"eventType": "Microsoft.Storage.StorageTaskQueued",
5+
"id": "7fddaf06-24e8-4d57-9b66-5b7ab920a626",
6+
"data": {
7+
"queuedDateTime": "2023-03-23T16:43:50Z",
8+
"taskExecutionId": "deletetest-2023-03-23T16:42:33.8658256Z_2023-03-23T16:42:58.8983000Z"
9+
},
10+
"dataVersion": "1.0",
11+
"metadataVersion": "1",
12+
"eventTime": "2023-03-23T16:43:50Z"
13+
}

0 commit comments

Comments
 (0)