diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 4e0c2853605..c9c9b16f972 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -32332,7 +32332,10 @@ paths: permissions: - events_read post: + deprecated: true description: |- + This endpoint is deprecated and is available only to organizations that have previously used it. Use the V2 endpoint instead. + This endpoint allows you to post events to the stream. Tag them, set priority and event aggregate them with other events. operationId: CreateEvent diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index c597b104fe1..ea9a5310026 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -167370,9 +167370,7 @@ paths: **Important:** Upgrade to the latest client library version to use the updated endpoint at `https://event-management-intake.{site}/api/v2/events`. Older client library versions of the Post an event (v2) API send requests to a deprecated endpoint (`https://api.{site}/api/v2/events`). - ✅ **Only events with the `change` or `alert` category** are in General Availability. For change events, see [Change Tracking](https://docs.datadoghq.com/change_tracking) for more details. - - ❌ For use cases involving other event categories, use the V1 endpoint or reach out to [support](https://www.datadoghq.com/support/). + Supported event categories are `change` and `alert`. For more information about change events, see [Change Tracking](https://docs.datadoghq.com/change_tracking). operationId: CreateEvent requestBody: content: diff --git a/src/main/java/com/datadog/api/client/v1/api/EventsApi.java b/src/main/java/com/datadog/api/client/v1/api/EventsApi.java index f4b6ef99b9f..55cb1f36ba5 100644 --- a/src/main/java/com/datadog/api/client/v1/api/EventsApi.java +++ b/src/main/java/com/datadog/api/client/v1/api/EventsApi.java @@ -56,7 +56,9 @@ public void setApiClient(ApiClient apiClient) { * @param body Event request object (required) * @return EventCreateResponse * @throws ApiException if fails to make API call + * @deprecated */ + @Deprecated public EventCreateResponse createEvent(EventCreateRequest body) throws ApiException { return createEventWithHttpInfo(body).getData(); } @@ -68,7 +70,9 @@ public EventCreateResponse createEvent(EventCreateRequest body) throws ApiExcept * * @param body Event request object (required) * @return CompletableFuture<EventCreateResponse> + * @deprecated */ + @Deprecated public CompletableFuture createEventAsync(EventCreateRequest body) { return createEventWithHttpInfoAsync(body) .thenApply( @@ -78,7 +82,10 @@ public CompletableFuture createEventAsync(EventCreateReques } /** - * This endpoint allows you to post events to the stream. Tag them, set priority and event + * This endpoint is deprecated and is available only to organizations that have previously used + * it. Use the V2 endpoint instead. + * + *

This endpoint allows you to post events to the stream. Tag them, set priority and event * aggregate them with other events. * * @param body Event request object (required) @@ -92,7 +99,10 @@ public CompletableFuture createEventAsync(EventCreateReques * 400 Bad Request - * 429 Too many requests - * + * + * @deprecated */ + @Deprecated public ApiResponse createEventWithHttpInfo(EventCreateRequest body) throws ApiException { Object localVarPostBody = body; @@ -133,7 +143,9 @@ public ApiResponse createEventWithHttpInfo(EventCreateReque * * @param body Event request object (required) * @return CompletableFuture<ApiResponse<EventCreateResponse>> + * @deprecated */ + @Deprecated public CompletableFuture> createEventWithHttpInfoAsync( EventCreateRequest body) { Object localVarPostBody = body; diff --git a/src/main/java/com/datadog/api/client/v2/api/EventsApi.java b/src/main/java/com/datadog/api/client/v2/api/EventsApi.java index 49a0cdf093c..34ceecabd0d 100644 --- a/src/main/java/com/datadog/api/client/v2/api/EventsApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/EventsApi.java @@ -96,12 +96,9 @@ public CompletableFuture createEventAsync( * library versions of the Post an event (v2) API send requests to a deprecated endpoint ( * https://api.{site}/api/v2/events). * - *

✅ Only events with the change or alert category - * are in General Availability. For change events, see Change Tracking for more details. - * - *

❌ For use cases involving other event categories, use the V1 endpoint or reach out to support. + *

Supported event categories are change and alert. For more + * information about change events, see Change Tracking. * * @param body Event creation request payload. (required) * @return ApiResponse<EventCreateResponsePayload>