Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
14 changes: 13 additions & 1 deletion src/main/java/com/datadog/api/client/v1/api/EventsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -68,7 +70,9 @@ public EventCreateResponse createEvent(EventCreateRequest body) throws ApiExcept
*
* @param body Event request object (required)
* @return CompletableFuture<EventCreateResponse>
* @deprecated
*/
@Deprecated
public CompletableFuture<EventCreateResponse> createEventAsync(EventCreateRequest body) {
return createEventWithHttpInfoAsync(body)
.thenApply(
Expand All @@ -78,7 +82,10 @@ public CompletableFuture<EventCreateResponse> 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.
*
* <p>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)
Expand All @@ -92,7 +99,10 @@ public CompletableFuture<EventCreateResponse> createEventAsync(EventCreateReques
* <tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
* </table>
*
* @deprecated
*/
@Deprecated
public ApiResponse<EventCreateResponse> createEventWithHttpInfo(EventCreateRequest body)
throws ApiException {
Object localVarPostBody = body;
Expand Down Expand Up @@ -133,7 +143,9 @@ public ApiResponse<EventCreateResponse> createEventWithHttpInfo(EventCreateReque
*
* @param body Event request object (required)
* @return CompletableFuture&lt;ApiResponse&lt;EventCreateResponse&gt;&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<ApiResponse<EventCreateResponse>> createEventWithHttpInfoAsync(
EventCreateRequest body) {
Object localVarPostBody = body;
Expand Down
9 changes: 3 additions & 6 deletions src/main/java/com/datadog/api/client/v2/api/EventsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,9 @@ public CompletableFuture<EventCreateResponsePayload> createEventAsync(
* library versions of the Post an event (v2) API send requests to a deprecated endpoint (<code>
* https://api.{site}/api/v2/events</code>).
*
* <p>✅ <strong>Only events with the <code>change</code> or <code>alert</code> category</strong>
* are in General Availability. For change events, see <a
* href="https://docs.datadoghq.com/change_tracking">Change Tracking</a> for more details.
*
* <p>❌ For use cases involving other event categories, use the V1 endpoint or reach out to <a
* href="https://www.datadoghq.com/support/">support</a>.
* <p>Supported event categories are <code>change</code> and <code>alert</code>. For more
* information about change events, see <a
* href="https://docs.datadoghq.com/change_tracking">Change Tracking</a>.
*
* @param body Event creation request payload. (required)
* @return ApiResponse&lt;EventCreateResponsePayload&gt;
Expand Down
Loading