From 1f7431fc32d67c0bbca4907fad5a1590790dfafd Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 20 Nov 2026 17:38:36 +0000 Subject: [PATCH] Regenerate client from commit 6581203 of spec repo --- .generator/schemas/v2/openapi.yaml | 16 +++++++++++ .../v2/model/event_response_attributes.py | 28 +++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 350eab0330..938f9f8522 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -50211,9 +50211,19 @@ components: properties: attributes: $ref: "#/components/schemas/EventAttributes" + host: + description: The host associated with the event. + example: "example-host" + type: string message: description: The message of the event. type: string + service: + description: The service associated with the event. + example: "example-service" + type: string + status: + $ref: "#/components/schemas/EventStatusType" tags: description: An array of tags associated with the event. example: ["team:A"] @@ -187677,7 +187687,10 @@ paths: value: data: - attributes: + host: "example-host" message: "Test event" + service: "example-service" + status: "info" tags: - "env:prod" timestamp: "2019-01-02T09:42:36.320Z" @@ -187894,7 +187907,10 @@ paths: value: data: - attributes: + host: "example-host" message: "Test event" + service: "example-service" + status: "info" tags: - "env:prod" timestamp: "2019-01-02T09:42:36.320Z" diff --git a/src/datadog_api_client/v2/model/event_response_attributes.py b/src/datadog_api_client/v2/model/event_response_attributes.py index 72f2213e60..a088fe2e24 100644 --- a/src/datadog_api_client/v2/model/event_response_attributes.py +++ b/src/datadog_api_client/v2/model/event_response_attributes.py @@ -16,23 +16,31 @@ if TYPE_CHECKING: from datadog_api_client.v2.model.event_attributes import EventAttributes + from datadog_api_client.v2.model.event_status_type import EventStatusType class EventResponseAttributes(ModelNormal): @cached_property def openapi_types(_): from datadog_api_client.v2.model.event_attributes import EventAttributes + from datadog_api_client.v2.model.event_status_type import EventStatusType return { "attributes": (EventAttributes,), + "host": (str,), "message": (str,), + "service": (str,), + "status": (EventStatusType,), "tags": ([str],), "timestamp": (datetime,), } attribute_map = { "attributes": "attributes", + "host": "host", "message": "message", + "service": "service", + "status": "status", "tags": "tags", "timestamp": "timestamp", } @@ -40,7 +48,10 @@ def openapi_types(_): def __init__( self_, attributes: Union[EventAttributes, UnsetType] = unset, + host: Union[str, UnsetType] = unset, message: Union[str, UnsetType] = unset, + service: Union[str, UnsetType] = unset, + status: Union[EventStatusType, UnsetType] = unset, tags: Union[List[str], UnsetType] = unset, timestamp: Union[datetime, UnsetType] = unset, **kwargs, @@ -51,9 +62,20 @@ def __init__( :param attributes: Object description of attributes from your event. :type attributes: EventAttributes, optional + :param host: The host associated with the event. + :type host: str, optional + :param message: The message of the event. :type message: str, optional + :param service: The service associated with the event. + :type service: str, optional + + :param status: 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``. + :type status: EventStatusType, optional + :param tags: An array of tags associated with the event. :type tags: [str], optional @@ -62,8 +84,14 @@ def __init__( """ if attributes is not unset: kwargs["attributes"] = attributes + if host is not unset: + kwargs["host"] = host if message is not unset: kwargs["message"] = message + if service is not unset: + kwargs["service"] = service + if status is not unset: + kwargs["status"] = status if tags is not unset: kwargs["tags"] = tags if timestamp is not unset: