Skip to content

Commit

Permalink
Add new events for Storage - StorageTasks (Azure#26887)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* Update example ref

* Create storage_task_assignment_queued.json

* Create storage_task_assignment_completed.json

* Create storage_task_assignment_queued.json

* Create storage_task_assignment_completed.json

* Update Storage.json

* Update Storage.json

* Update Storage.json

---------

Co-authored-by: JoshLove-msft <[email protected]>
  • Loading branch information
2 people authored and ericasp16 committed Feb 15, 2024
1 parent 56f0fbc commit 1762f52
Show file tree
Hide file tree
Showing 5 changed files with 126 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,76 @@
"$ref": "./examples/event-grid-schema/storage_task_completed.json"
}
}
},
"StorageTaskAssignmentQueuedEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Storage.StorageTaskAssignmentQueued event.",
"type": "object",
"properties": {
"queuedDateTime": {
"description": "The time at which a storage task was queued.",
"format": "date-time",
"type": "string",
"x-ms-client-name": "queuedOn"
},
"taskExecutionId": {
"description": "The execution id for a storage task.",
"type": "string"
}
},
"x-ms-examples": {
"StorageTaskAssignmentQueuedCloudEventsSchema": {
"$ref": "./examples/cloud-events-schema/storage_task_assignment_queued.json"
},
"StorageTaskAssignmentQueuedEventGridSchema": {
"$ref": "./examples/event-grid-schema/storage_task_assignment_queued.json"
}
}
},
"StorageTaskAssignmentCompletedEventData": {
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Storage.StorageTaskAssignmentCompleted event.",
"type": "object",
"properties": {
"status": {
"description": "The status for a storage task.",
"type": "string",
"enum": [
"Succeeded",
"Failed"
],
"x-ms-enum": {
"name": "StorageTaskAssignmentCompletedStatus",
"modelAsString": true
}
},
"completedDateTime": {
"description": "The time at which a storage task was completed.",
"format": "date-time",
"type": "string",
"x-ms-client-name": "completedOn"
},
"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-client-name": "summaryReportBlobUri"
}
},
"x-ms-examples": {
"StorageTaskAssignmentCompletedCloudEventsSchema": {
"$ref": "./examples/cloud-events-schema/storage_task_assignment_completed.json"
},
"StorageTaskAssignmentCompletedEventGridSchema": {
"$ref": "./examples/event-grid-schema/storage_task_assignment_completed.json"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"source": "/subscriptions/c86a9c18-8373-41fa-92d4-1d7bdc16977b/resourceGroups/shubhajTestRG/providers/Microsoft.Storage/storageAccounts/canaryfns",
"subject": "DataManagement/StorageActions/StorageTaskAssignments",
"type": "Microsoft.Storage.StorageTaskAssignmentCompleted",
"time": "2023-11-27T23:09:21Z",
"id": "dd17c35c-e68a-437d be15-5417820310d2",
"data": {
"status": "Succeeded",
"completedDateTime": "2023-11-27T23:09:21Z",
"taskExecutionId": "testtest2-2023-11-27T21:16:43.4491131Z",
"taskName": "dizbbcanary2",
"summaryReportBlobUrl": "https://canaryfns.blob.core.windows.net/reports/dizbbcanary2/testtest2/2023-11-27T21:17:53/SummaryReport.json"
},
"specversion": "1.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"source": "/subscriptions/c86a9c18-8373-41fa-92d4-1d7bdc16977b/resourceGroups/shubhajTestRG/providers/Microsoft.Storage/storageAccounts/canaryfns",
"subject": "DataManagement/StorageActions/StorageTaskAssignments",
"type": "Microsoft.Storage.StorageTaskAssignmentQueued",
"time": "2023-11-27T21:17:53Z",
"id": "59ff3f6f-696c-4cd2-a206-8012fc1a73f2",
"data": {
"queuedDateTime": "2023-11-27T21:17:53Z",
"taskExecutionId": "testtest2-2023-11-27T21:16:43.4491131Z"
},
"specversion": "1.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"topic": "/subscriptions/c86a9c18-8373-41fa-92d4-1d7bdc16977b/resourceGroups/shubhajTestRG/providers/Microsoft.Storage/storageAccounts/canaryfns",
"subject": "DataManagement/StorageActions/StorageTaskAssignments",
"eventType": "Microsoft.Storage.StorageTaskAssignmentCompleted",
"id": "dd17c35c-e68a-437d be15-5417820310d2",
"data": {
"status": "Succeeded",
"completedDateTime": "2023-11-27T23:09:21Z",
"taskExecutionId": "testtest2-2023-11-27T21:16:43.4491131Z",
"taskName": "dizbbcanary2",
"summaryReportBlobUrl": "https://canaryfns.blob.core.windows.net/reports/dizbbcanary2/testtest2/2023-11-27T21:17:53/SummaryReport.json"
},
"dataVersion": "1.0",
"metadataVersion": "1",
"eventTime": "2023-11-27T23:09:21Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"topic": "/subscriptions/c86a9c18-8373-41fa-92d4-1d7bdc16977b/resourceGroups/shubhajTestRG/providers/Microsoft.Storage/storageAccounts/canaryfns",
"subject": "DataManagement/StorageActions/StorageTaskAssignments",
"eventType": "Microsoft.Storage.StorageTaskAssignmentQueued",
"id": "59ff3f6f-696c-4cd2-a206-8012fc1a73f2",
"data": {
"queuedDateTime": "2023-11-27T21:17:53Z",
"taskExecutionId": "testtest2-2023-11-27T21:16:43.4491131Z"
},
"dataVersion": "1.0",
"metadataVersion": "1",
"eventTime": "2023-11-27T21:17:53Z"
}

0 comments on commit 1762f52

Please sign in to comment.