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/data-manager-for-agri/how-to-use-events.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
@@ -11,7 +11,7 @@ ms.custom: template-how-to
11
11
12
12
# Azure Data Manager for Agriculture Preview as Event Grid source
13
13
14
-
This article provides the properties and schema for Azure Data Manager for Agriculture events. For an introduction to event schemas, see [Azure Event Grid](https://learn.microsoft.com/azure/event-grid/event-schema) event schema.
14
+
This article provides the properties and schema for Azure Data Manager for Agriculture events. For an introduction to event schemas, see [Azure Event Grid](/azure/event-grid/event-schema) event schema.
15
15
16
16
## Prerequisites
17
17
@@ -35,7 +35,7 @@ Here are example scenarios for consuming events in our service:
35
35
2. If there are modifications to data-plane resources such as party, fields, farms and other similar elements, you can react to changes and you can trigger workflows.
36
36
37
37
## Filtering events
38
-
You can filter Data Manager for Agriculture <ahref="https://docs.microsoft.com/cli/azure/eventgrid/event-subscription"target="_blank"> events </a> by event type, subject, or fields in the data object. Filters in Event Grid match the beginning or end of the subject so that events that match can go to the subscriber.
38
+
You can filter Data Manager for Agriculture <ahref="/cli/azure/eventgrid/event-subscription"target="_blank"> events </a> by event type, subject, or fields in the data object. Filters in Event Grid match the beginning or end of the subject so that events that match can go to the subscriber.
39
39
40
40
For instance, for the PartyChanged event, to receive notifications for changes for a particular party with ID Party1234, you may use the subject filter "EndsWith" as shown:
41
41
@@ -47,22 +47,22 @@ Subjects in an event schema provide 'starts with' and 'exact match' filters as w
47
47
48
48
Similarly, to filter the same event for a group of party IDs, use the Advanced filter on partyId field in the event data object. In a single subscription, you may add five advanced filters with a limit of 25 values for each key filtered.
49
49
50
-
To learn more about how to apply filters, see <ahref = "https://docs.microsoft.com/azure/event-grid/how-to-filter-events"target = "_blank"> filter events for Event Grid. </a>
50
+
To learn more about how to apply filters, see <ahref = "/azure/event-grid/how-to-filter-events"target = "_blank"> filter events for Event Grid. </a>
51
51
52
52
## Subscribing to events
53
53
You can subscribe to Data Manager for Agriculture events by using Azure portal or Azure Resource Manager client. Each of these provide the user with a set of functionalities. Refer to following resources to know more about each method.
54
54
55
-
<ahref = "https://docs.microsoft.com/azure/event-grid/subscribe-through-portal#:~:text=Create%20event%20subscriptions%201%20Select%20All%20services.%202,event%20types%20option%20checked.%20...%20More%20items..."target = "_blank"> Subscribe to events using portal </a>
55
+
<ahref = "/azure/event-grid/subscribe-through-portal"target = "_blank"> Subscribe to events using portal </a>
56
56
57
-
<ahref = "https://docs.microsoft.com/azure/event-grid/sdk-overview"target = "_blank"> Subscribe to events using the ARM template client </a>
57
+
<ahref = "/azure/event-grid/sdk-overview"target = "_blank"> Subscribe to events using the ARM template client </a>
58
58
59
59
## Practices for consuming events
60
60
61
61
Applications that handle Data Manager for Agriculture events should follow a few recommended practices:
62
62
63
63
* Check that the eventType is one you're prepared to process, and don't assume that all events you receive are the types you expect.
64
64
* As messages can arrive out of order, use the modifiedTime and etag fields to understand the order of events for any particular object.
65
-
* Data Manager for Agriculture events guarantees at-least-once delivery to subscribers, which ensures that all messages are outputted. However due to retries or availability of subscriptions, duplicate messages may occasionally occur. To learn more about message delivery and retry, see <ahref = "https://docs.microsoft.com/azure/event-grid/delivery-and-retry"target = "_blank">Event Grid message delivery and retry </a>
65
+
* Data Manager for Agriculture events guarantees at-least-once delivery to subscribers, which ensures that all messages are outputted. However due to retries or availability of subscriptions, duplicate messages may occasionally occur. To learn more about message delivery and retry, see <ahref = "/azure/event-grid/delivery-and-retry"target = "_blank">Event Grid message delivery and retry </a>
66
66
* Ignore fields you don't understand. This practice will help keep you resilient to new features that might be added in the future.
0 commit comments