You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/event-grid/cloud-event-schema.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ This article describes CloudEvents schema with Event Grid.
17
17
18
18
## Sample event using CloudEvents schema
19
19
20
-
Here is an example of an Azure Blob Storage event in the CloudEvents format:
20
+
Here's an example of an Azure Blob Storage event in the CloudEvents format:
21
21
22
22
```json
23
23
{
@@ -50,7 +50,7 @@ The headers values for events delivered in the CloudEvents schema and the Event
50
50
51
51
## Event Grid for CloudEvents
52
52
53
-
You can use Event Grid for both input and output of events in CloudEvents schema. You can use CloudEvents for system events, like Blob Storage events and IoT Hub events, and custom events. In addition to supporting CloudEvents, Event Grid suppports a proprietary, non-extensible, yet fully-functional [Event Grid event format](event-schema.md). The following table describes the transformation supported when using CloudEvents and Event Grid formats as an input schema in topics and as an output schema in event subscriptions. Note that an Event Grid output schema cannot be used when using CloudEvents as an input schema because CloudEvents supports [extension attributes](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/primer.md#cloudevent-attribute-extensions)which are not supported by the Event Grid schema.
53
+
You can use Event Grid for both input and output of events in CloudEvents schema. You can use CloudEvents for system events, like Blob Storage events and IoT Hub events, and custom events. In addition to supporting CloudEvents, Event Grid supports a proprietary, nonextensible, yet fullyfunctional [Event Grid event format](event-schema.md). The following table describes the transformation supported when using CloudEvents and Event Grid formats as an input schema in topics and as an output schema in event subscriptions. An Event Grid output schema can't be used when using CloudEvents as an input schema because CloudEvents supports [extension attributes](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/primer.md#cloudevent-attribute-extensions)that aren't supported by the Event Grid schema.
54
54
55
55
| Input schema | Output schema
56
56
|--------------------|---------------------
@@ -59,7 +59,7 @@ You can use Event Grid for both input and output of events in CloudEvents schema
59
59
| Event Grid format | Event Grid format
60
60
61
61
62
-
For all event schemas, Event Grid requires validation when publishing to an event grid topic and when creating an event subscription. For more information, see [Event Grid security and authentication](security-authentication.md).
62
+
For all event schemas, Event Grid requires validation when publishing to an Event Grid topic and when creating an event subscription. For more information, see [Event Grid security and authentication](security-authentication.md).
63
63
64
64
## Next steps
65
65
See [How to use CloudEvents v1.0 schema with Event Grid](cloudevents-schema.md).
Copy file name to clipboardExpand all lines: articles/event-grid/concepts-pull-delivery.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ A Namespace also provides DNS-integrated network endpoints and a range of access
62
62
63
63
## Throughput units
64
64
65
-
The capacity of Azure Event Grid namespace is controlled by throughput units (TUs) and allows user to control capacity of their namespace resource for message ingress and egress. See [Azure Event Grid quotas and limits](quotas-limits.md) for more information.
65
+
The capacity of Azure Event Grid namespace is controlled by throughput units (TUs) and allows user to control capacity of their namespace resource for message ingress and egress. For more information, see [Azure Event Grid quotas and limits](quotas-limits.md).
Copy file name to clipboardExpand all lines: articles/event-grid/create-view-manage-event-subscriptions.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,23 +77,23 @@ ms.date: 05/24/2023
77
77
78
78
### Simplified resource model
79
79
80
-
The event subscriptions under a [Namespace Topic](concepts-pull-delivery.md#namespace-topics) feature a simplified filtering configuration model when compared to that of event subscriptions to domains and to custom, system, partner, and domain topics. The filtering capabilities are the the same except for the scenarios documented in the following sections.
80
+
The event subscriptions under a [Namespace Topic](concepts-pull-delivery.md#namespace-topics) feature a simplified filtering configuration model when compared to that of event subscriptions to domains and to custom, system, partner, and domain topics. The filtering capabilities are the same except for the scenarios documented in the following sections.
81
81
82
82
#### Filter on event data
83
83
84
-
Filtering on event `data`is not currently supported. This capability will be available in a future release.
84
+
Filtering on event `data`isn't currently supported. This capability will be available in a future release.
85
85
86
86
#### Subject begins with
87
87
88
-
There is no dedicated configuration properties to specify filters on `subject`. You can configure filters in the following way to filter the context attribute `subject` with a value that begins with a string.
88
+
There's no dedicated configuration properties to specify filters on `subject`. You can configure filters in the following way to filter the context attribute `subject` with a value that begins with a string.
89
89
90
90
| key value | operator | value |
91
91
|-----------|:---------:|-----------|
92
92
| subject | String begins with |**your string**|
93
93
94
94
#### Subject ends with
95
95
96
-
There is no dedicated configuration properties to specify filters on `subject`. You can configure filters in the following way to filter the context attribute `subject` with a value that ends with a string.
96
+
There's no dedicated configuration properties to specify filters on `subject`. You can configure filters in the following way to filter the context attribute `subject` with a value that ends with a string.
Copy file name to clipboardExpand all lines: articles/event-grid/event-schema.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
1
---
2
2
title: Azure Event Grid event schema
3
-
description: Describes the properties and schema for the proprietary, non-extensible, yet fully-functional Event Grid format.
3
+
description: Describes the properties and schema for the proprietary, nonextensible, yet fullyfunctional Event Grid format.
4
4
ms.topic: reference
5
5
ms.date: 05/24/2023
6
6
---
7
7
8
8
# Azure Event Grid event schema
9
9
10
-
This article describes the Event Grid schema, which is a proprietary, non-extensible, yet fully-functional event format. Event Grid still supports this event format and will continue to support it. However, [CloudEvents](cloud-event-schema.md) is the recommended event format to use. If you are using applications that use the Event Grid format, you may find useful the information in the [CloudEvents] section that describes the transformations between the Event Grid and CloudEvents format supported by Event Grid.
10
+
This article describes the Event Grid schema, which is a proprietary, nonextensible, yet fullyfunctional event format. Event Grid still supports this event format and will continue to support it. However, [CloudEvents](cloud-event-schema.md) is the recommended event format to use. If you're using applications that use the Event Grid format, you may find useful the information in the [CloudEvents] section that describes the transformations between the Event Grid and CloudEvents format supported by Event Grid.
11
11
12
12
This article describes in detail the properties and schema for the Event Grid format. Events consist of a set of four required string properties. The properties are common to all events from any publisher. The data object has properties that are specific to each publisher. For system topics, these properties are specific to the resource provider, such as Azure Storage or Azure Event Hubs.
13
13
14
-
Event sources send events to Azure Event Grid in an array, which can have several event objects. When posting events to an event grid topic, the array can have a total size of up to 1 MB. Each event in the array is limited to 1 MB. If an event or the array is greater than the size limits, you receive the response **413 Payload Too Large**. Operations are charged in 64 KB increments though. So, events over 64 KB will incur operations charges as though they were multiple events. For example, an event that is 130 KB would incur operations as though it were 3 separate events.
14
+
Event sources send events to Azure Event Grid in an array, which can have several event objects. When posting events to an Event Grid topic, the array can have a total size of up to 1 MB. Each event in the array is limited to 1 MB. If an event or the array is greater than the size limits, you receive the response **413 Payload Too Large**. Operations are charged in 64 KB increments though. So, events over 64 KB incur operations charges as though they were multiple events. For example, an event that is 130 KB would incur operations as though it were three separate events.
15
15
16
16
Event Grid sends the events to subscribers in an array that has a single event. This behavior may change in the future.
17
17
@@ -74,14 +74,14 @@ All events have the same following top-level data:
74
74
75
75
| Property | Type | Required | Description |
76
76
| -------- | ---- | -------- | ----------- |
77
-
| topic | string | No, but if included, must match the Event Grid topic Azure Resource Manager ID exactly. If not included, Event Grid will stamp onto the event. | Full resource path to the event source. This field isn't writeable. Event Grid provides this value. |
78
-
| subject | string | Yes | Publisher-defined path to the event subject. |
79
-
| eventType | string | Yes | One of the registered event types for this event source. |
77
+
|`topic`| string | No, but if included, must match the Event Grid topic Azure Resource Manager ID exactly. If not included, Event Grid stamps onto the event. | Full resource path to the event source. This field isn't writeable. Event Grid provides this value. |
78
+
|`subject`| string | Yes | Publisher-defined path to the event subject. |
79
+
|`eventType`| string | Yes | One of the registered event types for this event source. |
80
80
| eventTime | string | Yes | The time the event is generated based on the provider's UTC time. |
81
-
|id| string | Yes | Unique identifier for the event. |
82
-
| data | object | No | Event data specific to the resource provider. |
83
-
| dataVersion | string | No, but will be stamped with an empty value. | The schema version of the data object. The publisher defines the schema version. |
84
-
| metadataVersion | string | Not required, but if included, must match the Event Grid Schema `metadataVersion` exactly (currently, only `1`). If not included, Event Grid will stamp onto the event. | The schema version of the event metadata. Event Grid defines the schema of the top-level properties. Event Grid provides this value. |
81
+
|`id`| string | Yes | Unique identifier for the event. |
82
+
|`data`| object | No | Event data specific to the resource provider. |
83
+
|`dataVersion`| string | No, but will be stamped with an empty value. | The schema version of the data object. The publisher defines the schema version. |
84
+
|`metadataVersion`| string | Not required, but if included, must match the Event Grid Schema `metadataVersion` exactly (currently, only `1`). If not included, Event Grid stamps onto the event. | The schema version of the event metadata. Event Grid defines the schema of the top-level properties. Event Grid provides this value. |
85
85
86
86
To learn about the properties in the data object, see the event source:
87
87
@@ -104,7 +104,7 @@ When publishing events to custom topics, create subjects for your events that ma
104
104
Sometimes your subject needs more detail about what happened. For example, the **Storage Accounts** publisher provides the subject `/blobServices/default/containers/<container-name>/blobs/<file>` when a file is added to a container. A subscriber could filter by the path `/blobServices/default/containers/testcontainer` to get all events for that container but not other containers in the storage account. A subscriber could also filter or route by the suffix `.txt` to only work with text files.
105
105
106
106
## CloudEvents
107
-
CloudEvents is the recommended event format to use. Azure Event Grid will continue investing in features related to at least [CloudEvents JSON](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md) format. Given the fact that some event sources like Azure services use the Event Grid format, the following table is provided to help help you understand the transformation supported when using CloudEvents and Event Grid formats as an input schema in topics and as an output schema in event subscriptions. Note that an Event Grid output schema cannot be used when using CloudEvents as an input schema because CloudEvents supports [extension attributes](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/primer.md#cloudevent-attribute-extensions)which are not supported by the Event Grid schema.
107
+
CloudEvents is the recommended event format to use. Azure Event Grid continues investing in features related to at least [CloudEvents JSON](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md) format. Given the fact that some event sources like Azure services use the Event Grid format, the following table is provided to help you understand the transformation supported when using CloudEvents and Event Grid formats as an input schema in topics and as an output schema in event subscriptions. An Event Grid output schema can't be used when using CloudEvents as an input schema because CloudEvents supports [extension attributes](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/primer.md#cloudevent-attribute-extensions)that aren't supported by the Event Grid schema.
Copy file name to clipboardExpand all lines: articles/event-grid/publish-events-using-namespace-topics.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ ms.date: 05/24/2023
12
12
13
13
This article describes the steps to publish and consume events using the [CloudEvents](https://github.com/cloudevents/spec) with [JSON format](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md) using namespace topics and event subscriptions.
14
14
15
-
Follow the steps in this article if you need to send application events to Event Grid so that they are received by consumer clients. Consumers connect to Event Grid to read the events ([pull delivery](pull-delivery-overview.md)).
15
+
Follow the steps in this article if you need to send application events to Event Grid so that they're received by consumer clients. Consumers connect to Event Grid to read the events ([pull delivery](pull-delivery-overview.md)).
16
16
17
17
>[!Important]
18
18
> Namespaces, namespace topics, and event subscriptions associated to namespace topics are iniatially available in the following regions:
@@ -46,8 +46,8 @@ The resource group is a logical collection into which Azure resources are deploy
46
46
47
47
Create a resource group with the [az group create](/cli/azure/group#az-group-create) command. We use this resource group to contain all resources created in this article.
48
48
49
-
The general steps to use CloudShell to run commands are:
50
-
-Click on**Open Cloud Shell** to see an Azure Cloud Shell window on the right pane.
49
+
The general steps to use Cloud Shell to run commands are:
50
+
-Select**Open Cloud Shell** to see an Azure Cloud Shell window on the right pane.
51
51
- Copy the command and paste into the Azure Cloud Shell window.
52
52
- Press ENTER to run the command.
53
53
@@ -78,7 +78,7 @@ Set the name you want to provide to your namespace on an environmental variable.
78
78
namespace=<your-namespace-name>
79
79
```
80
80
81
-
Create a namespace. You may want to change the location where it is deployed.
81
+
Create a namespace. You may want to change the location where it's deployed.
Create an event subscription setting its delivery mode to *queue*, which supports [pull delivery](pull-delivery-overview.md#pull-delivery-1). For more information on all configuration options, refer to the latest Event Grid control plane [REST API](/rest/api/eventgrid).
104
+
Create an event subscription setting its delivery mode to *queue*, which supports [pull delivery](pull-delivery-overview.md#pull-delivery-1). For more information on all configuration options,see the latest Event Grid control plane [REST API](/rest/api/eventgrid).
105
105
106
106
Set the name of your event subscription on a variable:
107
107
```azurecli-interactive
@@ -142,7 +142,7 @@ Create a sample CloudEvents-compliant event:
The `data` element is the payload of your event. Any well-formed JSON can go in this field. See the [CloudEvents](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md) specifications for more information on properties (also known as context attributes) that can go in an event.
145
+
The `data` element is the payload of your event. Any well-formed JSON can go in this field. For more information on properties (also known as context attributes) that can go in an event, see the [CloudEvents](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md) specifications.
146
146
147
147
CURL is a utility that sends HTTP requests. In this article, use CURL to send the event to the topic.
0 commit comments