Skip to content

Commit 7bd4a95

Browse files
committed
Update docs metadata
1 parent ee5f4e2 commit 7bd4a95

File tree

4 files changed

+227
-14
lines changed

4 files changed

+227
-14
lines changed

docs-ref-services/latest/messaging-eventgrid-readme.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: Azure Event Grid client library for Java
33
keywords: Azure, java, SDK, API, azure-messaging-eventgrid, azure-event-grid
4-
ms.date: 06/21/2025
4+
ms.date: 06/28/2025
55
ms.topic: reference
66
ms.devlang: java
77
ms.service: azure-event-grid
88
---
9-
# Azure Event Grid client library for Java - version 4.30.1
9+
# Azure Event Grid client library for Java - version 4.31.0
1010

1111

1212
Azure Event Grid allows you to easily build applications with event-based architectures. The Event Grid service fully
@@ -56,7 +56,7 @@ az eventgrid ___domain create --___location <___location> --resource-group <your-resource
5656
#### Include the BOM file
5757

5858
Please include the azure-sdk-bom to your project to take dependency on GA version of the library. In the following snippet, replace the {bom_version_to_target} placeholder with the version number.
59-
To learn more about the BOM, see the [AZURE SDK BOM README](https://github.com/Azure/azure-sdk-for-java/blob/azure-messaging-eventgrid_4.30.1/sdk/boms/azure-sdk-bom/README.md).
59+
To learn more about the BOM, see the [AZURE SDK BOM README](https://github.com/Azure/azure-sdk-for-java/blob/azure-messaging-eventgrid_4.31.0/sdk/boms/azure-sdk-bom/README.md).
6060

6161
```xml
6262
<dependencyManagement>
@@ -91,7 +91,7 @@ add the direct dependency to your project as follows.
9191
<dependency>
9292
<groupId>com.azure</groupId>
9393
<artifactId>azure-messaging-eventgrid</artifactId>
94-
<version>4.30.1</version>
94+
<version>4.30.0-beta.1</version>
9595
</dependency>
9696
```
9797
[//]: # ({x-version-update-end})
@@ -495,7 +495,7 @@ If you encounter any bugs with these SDKs, please file issues via [Issues](https
495495

496496
## Contributing
497497

498-
For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/azure-messaging-eventgrid_4.30.1/CONTRIBUTING.md).
498+
For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/azure-messaging-eventgrid_4.31.0/CONTRIBUTING.md).
499499

500500
1. Fork it
501501
2. Create your feature branch (`git checkout -b my-new-feature`)
@@ -512,13 +512,13 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope
512512
[javadocs]: https://azure.github.io/azure-sdk-for-java/eventgrid.html
513513
[azure_subscription]: https://azure.microsoft.com/free
514514
[maven]: https://maven.apache.org/
515-
[HttpResponseException]: https://github.com/Azure/azure-sdk-for-java/blob/azure-messaging-eventgrid_4.30.1/sdk/core/azure-core/src/main/java/com/azure/core/exception/HttpResponseException.java
516-
[samples]: https://github.com/Azure/azure-sdk-for-java/blob/azure-messaging-eventgrid_4.30.1/sdk/eventgrid/azure-messaging-eventgrid/src/samples/java/com/azure/messaging/eventgrid
515+
[HttpResponseException]: https://github.com/Azure/azure-sdk-for-java/blob/azure-messaging-eventgrid_4.31.0/sdk/core/azure-core/src/main/java/com/azure/core/exception/HttpResponseException.java
516+
[samples]: https://github.com/Azure/azure-sdk-for-java/blob/azure-messaging-eventgrid_4.31.0/sdk/eventgrid/azure-messaging-eventgrid/src/samples/java/com/azure/messaging/eventgrid
517517
[eventgrid]: https://azure.com/eventgrid
518518
[portal]: https://ms.portal.azure.com/
519519
[cli]: https://learn.microsoft.com/cli/azure
520520
[service_docs]: https://learn.microsoft.com/azure/event-grid/
521-
[sources]: https://github.com/Azure/azure-sdk-for-java/tree/azure-messaging-eventgrid_4.30.1/sdk/eventgrid/azure-messaging-eventgrid/src
521+
[sources]: https://github.com/Azure/azure-sdk-for-java/tree/azure-messaging-eventgrid_4.31.0/sdk/eventgrid/azure-messaging-eventgrid/src
522522
[EventGridEvent]: https://learn.microsoft.com/azure/event-grid/event-schema
523523
[CloudEvent]: https://github.com/cloudevents/spec/blob/master/spec.md
524524

Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
---
2+
title:
3+
keywords: Azure, java, SDK, API, azure-messaging-eventgrid-systemevents, eventgrid
4+
ms.date: 06/28/2025
5+
ms.topic: reference
6+
ms.devlang: java
7+
ms.service: eventgrid
8+
---
9+
# Azure Event Grid System Events for Java
10+
11+
This package contains strongly typed model classes for Azure Event Grid System Events and utilities for deserializing system event data.
12+
13+
## Overview
14+
15+
This library provides:
16+
- **System Event Data Models**: Strongly typed classes for all Azure Event Grid system events (e.g.,
17+
`StorageBlobCreatedEventData`, `AppConfigurationKeyValueDeletedEventData`)
18+
- **Event Type Constants**: Pre-defined constants for all system event types via `SystemEventNames`
19+
- **Event Mappings**: Automatic mapping between event type strings and their corresponding data model classes
20+
21+
System events are published by Azure services when resources change state. For example, when a blob is created in Azure Storage, a `Microsoft.Storage.BlobCreated` event is published with `StorageBlobCreatedEventData` as the event data.
22+
23+
[Sources][sources] |
24+
[API Reference Documentation][javadocs] |
25+
[Product Documentation][service_docs] |
26+
[Samples][samples]
27+
28+
## Getting started
29+
30+
### Prerequisites
31+
32+
- [Java Development Kit (JDK)][jdk] with version 8 or above
33+
34+
### Adding the package to your product
35+
36+
[//]: # ({x-version-update-start;com.azure:azure-messaging-eventgrid-systemevents;current})
37+
```xml
38+
<dependency>
39+
<groupId>com.azure</groupId>
40+
<artifactId>azure-messaging-eventgrid-systemevents</artifactId>
41+
<version>1.0.0</version>
42+
</dependency>
43+
```
44+
[//]: # ({x-version-update-end})
45+
46+
**Note**: This package contains only the system event models and utilities. To send events, you'll also need the
47+
main [Event Grid SDK][azure-messaging-eventgrid]:
48+
49+
[//]: # ({x-version-update-start;com.azure:azure-messaging-eventgrid;dependency})
50+
```xml
51+
<dependency>
52+
<groupId>com.azure</groupId>
53+
<artifactId>azure-messaging-eventgrid</artifactId>
54+
<version>4.30.0</version>
55+
</dependency>
56+
```
57+
[//]: # ({x-version-update-end})
58+
59+
**For Event Grid namespaces**: If you're working with Event Grid namespaces, consider using the [EventGrid namespaces
60+
package](https://github.com/Azure/azure-sdk-for-java/tree/azure-messaging-eventgrid-systemevents_1.0.0/sdk/eventgrid/azure-messaging-eventgrid-namespaces) for
61+
namespace-specific functionality:
62+
63+
[//]: # ({x-version-update-start;com.azure:azure-messaging-eventgrid-namespaces;dependency})
64+
65+
```xml
66+
<dependency>
67+
<groupId>com.azure</groupId>
68+
<artifactId>azure-messaging-eventgrid-namespaces</artifactId>
69+
<version>1.1.3</version>
70+
</dependency>
71+
```
72+
[//]: # ({x-version-update-end})
73+
74+
## Key concepts
75+
76+
**System Events**: Events automatically published by Azure services when resource state changes occur.
77+
78+
**Event Data Models**: Strongly typed classes in the `com.azure.messaging.eventgrid.systemevents.models` package
79+
that represent the `data` payload of system events.
80+
81+
**SystemEventNames**: Utility class containing constants for all system event types and mappings to their corresponding data model classes.
82+
83+
## Examples
84+
85+
### Available System Events
86+
87+
This package provides models for system events from many Azure services, including:
88+
89+
- **Azure App Configuration**: `AppConfigurationKeyValueDeletedEventData`, `AppConfigurationKeyValueModifiedEventData`
90+
- **Azure Blob Storage**: `StorageBlobCreatedEventData`, `StorageBlobDeletedEventData`
91+
- **Azure Communication Services**: `AcsCallStartedEventData`, `AcsChatMessageReceivedEventData`
92+
- **Azure Container Registry**: `ContainerRegistryImagePushedEventData`, `ContainerRegistryImageDeletedEventData`
93+
- **Azure Event Hubs**: `EventHubCaptureFileCreatedEventData`
94+
- **Azure IoT Hub**: `IotHubDeviceCreatedEventData`, `IotHubDeviceTelemetryEventData`
95+
- **Azure Service Bus**: `ServiceBusActiveMessagesAvailableWithNoListenersEventData`
96+
- See the [Azure services that support system events](https://learn.microsoft.com/azure/event-grid/system-topics#azure-services-that-support-system-topics) for additional supported services.
97+
For a complete list, see the `com.azure.messaging.eventgrid.systemevents.models` package.
98+
99+
### Working with System Events
100+
101+
#### 1. Get System Event Type Constants
102+
103+
```java readme-sample-getSystemEventTypeConstants
104+
// Access predefined event type constants
105+
String blobCreatedEventType = SystemEventNames.STORAGE_BLOB_CREATED;
106+
String keyVaultSecretExpiredEventType = SystemEventNames.KEY_VAULT_SECRET_NEAR_EXPIRY;
107+
```
108+
109+
#### 2. Look up Event Data Model Class
110+
111+
```java readme-sample-lookupSystemEventClass
112+
// Find the appropriate model class for an event type
113+
Class<?> eventDataClass = SystemEventNames.getSystemEventMappings().get(eventType);
114+
if (eventDataClass != null) {
115+
System.out.println("Event data should be deserialized to: " + eventDataClass.getSimpleName());
116+
}
117+
```
118+
119+
#### 3. Deserialize System Event Data
120+
121+
```java readme-sample-deserializeSystemEventData
122+
// Assuming you have an EventGridEvent from the main EventGrid SDK and the event is Storage Blob Created event
123+
StorageBlobCreatedEventData storageBlobCreatedEventData
124+
= StorageBlobCreatedEventData.fromJson(JsonProviders.createReader("payload"));
125+
BinaryData data = storageBlobCreatedEventData.getStorageDiagnostics().get("batchId");
126+
127+
System.out.println("Blob URL: " + storageBlobCreatedEventData.getUrl());
128+
System.out.println("Blob size: " + storageBlobCreatedEventData.getContentLength());
129+
System.out.println("Content type: " + storageBlobCreatedEventData.getContentType());
130+
131+
```
132+
133+
## Troubleshooting
134+
135+
### Common Issues
136+
137+
- **Missing Event Type**: If `SystemEventNames.getSystemEventMappings().get(eventType)` returns null, the event type might be:
138+
- A custom event (not a system event)
139+
- A new system event is not yet supported in this version
140+
- Misspelled event type string
141+
142+
- **Deserialization Errors**: Ensure you're using the correct model class for the event type. Use `SystemEventNames` mappings to get the right class.
143+
144+
### Enable client logging
145+
Azure SDKs for Java offer a consistent logging story to help aid in troubleshooting application errors and expedite
146+
their resolution. The logs produced will capture the flow of an application before reaching the terminal state to help
147+
locate the root issue. View the [logging][logging] wiki for guidance about enabling logging.
148+
149+
## Next steps
150+
151+
- Explore the [`azure-messaging-eventgrid-systemevents`][sources] package for available event data models
152+
- Explore the [`azure-messaging-eventgrid`][azure-messaging-eventgrid] package for sending events
153+
- Learn about [Azure Event Grid System Topics](https://learn.microsoft.com/azure/event-grid/system-topics)
154+
- Review [Event Grid event schemas](https://learn.microsoft.com/azure/event-grid/event-schema) for different Azure services
155+
- Check out [Event Grid samples][samples] for complete examples
156+
- Additional Event Grid tutorials can be found [here][service_docs]
157+
158+
## Contributing
159+
160+
This project welcomes contributions and suggestions. Most contributions require you to agree to a
161+
[Contributor License Agreement (CLA)][cla] declaring that you have the right to, and actually do, grant us the rights
162+
to use your contribution.
163+
164+
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate
165+
the PR appropriately (e.g., label, comment). Follow the instructions provided by the bot. You will only need to
166+
do this once across all repos using our CLA.
167+
168+
This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information, see the
169+
[Code of Conduct FAQ][coc_faq] or contact [[email protected]][coc_contact] with any additional questions or comments.
170+
171+
<!-- LINKS -->
172+
[product_documentation]: https://learn.microsoft.com/azure/event-grid/
173+
[docs]: https://azure.github.io/azure-sdk-for-java/
174+
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
175+
[logging]: https://github.com/Azure/azure-sdk-for-java/wiki/Logging-in-Azure-SDK
176+
[azure-messaging-eventgrid]: https://github.com/Azure/azure-sdk-for-java/tree/azure-messaging-eventgrid-systemevents_1.0.0/sdk/eventgrid/azure-messaging-eventgrid
177+
[service_docs]: https://learn.microsoft.com/azure/event-grid/
178+
[samples]: https://github.com/Azure/azure-sdk-for-java/blob/azure-messaging-eventgrid-systemevents_1.0.0/sdk/eventgrid/azure-messaging-eventgrid/src/samples/java/com/azure/messaging/eventgrid
179+
[sources]: https://github.com/Azure/azure-sdk-for-java/tree/azure-messaging-eventgrid-systemevents_1.0.0/sdk/eventgrid/azure-messaging-eventgrid-systemevents/src
180+
[javadocs]: https://github.com/Azure/azure-sdk-for-java/tree/azure-messaging-eventgrid-systemevents_1.0.0/sdk/eventgrid/azure-messaging-eventgrid-systemevents/src
181+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"Name": "azure-messaging-eventgrid-systemevents",
3+
"Version": "1.0.0",
4+
"DevVersion": null,
5+
"DirectoryPath": "sdk/eventgrid/azure-messaging-eventgrid-systemevents",
6+
"ServiceDirectory": "eventgrid",
7+
"ReadMePath": "sdk/eventgrid/azure-messaging-eventgrid-systemevents/README.md",
8+
"ChangeLogPath": "sdk/eventgrid/azure-messaging-eventgrid-systemevents/CHANGELOG.md",
9+
"Group": "com.azure",
10+
"SdkType": "client",
11+
"IsNewSdk": true,
12+
"ArtifactName": "azure-messaging-eventgrid-systemevents",
13+
"ReleaseStatus": "2025-06-26",
14+
"IncludedForValidation": false,
15+
"AdditionalValidationPackages": null,
16+
"ArtifactDetails": {
17+
"groupId": "com.azure",
18+
"releaseInBatch": "${{ parameters.release_azuremessagingeventgridsystemevents }}",
19+
"safeName": "azuremessagingeventgridsystemevents",
20+
"triggeringPaths": [
21+
"/sdk/eventgrid/ci.yml"
22+
],
23+
"name": "azure-messaging-eventgrid-systemevents"
24+
},
25+
"CIParameters": {
26+
"CIMatrixConfigs": []
27+
},
28+
"Namespaces": [
29+
"com.azure.messaging.eventgrid.systemevents",
30+
"com.azure.messaging.eventgrid.systemevents.models"
31+
]
32+
}

metadata/latest/azure-messaging-eventgrid.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Name": "azure-messaging-eventgrid",
3-
"Version": "4.30.1",
3+
"Version": "4.31.0",
44
"DevVersion": null,
55
"DirectoryPath": "sdk/eventgrid/azure-messaging-eventgrid",
66
"ServiceDirectory": "eventgrid",
@@ -10,17 +10,17 @@
1010
"SdkType": "client",
1111
"IsNewSdk": true,
1212
"ArtifactName": "azure-messaging-eventgrid",
13-
"ReleaseStatus": "2025-06-19",
13+
"ReleaseStatus": "2025-06-26",
1414
"IncludedForValidation": false,
1515
"AdditionalValidationPackages": null,
1616
"ArtifactDetails": {
17+
"groupId": "com.azure",
18+
"releaseInBatch": "${{ parameters.release_azuremessagingeventgrid }}",
19+
"safeName": "azuremessagingeventgrid",
1720
"triggeringPaths": [
1821
"/sdk/eventgrid/ci.yml"
1922
],
20-
"groupId": "com.azure",
21-
"safeName": "azuremessagingeventgrid",
22-
"name": "azure-messaging-eventgrid",
23-
"releaseInBatch": "${{ parameters.release_azuremessagingeventgrid }}"
23+
"name": "azure-messaging-eventgrid"
2424
},
2525
"CIParameters": {
2626
"CIMatrixConfigs": []

0 commit comments

Comments
 (0)