Skip to content

Commit

Permalink
Add EventGrid examples (Azure#16054)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLove-msft authored and LeiWang3 committed Mar 31, 2022
1 parent 42e6dfe commit 2becb0c
Show file tree
Hide file tree
Showing 11 changed files with 249 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"id": "6fdef14c-2594-41e8-9156-c0376eb0a190",
"topic": "/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/jolov/providers/Microsoft.ContainerRegistry/registries/jolovcr",
"subject": "samples/nginx",
"eventType": "Microsoft.ContainerRegistry.ImageDeleted",
"data": {
"id": "6fdef14c-2594-41e8-9156-c0376eb0a190",
"timestamp": "2021-09-08T06:49:40.1850248Z",
"action": "delete",
"target": {
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"digest": "sha256:57a94fc99816c6aa225678b738ac40d85422e75dbb96115f1bb9b6ed77176166",
"repository": "samples/nginx"
},
"request": {
"id": "62a60cbd-1bfc-4742-b013-ed7098922ca6",
"host": "jolovcr.azurecr.io",
"method": "DELETE",
"useragent": "python-requests/2.22.0"
}
},
"dataVersion": "1.0",
"metadataVersion": "1",
"eventTime": "2021-09-08T06:49:40.5342401Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"id": "c25fdb80-ebbd-4dd0-a29c-a7349e6388f6",
"topic": "/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/jolov/providers/Microsoft.ContainerRegistry/registries/jolovcr",
"subject": "samples/nginx:latest",
"eventType": "Microsoft.ContainerRegistry.ImagePushed",
"data": {
"id": "c25fdb80-ebbd-4dd0-a29c-a7349e6388f6",
"timestamp": "2021-09-08T06:37:45.4681009Z",
"action": "push",
"target": {
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"size": 1153,
"digest": "sha256:57a94fc99816c6aa225678b738ac40d85422e75dbb96115f1bb9b6ed77176166",
"length": 1153,
"repository": "samples/nginx",
"tag": "latest"
},
"request": {
"id": "9f8fa9d4-5b86-4066-b805-e406f321c7d6",
"host": "jolovcr.azurecr.io",
"method": "PUT",
"useragent": "docker/20.10.7 go/go1.13.15 git-commit/b0f5bc3 kernel/5.10.16.3-microsoft-standard-WSL2 os/linux arch/amd64 UpstreamClient(Docker-Client/20.10.7 \\(windows\\))"
}
},
"dataVersion": "1.0",
"metadataVersion": "1",
"eventTime": "2021-09-08T06:37:45.6609948Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"topic": "/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourcegroups/v-tong-MonthlyTrleaseTestPass/providers/Microsoft.ServiceBus/namespaces/othercloudtest",
"subject": "queues/gaoqueue",
"eventType": "Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners",
"id": "3ce929ea-fab7-428a-8270-0452970fa710",
"data": {
"namespaceName": "othercloudtest",
"requestUri": "https://othercloudtest.servicebus.windows.net/gaoqueue/messages/head",
"entityType": "queue",
"queueName": "gaoqueue",
"topicName": null,
"subscriptionName": null
},
"dataVersion": "1",
"metadataVersion": "1",
"eventTime": "2021-09-09T05:43:01.8429206Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"topic": "/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/jolov/providers/Microsoft.Storage/storageAccounts/jolovstorage",
"subject": "/blobServices/default/containers/gaocontainer/blobs/Template1.xlsx",
"eventType": "Microsoft.Storage.BlobCreated",
"id": "beb21a5e-401e-002b-3749-928517060431",
"data": {
"api": "PutBlob",
"clientRequestId": "89bc72c2-5dfe-4d9f-9706-43612c1bd01b",
"requestId": "beb21a5e-401e-002b-3749-928517000000",
"eTag": "0x8D96060BDA19D9D",
"contentType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"contentLength": 17555,
"blobType": "BlockBlob",
"url": "https://jolovstorage.blob.core.windows.net/gaocontainer/Template1.xlsx",
"sequencer": "0000000000000000000000000000B00D0000000005b058d3",
"storageDiagnostics": {
"batchId": "23f68872-a006-0065-0049-9240f2000000"
}
},
"dataVersion": "",
"metadataVersion": "1",
"eventTime": "2021-08-16T02:51:26.4248221Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"topic": "/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/jolov/providers/Microsoft.Storage/storageAccounts/jolovstorage",
"subject": "/blobServices/default/containers/gaocontainer/blobs/Template1.xlsx",
"eventType": "Microsoft.Storage.BlobDeleted",
"id": "3626e710-c01e-005c-794a-92005606d96d",
"data": {
"api": "DeleteBlob",
"requestId": "3626e710-c01e-005c-794a-920056000000",
"eTag": "0x8D96061B33FE1D2",
"contentType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"contentLength": 17555,
"blobType": "BlockBlob",
"url": "https://jolovstorage.blob.core.windows.net/gaocontainer/Template1.xlsx",
"sequencer": "0000000000000000000000000000B00D0000000005b29696",
"storageDiagnostics": {
"batchId": "24045172-a006-0065-004a-9240f2000000"
}
},
"dataVersion": "",
"metadataVersion": "1",
"eventTime": "2021-08-16T02:58:18.503829Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"topic": "/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/jolov/providers/Microsoft.Storage/storageAccounts/jolovstorage",
"subject": "BlobDataManagement/BlobInventory",
"eventType": "Microsoft.Storage.BlobInventoryPolicyCompleted",
"id": "5d055648-1126-4053-bc6f-f86b8d14790f",
"data": {
"scheduleDateTime": "2021-08-20T22:04:55Z",
"accountName": "jolovstorage",
"ruleName": "gao8.20",
"policyRunStatus": "Succeeded",
"policyRunStatusMessage": "Inventory run succeeded, refer manifest file for inventory details.",
"policyRunId": "83e7c94c-6973-4fbc-acdc-88277e448bf5",
"manifestBlobUrl": "https://jolovstorage.blob.core.windows.net/gaoaugcontainer/2021/08/20/22-04-55/gao8.20/gao8.20-manifest.json"
},
"dataVersion": "1.0",
"metadataVersion": "1",
"eventTime": "2021-08-20T22:26:04Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"topic": "/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/jolov/providers/Microsoft.Storage/storageAccounts/jolovdfs",
"subject": "/blobServices/default/containers/gaocontainer/blobs/newname",
"eventType": "Microsoft.Storage.BlobRenamed",
"id": "707665f1-a01f-0037-799a-9490a106020e",
"data": {
"api": "RenameFile",
"requestId": "707665f1-a01f-0037-799a-9490a1000000",
"destinationBlobUrl": "https://jolovdfs.blob.core.windows.net/gaocontainer/newname",
"sourceBlobUrl": "https://jolovdfs.blob.core.windows.net/gaocontainer/metrics.txt",
"destinationUrl": "https://jolovdfs.dfs.core.windows.net/gaocontainer/newname",
"sourceUrl": "https://jolovdfs.dfs.core.windows.net/gaocontainer/metrics.txt",
"sequencer": "0000000000000000000000000000010200000000000364db",
"storageDiagnostics": {
"batchId": "69bbaf93-267f-4752-9267-b575e61e0d5d"
}
},
"dataVersion": "1",
"metadataVersion": "1",
"eventTime": "2021-08-19T01:37:38.9324784Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"topic": "/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/jolov/providers/Microsoft.Storage/storageAccounts/jolovstorage",
"subject": "/blobServices/default/containers/gaocontainer/blobs/Template1.xlsx",
"eventType": "Microsoft.Storage.BlobTierChanged",
"id": "5ed67fc9-401e-0009-354c-92eb2106efc7",
"data": {
"api": "SetBlobTier",
"requestId": "5ed67fc9-401e-0009-354c-92eb21000000",
"eTag": "0x8D9606211320D17",
"contentType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"contentLength": 17555,
"blobType": "BlockBlob",
"url": "https://jolovstorage.blob.core.windows.net/gaocontainer/Template1.xlsx",
"sequencer": "0000000000000000000000000000B00D0000000005b7c63a",
"storageDiagnostics": {
"batchId": "24231d1f-a006-0065-004c-9240f2000000"
}
},
"dataVersion": "",
"metadataVersion": "1",
"eventTime": "2021-08-16T03:13:40.5681296Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"topic": "/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/jolov/providers/Microsoft.Storage/storageAccounts/jolovdfs",
"subject": "/blobServices/default/containers/gaocontainer/blobs/gaodir",
"eventType": "Microsoft.Storage.DirectoryCreated",
"id": "d706a817-d01f-0002-3e60-92fcb5068c19",
"data": {
"api": "CreateDirectory",
"requestId": "d706a817-d01f-0002-3e60-92fcb5000000",
"eTag": "0x8D96077BE69372E",
"directoryProperties": [
{
"acl": [
{
"access": "u::rwx,g::rx,o::",
"permission": "0750",
"owner": "$superuser",
"group": "$superuser"
}
]
}
],
"blobUrl": "https://jolovdfs.blob.core.windows.net/gaocontainer/gaodir",
"url": "https://jolovdfs.dfs.core.windows.net/gaocontainer/gaodir",
"sequencer": "00000000000000000000000000000102000000000001e192",
"storageDiagnostics": {
"batchId": "e4b5c5d5-b727-4429-b35f-babb83eb15f1"
}
},
"dataVersion": "2",
"metadataVersion": "1",
"eventTime": "2021-08-16T05:36:06.1613834Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"topic": "/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/jolov/providers/Microsoft.Storage/storageAccounts/jolovdfs",
"subject": "/blobServices/default/containers/gaocontainer/blobs/gaodir",
"eventType": "Microsoft.Storage.DirectoryDeleted",
"id": "45a3a9fa-001f-0001-1b60-921dd1069801",
"data": {
"api": "DeleteDirectory",
"requestId": "45a3a9fa-001f-0001-1b60-921dd1000000",
"blobUrl": "https://jolovdfs.blob.core.windows.net/gaocontainer/gaodir",
"url": "https://jolovdfs.dfs.core.windows.net/gaocontainer/gaodir",
"recursive": "false",
"sequencer": "00000000000000000000000000000102000000000001e1a4",
"storageDiagnostics": {
"batchId": "c41d46e2-dfa5-4dd1-832a-9a63bed28ebc"
}
},
"dataVersion": "1",
"metadataVersion": "1",
"eventTime": "2021-08-16T05:36:57.4835481Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"topic": "/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/jolov/providers/Microsoft.Storage/storageAccounts/jolovdfs",
"subject": "/blobServices/default/containers/gaocontainer/blobs/gaonewdir",
"eventType": "Microsoft.Storage.DirectoryRenamed",
"id": "45a3aa46-001f-0001-2d60-921dd1062e11",
"data": {
"api": "RenameDirectory",
"requestId": "45a3aa46-001f-0001-2d60-921dd1000000",
"destinationBlobUrl": "https://jolovdfs.blob.core.windows.net/gaocontainer/gaonewdir",
"sourceBlobUrl": "https://jolovdfs.blob.core.windows.net/gaocontainer/gaoname",
"destinationUrl": "https://jolovdfs.dfs.core.windows.net/gaocontainer/gaonewdir",
"sourceUrl": "https://jolovdfs.dfs.core.windows.net/gaocontainer/gaoname",
"sequencer": "00000000000000000000000000000102000000000001e1c6",
"storageDiagnostics": {
"batchId": "5f991456-5dcf-4b1b-9d49-562ee2b0757f"
}
},
"dataVersion": "1",
"metadataVersion": "1",
"eventTime": "2021-08-16T05:38:05.1425527Z"
}

0 comments on commit 2becb0c

Please sign in to comment.