From acdb5a8906fd000df7f31cf018fc3c18ecd11c8e Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 2 Jun 2026 11:00:39 +0000 Subject: [PATCH] Regenerate client from commit d125f6f of spec repo --- .generator/schemas/v1/openapi.yaml | 59 ++++++++++++++++++- docs/datadog_api_client.v1.model.rst | 14 +++++ .../v1/model/list_stream_issue_persona.py | 44 ++++++++++++++ .../v1/model/list_stream_issue_state.py | 44 ++++++++++++++ .../v1/model/list_stream_query.py | 46 ++++++++++++++- .../v1/model/list_stream_source.py | 7 ++- src/datadog_api_client/v1/models/__init__.py | 4 ++ 7 files changed, 212 insertions(+), 6 deletions(-) create mode 100644 src/datadog_api_client/v1/model/list_stream_issue_persona.py create mode 100644 src/datadog_api_client/v1/model/list_stream_issue_state.py diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 0040506a55..afe196e102 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -5716,9 +5716,41 @@ components: required: - facet type: object + ListStreamIssuePersona: + description: Persona filter for the `issue_stream` data source. + enum: + - all + - browser + - mobile + - backend + type: string + x-enum-varnames: + - ALL + - BROWSER + - MOBILE + - BACKEND + ListStreamIssueState: + description: Issue state filter for the `issue_stream` data source. + enum: + - OPEN + - IGNORED + - ACKNOWLEDGED + - RESOLVED + type: string + x-enum-varnames: + - OPEN + - IGNORED + - ACKNOWLEDGED + - RESOLVED ListStreamQuery: description: Updated list stream widget. properties: + assignee_uuids: + description: Filter by assignee UUIDs. Usable only with `issue_stream`. + items: + description: Assignee UUID. + type: string + type: array clustering_pattern_field_path: description: Specifies the field for logs pattern clustering. Usable only with logs_pattern_stream. example: "message" @@ -5746,16 +5778,35 @@ components: description: Index. type: string type: array + persona: + $ref: "#/components/schemas/ListStreamIssuePersona" query_string: description: Widget query. example: "@service:app" type: string sort: $ref: "#/components/schemas/WidgetFieldSort" + states: + description: Filter by issue states. Usable only with `issue_stream`. + items: + $ref: "#/components/schemas/ListStreamIssueState" + type: array storage: description: Option for storage location. Feature in Private Beta. example: "indexes" type: string + suspected_causes: + description: Filter by suspected causes. Usable only with `issue_stream`. + items: + description: Suspected cause. + type: string + type: array + team_handles: + description: Filter by team handles. Usable only with `issue_stream`. + items: + description: Team handle. + type: string + type: array required: - query_string - data_source @@ -5769,8 +5820,8 @@ components: x-enum-varnames: - EVENT_LIST ListStreamSource: - default: apm_issue_stream - description: Source from which to query items to display in the stream. + default: logs_stream + description: Source from which to query items to display in the stream. apm_issue_stream, rum_issue_stream, and logs_issue_stream are deprecated. Use issue_stream instead. enum: - logs_stream - audit_stream @@ -5785,7 +5836,8 @@ components: - event_stream - rum_stream - llm_observability_stream - example: apm_issue_stream + - issue_stream + example: logs_stream type: string x-enum-varnames: - LOGS_STREAM @@ -5801,6 +5853,7 @@ components: - EVENT_STREAM - RUM_STREAM - LLM_OBSERVABILITY_STREAM + - ISSUE_STREAM ListStreamWidgetDefinition: description: |- The list stream visualization displays a table of recent events in your application that diff --git a/docs/datadog_api_client.v1.model.rst b/docs/datadog_api_client.v1.model.rst index 2f64270889..bce1c7e476 100644 --- a/docs/datadog_api_client.v1.model.rst +++ b/docs/datadog_api_client.v1.model.rst @@ -1810,6 +1810,20 @@ datadog\_api\_client.v1.model.list\_stream\_group\_by\_items module :members: :show-inheritance: +datadog\_api\_client.v1.model.list\_stream\_issue\_persona module +----------------------------------------------------------------- + +.. automodule:: datadog_api_client.v1.model.list_stream_issue_persona + :members: + :show-inheritance: + +datadog\_api\_client.v1.model.list\_stream\_issue\_state module +--------------------------------------------------------------- + +.. automodule:: datadog_api_client.v1.model.list_stream_issue_state + :members: + :show-inheritance: + datadog\_api\_client.v1.model.list\_stream\_query module -------------------------------------------------------- diff --git a/src/datadog_api_client/v1/model/list_stream_issue_persona.py b/src/datadog_api_client/v1/model/list_stream_issue_persona.py new file mode 100644 index 0000000000..22eedc4710 --- /dev/null +++ b/src/datadog_api_client/v1/model/list_stream_issue_persona.py @@ -0,0 +1,44 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ListStreamIssuePersona(ModelSimple): + """ + Persona filter for the `issue_stream` data source. + + :param value: Must be one of ["all", "browser", "mobile", "backend"]. + :type value: str + """ + + allowed_values = { + "all", + "browser", + "mobile", + "backend", + } + ALL: ClassVar["ListStreamIssuePersona"] + BROWSER: ClassVar["ListStreamIssuePersona"] + MOBILE: ClassVar["ListStreamIssuePersona"] + BACKEND: ClassVar["ListStreamIssuePersona"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ListStreamIssuePersona.ALL = ListStreamIssuePersona("all") +ListStreamIssuePersona.BROWSER = ListStreamIssuePersona("browser") +ListStreamIssuePersona.MOBILE = ListStreamIssuePersona("mobile") +ListStreamIssuePersona.BACKEND = ListStreamIssuePersona("backend") diff --git a/src/datadog_api_client/v1/model/list_stream_issue_state.py b/src/datadog_api_client/v1/model/list_stream_issue_state.py new file mode 100644 index 0000000000..890da4e703 --- /dev/null +++ b/src/datadog_api_client/v1/model/list_stream_issue_state.py @@ -0,0 +1,44 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ListStreamIssueState(ModelSimple): + """ + Issue state filter for the `issue_stream` data source. + + :param value: Must be one of ["OPEN", "IGNORED", "ACKNOWLEDGED", "RESOLVED"]. + :type value: str + """ + + allowed_values = { + "OPEN", + "IGNORED", + "ACKNOWLEDGED", + "RESOLVED", + } + OPEN: ClassVar["ListStreamIssueState"] + IGNORED: ClassVar["ListStreamIssueState"] + ACKNOWLEDGED: ClassVar["ListStreamIssueState"] + RESOLVED: ClassVar["ListStreamIssueState"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ListStreamIssueState.OPEN = ListStreamIssueState("OPEN") +ListStreamIssueState.IGNORED = ListStreamIssueState("IGNORED") +ListStreamIssueState.ACKNOWLEDGED = ListStreamIssueState("ACKNOWLEDGED") +ListStreamIssueState.RESOLVED = ListStreamIssueState("RESOLVED") diff --git a/src/datadog_api_client/v1/model/list_stream_query.py b/src/datadog_api_client/v1/model/list_stream_query.py index 1d9d716ed3..5adb4e99df 100644 --- a/src/datadog_api_client/v1/model/list_stream_query.py +++ b/src/datadog_api_client/v1/model/list_stream_query.py @@ -18,7 +18,9 @@ from datadog_api_client.v1.model.list_stream_source import ListStreamSource from datadog_api_client.v1.model.widget_event_size import WidgetEventSize from datadog_api_client.v1.model.list_stream_group_by_items import ListStreamGroupByItems + from datadog_api_client.v1.model.list_stream_issue_persona import ListStreamIssuePersona from datadog_api_client.v1.model.widget_field_sort import WidgetFieldSort + from datadog_api_client.v1.model.list_stream_issue_state import ListStreamIssueState class ListStreamQuery(ModelNormal): @@ -38,55 +40,75 @@ def openapi_types(_): from datadog_api_client.v1.model.list_stream_source import ListStreamSource from datadog_api_client.v1.model.widget_event_size import WidgetEventSize from datadog_api_client.v1.model.list_stream_group_by_items import ListStreamGroupByItems + from datadog_api_client.v1.model.list_stream_issue_persona import ListStreamIssuePersona from datadog_api_client.v1.model.widget_field_sort import WidgetFieldSort + from datadog_api_client.v1.model.list_stream_issue_state import ListStreamIssueState return { + "assignee_uuids": ([str],), "clustering_pattern_field_path": (str,), "compute": ([ListStreamComputeItems],), "data_source": (ListStreamSource,), "event_size": (WidgetEventSize,), "group_by": ([ListStreamGroupByItems],), "indexes": ([str],), + "persona": (ListStreamIssuePersona,), "query_string": (str,), "sort": (WidgetFieldSort,), + "states": ([ListStreamIssueState],), "storage": (str,), + "suspected_causes": ([str],), + "team_handles": ([str],), } attribute_map = { + "assignee_uuids": "assignee_uuids", "clustering_pattern_field_path": "clustering_pattern_field_path", "compute": "compute", "data_source": "data_source", "event_size": "event_size", "group_by": "group_by", "indexes": "indexes", + "persona": "persona", "query_string": "query_string", "sort": "sort", + "states": "states", "storage": "storage", + "suspected_causes": "suspected_causes", + "team_handles": "team_handles", } def __init__( self_, data_source: ListStreamSource, query_string: str, + assignee_uuids: Union[List[str], UnsetType] = unset, clustering_pattern_field_path: Union[str, UnsetType] = unset, compute: Union[List[ListStreamComputeItems], UnsetType] = unset, event_size: Union[WidgetEventSize, UnsetType] = unset, group_by: Union[List[ListStreamGroupByItems], UnsetType] = unset, indexes: Union[List[str], UnsetType] = unset, + persona: Union[ListStreamIssuePersona, UnsetType] = unset, sort: Union[WidgetFieldSort, UnsetType] = unset, + states: Union[List[ListStreamIssueState], UnsetType] = unset, storage: Union[str, UnsetType] = unset, + suspected_causes: Union[List[str], UnsetType] = unset, + team_handles: Union[List[str], UnsetType] = unset, **kwargs, ): """ Updated list stream widget. + :param assignee_uuids: Filter by assignee UUIDs. Usable only with ``issue_stream``. + :type assignee_uuids: [str], optional + :param clustering_pattern_field_path: Specifies the field for logs pattern clustering. Usable only with logs_pattern_stream. :type clustering_pattern_field_path: str, optional :param compute: Compute configuration for the List Stream Widget. Compute can be used only with the logs_transaction_stream (from 1 to 5 items) list stream source. :type compute: [ListStreamComputeItems], optional - :param data_source: Source from which to query items to display in the stream. + :param data_source: Source from which to query items to display in the stream. apm_issue_stream, rum_issue_stream, and logs_issue_stream are deprecated. Use issue_stream instead. :type data_source: ListStreamSource :param event_size: Size to use to display an event. @@ -98,15 +120,29 @@ def __init__( :param indexes: List of indexes. :type indexes: [str], optional + :param persona: Persona filter for the ``issue_stream`` data source. + :type persona: ListStreamIssuePersona, optional + :param query_string: Widget query. :type query_string: str :param sort: Which column and order to sort by :type sort: WidgetFieldSort, optional + :param states: Filter by issue states. Usable only with ``issue_stream``. + :type states: [ListStreamIssueState], optional + :param storage: Option for storage location. Feature in Private Beta. :type storage: str, optional + + :param suspected_causes: Filter by suspected causes. Usable only with ``issue_stream``. + :type suspected_causes: [str], optional + + :param team_handles: Filter by team handles. Usable only with ``issue_stream``. + :type team_handles: [str], optional """ + if assignee_uuids is not unset: + kwargs["assignee_uuids"] = assignee_uuids if clustering_pattern_field_path is not unset: kwargs["clustering_pattern_field_path"] = clustering_pattern_field_path if compute is not unset: @@ -117,10 +153,18 @@ def __init__( kwargs["group_by"] = group_by if indexes is not unset: kwargs["indexes"] = indexes + if persona is not unset: + kwargs["persona"] = persona if sort is not unset: kwargs["sort"] = sort + if states is not unset: + kwargs["states"] = states if storage is not unset: kwargs["storage"] = storage + if suspected_causes is not unset: + kwargs["suspected_causes"] = suspected_causes + if team_handles is not unset: + kwargs["team_handles"] = team_handles super().__init__(kwargs) self_.data_source = data_source diff --git a/src/datadog_api_client/v1/model/list_stream_source.py b/src/datadog_api_client/v1/model/list_stream_source.py index a9edf08a69..ce36580e1f 100644 --- a/src/datadog_api_client/v1/model/list_stream_source.py +++ b/src/datadog_api_client/v1/model/list_stream_source.py @@ -14,9 +14,9 @@ class ListStreamSource(ModelSimple): """ - Source from which to query items to display in the stream. + Source from which to query items to display in the stream. apm_issue_stream, rum_issue_stream, and logs_issue_stream are deprecated. Use issue_stream instead. - :param value: If omitted defaults to "apm_issue_stream". Must be one of ["logs_stream", "audit_stream", "ci_pipeline_stream", "ci_test_stream", "rum_issue_stream", "apm_issue_stream", "trace_stream", "logs_issue_stream", "logs_pattern_stream", "logs_transaction_stream", "event_stream", "rum_stream", "llm_observability_stream"]. + :param value: If omitted defaults to "logs_stream". Must be one of ["logs_stream", "audit_stream", "ci_pipeline_stream", "ci_test_stream", "rum_issue_stream", "apm_issue_stream", "trace_stream", "logs_issue_stream", "logs_pattern_stream", "logs_transaction_stream", "event_stream", "rum_stream", "llm_observability_stream", "issue_stream"]. :type value: str """ @@ -34,6 +34,7 @@ class ListStreamSource(ModelSimple): "event_stream", "rum_stream", "llm_observability_stream", + "issue_stream", } LOGS_STREAM: ClassVar["ListStreamSource"] AUDIT_STREAM: ClassVar["ListStreamSource"] @@ -48,6 +49,7 @@ class ListStreamSource(ModelSimple): EVENT_STREAM: ClassVar["ListStreamSource"] RUM_STREAM: ClassVar["ListStreamSource"] LLM_OBSERVABILITY_STREAM: ClassVar["ListStreamSource"] + ISSUE_STREAM: ClassVar["ListStreamSource"] @cached_property def openapi_types(_): @@ -69,3 +71,4 @@ def openapi_types(_): ListStreamSource.EVENT_STREAM = ListStreamSource("event_stream") ListStreamSource.RUM_STREAM = ListStreamSource("rum_stream") ListStreamSource.LLM_OBSERVABILITY_STREAM = ListStreamSource("llm_observability_stream") +ListStreamSource.ISSUE_STREAM = ListStreamSource("issue_stream") diff --git a/src/datadog_api_client/v1/models/__init__.py b/src/datadog_api_client/v1/models/__init__.py index bd2b2da548..7f94ecdf40 100644 --- a/src/datadog_api_client/v1/models/__init__.py +++ b/src/datadog_api_client/v1/models/__init__.py @@ -312,6 +312,8 @@ from datadog_api_client.v1.model.list_stream_compute_aggregation import ListStreamComputeAggregation from datadog_api_client.v1.model.list_stream_compute_items import ListStreamComputeItems from datadog_api_client.v1.model.list_stream_group_by_items import ListStreamGroupByItems +from datadog_api_client.v1.model.list_stream_issue_persona import ListStreamIssuePersona +from datadog_api_client.v1.model.list_stream_issue_state import ListStreamIssueState from datadog_api_client.v1.model.list_stream_query import ListStreamQuery from datadog_api_client.v1.model.list_stream_response_format import ListStreamResponseFormat from datadog_api_client.v1.model.list_stream_source import ListStreamSource @@ -1647,6 +1649,8 @@ "ListStreamComputeAggregation", "ListStreamComputeItems", "ListStreamGroupByItems", + "ListStreamIssuePersona", + "ListStreamIssueState", "ListStreamQuery", "ListStreamResponseFormat", "ListStreamSource",