Skip to content

Commit 5f67ed0

Browse files
authored
Merge pull request #190337 from savaradh/patch-1
Update event-schema-container-registry.md
2 parents e470997 + c65a19d commit 5f67ed0

File tree

1 file changed

+36
-12
lines changed

1 file changed

+36
-12
lines changed

articles/event-grid/event-schema-container-registry.md

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ The following example shows the schema of an image pushed event:
3131
"id": "831e1650-001e-001b-66ab-eeb76e069631",
3232
"topic": "/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.ContainerRegistry/registries/<name>",
3333
"subject": "aci-helloworld:v1",
34-
"eventType": "ImagePushed",
34+
"eventType": "Microsoft.ContainerRegistry.ImagePushed",
3535
"eventTime": "2018-04-25T21:39:47.6549614Z",
3636
"data": {
3737
"id": "31c51664-e5bd-416a-a5df-e5206bc47ed0",
3838
"timestamp": "2018-04-25T21:39:47.276585742Z",
3939
"action": "push",
40+
"location": "westus",
4041
"target": {
4142
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
4243
"size": 3023,
@@ -50,9 +51,12 @@ The following example shows the schema of an image pushed event:
5051
"host": "demo.azurecr.io",
5152
"method": "PUT",
5253
"useragent": "docker/18.03.0-ce go/go1.9.4 git-commit/0520e24 os/windows arch/amd64 UpstreamClient(Docker-Client/18.03.0-ce \\\\(windows\\\\))"
53-
}
54+
},
55+
"connectedRegistry": {
56+
"name": "edge1"
57+
}
5458
},
55-
"dataVersion": "1.0",
59+
"dataVersion": "2.0",
5660
"metadataVersion": "1"
5761
}]
5862
```
@@ -64,12 +68,13 @@ The schema for an image deleted event is similar:
6468
"id": "f06e3921-301f-42ec-b368-212f7d5354bd",
6569
"topic": "/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.ContainerRegistry/registries/<name>",
6670
"subject": "aci-helloworld",
67-
"eventType": "ImageDeleted",
71+
"eventType": "Microsoft.ContainerRegistry.ImageDeleted",
6872
"eventTime": "2018-04-26T17:56:01.8211268Z",
6973
"data": {
7074
"id": "f06e3921-301f-42ec-b368-212f7d5354bd",
7175
"timestamp": "2018-04-26T17:56:00.996603117Z",
7276
"action": "delete",
77+
"location": "westus",
7378
"target": {
7479
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
7580
"digest": "sha256:213bbc182920ab41e18edc2001e06abcca6735d87782d9cef68abd83941cf0e5",
@@ -80,9 +85,12 @@ The schema for an image deleted event is similar:
8085
"host": "demo.azurecr.io",
8186
"method": "DELETE",
8287
"useragent": "python-requests/2.18.4"
83-
}
88+
},
89+
"connectedRegistry": {
90+
"name": "edge1"
91+
}
8492
},
85-
"dataVersion": "1.0",
93+
"dataVersion": "2.0",
8694
"metadataVersion": "1"
8795
}]
8896
```
@@ -100,6 +108,7 @@ The schema for a chart pushed event is similar to the schema for an imaged pushe
100108
"id":"ea3a9c28-5b17-40f6-a500-3f02b682927",
101109
"timestamp":"2019-03-12T22:16:31.0087496+00:00",
102110
"action":"chart_push",
111+
"location": "westus",
103112
"target":{
104113
"mediaType":"application/vnd.acr.helm.chart",
105114
"size":25265,
@@ -108,9 +117,12 @@ The schema for a chart pushed event is similar to the schema for an imaged pushe
108117
"tag":"mychart-1.0.0.tgz",
109118
"name":"mychart",
110119
"version":"1.0.0"
111-
}
120+
},
121+
"connectedRegistry": {
122+
"name": "edge1"
123+
}
112124
},
113-
"dataVersion": "1.0",
125+
"dataVersion": "2.0",
114126
"metadataVersion": "1"
115127
}]
116128
```
@@ -128,6 +140,7 @@ The schema for a chart deleted event is similar to the schema for an imaged dele
128140
"id":"ea3a9c28-5b17-40f6-a500-3f02b682927",
129141
"timestamp":"2019-03-12T22:42:08.3783775+00:00",
130142
"action":"chart_delete",
143+
"location": "westus",
131144
"target":{
132145
"mediaType":"application/vnd.acr.helm.chart",
133146
"size":25265,
@@ -136,9 +149,12 @@ The schema for a chart deleted event is similar to the schema for an imaged dele
136149
"tag":"mychart-1.0.0.tgz",
137150
"name":"mychart",
138151
"version":"1.0.0"
139-
}
152+
},
153+
"connectedRegistry": {
154+
"name": "edge1"
155+
}
140156
},
141-
"dataVersion": "1.0",
157+
"dataVersion": "2.0",
142158
"metadataVersion": "1"
143159
}]
144160
```
@@ -152,7 +168,7 @@ The following example shows the schema of an image pushed event:
152168
"id": "831e1650-001e-001b-66ab-eeb76e069631",
153169
"source": "/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.ContainerRegistry/registries/<name>",
154170
"subject": "aci-helloworld:v1",
155-
"type": "ImagePushed",
171+
"type": "Microsoft.ContainerRegistry.ImagePushed",
156172
"time": "2018-04-25T21:39:47.6549614Z",
157173
"data": {
158174
"id": "31c51664-e5bd-416a-a5df-e5206bc47ed0",
@@ -184,7 +200,7 @@ The schema for an image deleted event is similar:
184200
"id": "f06e3921-301f-42ec-b368-212f7d5354bd",
185201
"source": "/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.ContainerRegistry/registries/<name>",
186202
"subject": "aci-helloworld",
187-
"type": "ImageDeleted",
203+
"type": "Microsoft.ContainerRegistry.ImageDeleted",
188204
"time": "2018-04-26T17:56:01.8211268Z",
189205
"data": {
190206
"id": "f06e3921-301f-42ec-b368-212f7d5354bd",
@@ -275,6 +291,8 @@ An event has the following top-level data:
275291
| `eventType` | string | One of the registered event types for this event source. |
276292
| `eventTime` | string | The time the event is generated based on the provider's UTC time. |
277293
| `id` | string | Unique identifier for the event. |
294+
| `location` | string | The location of the event. |
295+
| `connectedRegistry` | object | The connected registry information if the event is generated by a connected registry. |
278296
| `data` | object | Blob storage event data. |
279297
| `dataVersion` | string | The schema version of the data object. The publisher defines the schema version. |
280298
| `metadataVersion` | string | The schema version of the event metadata. Event Grid defines the schema of the top-level properties. Event Grid provides this value. |
@@ -329,6 +347,12 @@ The request object has the following properties:
329347
| `method` | string | The request method that generated the event. |
330348
| `useragent` | string | The user agent header of the request. |
331349

350+
The connectedRegistry object has the following properties:
351+
352+
| Property | Type | Description |
353+
| -------- | ---- | ----------- |
354+
| `name` | string | The name of the connected registry that generated this event. |
355+
332356
## Tutorials and how-tos
333357
|Title |Description |
334358
|---------|---------|

0 commit comments

Comments
 (0)