From 2330e30c0ad80e112f29ef4718642cf6e584ed92 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 28 Aug 2026 21:41:29 +0000 Subject: [PATCH] Regenerate client from commit ad7bd2a of spec repo --- .generator/schemas/v2/openapi.yaml | 35 +++++++++-- .../datadog/api/client/v2/model/Event.java | 58 ++++++++++++++++++- .../api/client/v2/model/EventAttributes.java | 10 ++-- .../api/client/v2/model/EventPriority.java | 12 +++- .../api/client/v2/model/EventStatusType.java | 11 +++- .../client/v2/model/EventsRequestPage.java | 2 +- 6 files changed, 111 insertions(+), 17 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index c441901f41d..6c0be9be5cb 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -37460,12 +37460,17 @@ components: type: integer type: object Event: + additionalProperties: {} description: The metadata associated with a request. properties: id: description: Event ID. example: "6509751066204996294" type: string + integration_id: + description: The integration ID of the event. + example: "custom-events" + type: string name: description: The event name. type: string @@ -37478,8 +37483,13 @@ components: description: Event type. example: "error_tracking_alert" type: string + uid: + description: A unique identifier for the event. You can use this identifier to query or reference the event. + example: "AaBJ4QimAABPmEWRwc_8yAAA" + type: string type: object EventAttributes: + additionalProperties: {} description: Object description of attributes from your event. properties: aggregation_key: @@ -37729,16 +37739,27 @@ components: - CUSTOM_EVENTS EventPriority: description: |- - The priority of the event's monitor. For example, `normal` or `low`. + The priority of the event alert. Legacy events use `normal` or `low`. + Alert events use `1` (highest priority) through `5` (lowest priority). enum: - normal - low + - "1" + - "2" + - "3" + - "4" + - "5" example: "normal" nullable: true type: string x-enum-varnames: - NORMAL - LOW + - PRIORITY_ONE + - PRIORITY_TWO + - PRIORITY_THREE + - PRIORITY_FOUR + - PRIORITY_FIVE EventResponse: description: The object description of an event after being processed and stored by Datadog. properties: @@ -37774,13 +37795,15 @@ components: type: object EventStatusType: description: |- - If an alert event is enabled, its status is one of the following: - `failure`, `error`, `warning`, `info`, `success`, `user_update`, - `recommendation`, or `snapshot`. + The event status. Legacy events can use `failure`, `error`, `warning`, + `info`, `success`, `user_update`, `recommendation`, or `snapshot`. + Alert events can use `error`, `warn`, or `ok`. enum: - failure - error + - warn - warning + - ok - info - success - user_update @@ -37791,7 +37814,9 @@ components: x-enum-varnames: - FAILURE - ERROR + - WARN - WARNING + - OK - INFO - SUCCESS - USER_UPDATE @@ -38046,7 +38071,7 @@ components: type: string limit: default: 10 - description: The maximum number of logs in the response. + description: The maximum number of events in the response. example: 25 format: int32 maximum: 1000 diff --git a/src/main/java/com/datadog/api/client/v2/model/Event.java b/src/main/java/com/datadog/api/client/v2/model/Event.java index e5c3d618bc6..d3000961edd 100644 --- a/src/main/java/com/datadog/api/client/v2/model/Event.java +++ b/src/main/java/com/datadog/api/client/v2/model/Event.java @@ -19,9 +19,11 @@ /** The metadata associated with a request. */ @JsonPropertyOrder({ Event.JSON_PROPERTY_ID, + Event.JSON_PROPERTY_INTEGRATION_ID, Event.JSON_PROPERTY_NAME, Event.JSON_PROPERTY_SOURCE_ID, - Event.JSON_PROPERTY_TYPE + Event.JSON_PROPERTY_TYPE, + Event.JSON_PROPERTY_UID }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") @@ -30,6 +32,9 @@ public class Event { public static final String JSON_PROPERTY_ID = "id"; private String id; + public static final String JSON_PROPERTY_INTEGRATION_ID = "integration_id"; + private String integrationId; + public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -39,6 +44,9 @@ public class Event { public static final String JSON_PROPERTY_TYPE = "type"; private String type; + public static final String JSON_PROPERTY_UID = "uid"; + private String uid; + public Event id(String id) { this.id = id; return this; @@ -60,6 +68,27 @@ public void setId(String id) { this.id = id; } + public Event integrationId(String integrationId) { + this.integrationId = integrationId; + return this; + } + + /** + * The integration ID of the event. + * + * @return integrationId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INTEGRATION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getIntegrationId() { + return integrationId; + } + + public void setIntegrationId(String integrationId) { + this.integrationId = integrationId; + } + public Event name(String name) { this.name = name; return this; @@ -123,6 +152,27 @@ public void setType(String type) { this.type = type; } + public Event uid(String uid) { + this.uid = uid; + return this; + } + + /** + * A unique identifier for the event. You can use this identifier to query or reference the event. + * + * @return uid + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_UID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUid() { + return uid; + } + + public void setUid(String uid) { + this.uid = uid; + } + /** * A container for additional, undeclared properties. This is a holder for any undeclared * properties as specified with the 'additionalProperties' keyword in the OAS document. @@ -180,15 +230,17 @@ public boolean equals(Object o) { } Event event = (Event) o; return Objects.equals(this.id, event.id) + && Objects.equals(this.integrationId, event.integrationId) && Objects.equals(this.name, event.name) && Objects.equals(this.sourceId, event.sourceId) && Objects.equals(this.type, event.type) + && Objects.equals(this.uid, event.uid) && Objects.equals(this.additionalProperties, event.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, name, sourceId, type, additionalProperties); + return Objects.hash(id, integrationId, name, sourceId, type, uid, additionalProperties); } @Override @@ -196,9 +248,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Event {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" integrationId: ").append(toIndentedString(integrationId)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" sourceId: ").append(toIndentedString(sourceId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" uid: ").append(toIndentedString(uid)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) .append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/EventAttributes.java b/src/main/java/com/datadog/api/client/v2/model/EventAttributes.java index cf780d81d62..1b073fd54a1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventAttributes.java @@ -367,7 +367,8 @@ public EventAttributes priority(EventPriority priority) { } /** - * The priority of the event's monitor. For example, normal or low. + * The priority of the event alert. Legacy events use normal or low. + * Alert events use 1 (highest priority) through 5 (lowest priority). * * @return priority */ @@ -491,9 +492,10 @@ public EventAttributes status(EventStatusType status) { } /** - * If an alert event is enabled, its status is one of the following: failure, - * error, warning, info, success, user_update - * , recommendation, or snapshot. + * The event status. Legacy events can use failure, error, warning + * , info, success, user_update, + * recommendation, or snapshot. Alert events can use error, + * warn, or ok. * * @return status */ diff --git a/src/main/java/com/datadog/api/client/v2/model/EventPriority.java b/src/main/java/com/datadog/api/client/v2/model/EventPriority.java index f5039390892..0b387696802 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventPriority.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventPriority.java @@ -18,15 +18,23 @@ import java.util.HashSet; import java.util.Set; -/** The priority of the event's monitor. For example, normal or low. */ +/** + * The priority of the event alert. Legacy events use normal or low. Alert + * events use 1 (highest priority) through 5 (lowest priority). + */ @JsonSerialize(using = EventPriority.EventPrioritySerializer.class) public class EventPriority extends ModelEnum { private static final Set allowedValues = - new HashSet(Arrays.asList("normal", "low")); + new HashSet(Arrays.asList("normal", "low", "1", "2", "3", "4", "5")); public static final EventPriority NORMAL = new EventPriority("normal"); public static final EventPriority LOW = new EventPriority("low"); + public static final EventPriority PRIORITY_ONE = new EventPriority("1"); + public static final EventPriority PRIORITY_TWO = new EventPriority("2"); + public static final EventPriority PRIORITY_THREE = new EventPriority("3"); + public static final EventPriority PRIORITY_FOUR = new EventPriority("4"); + public static final EventPriority PRIORITY_FIVE = new EventPriority("5"); EventPriority(String value) { super(value, allowedValues); diff --git a/src/main/java/com/datadog/api/client/v2/model/EventStatusType.java b/src/main/java/com/datadog/api/client/v2/model/EventStatusType.java index 993f39b5d94..07d6824ae40 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventStatusType.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventStatusType.java @@ -19,9 +19,10 @@ import java.util.Set; /** - * If an alert event is enabled, its status is one of the following: failure, - * error, warning, info, success, user_update - * , recommendation, or snapshot. + * The event status. Legacy events can use failure, error, warning + * , info, success, user_update, recommendation + * , or snapshot. Alert events can use error, warn, or + * ok. */ @JsonSerialize(using = EventStatusType.EventStatusTypeSerializer.class) public class EventStatusType extends ModelEnum { @@ -31,7 +32,9 @@ public class EventStatusType extends ModelEnum { Arrays.asList( "failure", "error", + "warn", "warning", + "ok", "info", "success", "user_update", @@ -40,7 +43,9 @@ public class EventStatusType extends ModelEnum { public static final EventStatusType FAILURE = new EventStatusType("failure"); public static final EventStatusType ERROR = new EventStatusType("error"); + public static final EventStatusType WARN = new EventStatusType("warn"); public static final EventStatusType WARNING = new EventStatusType("warning"); + public static final EventStatusType OK = new EventStatusType("ok"); public static final EventStatusType INFO = new EventStatusType("info"); public static final EventStatusType SUCCESS = new EventStatusType("success"); public static final EventStatusType USER_UPDATE = new EventStatusType("user_update"); diff --git a/src/main/java/com/datadog/api/client/v2/model/EventsRequestPage.java b/src/main/java/com/datadog/api/client/v2/model/EventsRequestPage.java index 2cfeff1646c..188c441cf8c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/EventsRequestPage.java +++ b/src/main/java/com/datadog/api/client/v2/model/EventsRequestPage.java @@ -55,7 +55,7 @@ public EventsRequestPage limit(Integer limit) { } /** - * The maximum number of logs in the response. maximum: 1000 + * The maximum number of events in the response. maximum: 1000 * * @return limit */