Skip to content

Commit acdb5a8

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d125f6f of spec repo
1 parent 684215c commit acdb5a8

7 files changed

Lines changed: 212 additions & 6 deletions

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 56 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5716,9 +5716,41 @@ components:
57165716
required:
57175717
- facet
57185718
type: object
5719+
ListStreamIssuePersona:
5720+
description: Persona filter for the `issue_stream` data source.
5721+
enum:
5722+
- all
5723+
- browser
5724+
- mobile
5725+
- backend
5726+
type: string
5727+
x-enum-varnames:
5728+
- ALL
5729+
- BROWSER
5730+
- MOBILE
5731+
- BACKEND
5732+
ListStreamIssueState:
5733+
description: Issue state filter for the `issue_stream` data source.
5734+
enum:
5735+
- OPEN
5736+
- IGNORED
5737+
- ACKNOWLEDGED
5738+
- RESOLVED
5739+
type: string
5740+
x-enum-varnames:
5741+
- OPEN
5742+
- IGNORED
5743+
- ACKNOWLEDGED
5744+
- RESOLVED
57195745
ListStreamQuery:
57205746
description: Updated list stream widget.
57215747
properties:
5748+
assignee_uuids:
5749+
description: Filter by assignee UUIDs. Usable only with `issue_stream`.
5750+
items:
5751+
description: Assignee UUID.
5752+
type: string
5753+
type: array
57225754
clustering_pattern_field_path:
57235755
description: Specifies the field for logs pattern clustering. Usable only with logs_pattern_stream.
57245756
example: "message"
@@ -5746,16 +5778,35 @@ components:
57465778
description: Index.
57475779
type: string
57485780
type: array
5781+
persona:
5782+
$ref: "#/components/schemas/ListStreamIssuePersona"
57495783
query_string:
57505784
description: Widget query.
57515785
example: "@service:app"
57525786
type: string
57535787
sort:
57545788
$ref: "#/components/schemas/WidgetFieldSort"
5789+
states:
5790+
description: Filter by issue states. Usable only with `issue_stream`.
5791+
items:
5792+
$ref: "#/components/schemas/ListStreamIssueState"
5793+
type: array
57555794
storage:
57565795
description: Option for storage location. Feature in Private Beta.
57575796
example: "indexes"
57585797
type: string
5798+
suspected_causes:
5799+
description: Filter by suspected causes. Usable only with `issue_stream`.
5800+
items:
5801+
description: Suspected cause.
5802+
type: string
5803+
type: array
5804+
team_handles:
5805+
description: Filter by team handles. Usable only with `issue_stream`.
5806+
items:
5807+
description: Team handle.
5808+
type: string
5809+
type: array
57595810
required:
57605811
- query_string
57615812
- data_source
@@ -5769,8 +5820,8 @@ components:
57695820
x-enum-varnames:
57705821
- EVENT_LIST
57715822
ListStreamSource:
5772-
default: apm_issue_stream
5773-
description: Source from which to query items to display in the stream.
5823+
default: logs_stream
5824+
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.
57745825
enum:
57755826
- logs_stream
57765827
- audit_stream
@@ -5785,7 +5836,8 @@ components:
57855836
- event_stream
57865837
- rum_stream
57875838
- llm_observability_stream
5788-
example: apm_issue_stream
5839+
- issue_stream
5840+
example: logs_stream
57895841
type: string
57905842
x-enum-varnames:
57915843
- LOGS_STREAM
@@ -5801,6 +5853,7 @@ components:
58015853
- EVENT_STREAM
58025854
- RUM_STREAM
58035855
- LLM_OBSERVABILITY_STREAM
5856+
- ISSUE_STREAM
58045857
ListStreamWidgetDefinition:
58055858
description: |-
58065859
The list stream visualization displays a table of recent events in your application that

docs/datadog_api_client.v1.model.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1810,6 +1810,20 @@ datadog\_api\_client.v1.model.list\_stream\_group\_by\_items module
18101810
:members:
18111811
:show-inheritance:
18121812

1813+
datadog\_api\_client.v1.model.list\_stream\_issue\_persona module
1814+
-----------------------------------------------------------------
1815+
1816+
.. automodule:: datadog_api_client.v1.model.list_stream_issue_persona
1817+
:members:
1818+
:show-inheritance:
1819+
1820+
datadog\_api\_client.v1.model.list\_stream\_issue\_state module
1821+
---------------------------------------------------------------
1822+
1823+
.. automodule:: datadog_api_client.v1.model.list_stream_issue_state
1824+
:members:
1825+
:show-inheritance:
1826+
18131827
datadog\_api\_client.v1.model.list\_stream\_query module
18141828
--------------------------------------------------------
18151829

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
7+
from datadog_api_client.model_utils import (
8+
ModelSimple,
9+
cached_property,
10+
)
11+
12+
from typing import ClassVar
13+
14+
15+
class ListStreamIssuePersona(ModelSimple):
16+
"""
17+
Persona filter for the `issue_stream` data source.
18+
19+
:param value: Must be one of ["all", "browser", "mobile", "backend"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"all",
25+
"browser",
26+
"mobile",
27+
"backend",
28+
}
29+
ALL: ClassVar["ListStreamIssuePersona"]
30+
BROWSER: ClassVar["ListStreamIssuePersona"]
31+
MOBILE: ClassVar["ListStreamIssuePersona"]
32+
BACKEND: ClassVar["ListStreamIssuePersona"]
33+
34+
@cached_property
35+
def openapi_types(_):
36+
return {
37+
"value": (str,),
38+
}
39+
40+
41+
ListStreamIssuePersona.ALL = ListStreamIssuePersona("all")
42+
ListStreamIssuePersona.BROWSER = ListStreamIssuePersona("browser")
43+
ListStreamIssuePersona.MOBILE = ListStreamIssuePersona("mobile")
44+
ListStreamIssuePersona.BACKEND = ListStreamIssuePersona("backend")
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
7+
from datadog_api_client.model_utils import (
8+
ModelSimple,
9+
cached_property,
10+
)
11+
12+
from typing import ClassVar
13+
14+
15+
class ListStreamIssueState(ModelSimple):
16+
"""
17+
Issue state filter for the `issue_stream` data source.
18+
19+
:param value: Must be one of ["OPEN", "IGNORED", "ACKNOWLEDGED", "RESOLVED"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"OPEN",
25+
"IGNORED",
26+
"ACKNOWLEDGED",
27+
"RESOLVED",
28+
}
29+
OPEN: ClassVar["ListStreamIssueState"]
30+
IGNORED: ClassVar["ListStreamIssueState"]
31+
ACKNOWLEDGED: ClassVar["ListStreamIssueState"]
32+
RESOLVED: ClassVar["ListStreamIssueState"]
33+
34+
@cached_property
35+
def openapi_types(_):
36+
return {
37+
"value": (str,),
38+
}
39+
40+
41+
ListStreamIssueState.OPEN = ListStreamIssueState("OPEN")
42+
ListStreamIssueState.IGNORED = ListStreamIssueState("IGNORED")
43+
ListStreamIssueState.ACKNOWLEDGED = ListStreamIssueState("ACKNOWLEDGED")
44+
ListStreamIssueState.RESOLVED = ListStreamIssueState("RESOLVED")

src/datadog_api_client/v1/model/list_stream_query.py

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
from datadog_api_client.v1.model.list_stream_source import ListStreamSource
1919
from datadog_api_client.v1.model.widget_event_size import WidgetEventSize
2020
from datadog_api_client.v1.model.list_stream_group_by_items import ListStreamGroupByItems
21+
from datadog_api_client.v1.model.list_stream_issue_persona import ListStreamIssuePersona
2122
from datadog_api_client.v1.model.widget_field_sort import WidgetFieldSort
23+
from datadog_api_client.v1.model.list_stream_issue_state import ListStreamIssueState
2224

2325

2426
class ListStreamQuery(ModelNormal):
@@ -38,55 +40,75 @@ def openapi_types(_):
3840
from datadog_api_client.v1.model.list_stream_source import ListStreamSource
3941
from datadog_api_client.v1.model.widget_event_size import WidgetEventSize
4042
from datadog_api_client.v1.model.list_stream_group_by_items import ListStreamGroupByItems
43+
from datadog_api_client.v1.model.list_stream_issue_persona import ListStreamIssuePersona
4144
from datadog_api_client.v1.model.widget_field_sort import WidgetFieldSort
45+
from datadog_api_client.v1.model.list_stream_issue_state import ListStreamIssueState
4246

4347
return {
48+
"assignee_uuids": ([str],),
4449
"clustering_pattern_field_path": (str,),
4550
"compute": ([ListStreamComputeItems],),
4651
"data_source": (ListStreamSource,),
4752
"event_size": (WidgetEventSize,),
4853
"group_by": ([ListStreamGroupByItems],),
4954
"indexes": ([str],),
55+
"persona": (ListStreamIssuePersona,),
5056
"query_string": (str,),
5157
"sort": (WidgetFieldSort,),
58+
"states": ([ListStreamIssueState],),
5259
"storage": (str,),
60+
"suspected_causes": ([str],),
61+
"team_handles": ([str],),
5362
}
5463

5564
attribute_map = {
65+
"assignee_uuids": "assignee_uuids",
5666
"clustering_pattern_field_path": "clustering_pattern_field_path",
5767
"compute": "compute",
5868
"data_source": "data_source",
5969
"event_size": "event_size",
6070
"group_by": "group_by",
6171
"indexes": "indexes",
72+
"persona": "persona",
6273
"query_string": "query_string",
6374
"sort": "sort",
75+
"states": "states",
6476
"storage": "storage",
77+
"suspected_causes": "suspected_causes",
78+
"team_handles": "team_handles",
6579
}
6680

6781
def __init__(
6882
self_,
6983
data_source: ListStreamSource,
7084
query_string: str,
85+
assignee_uuids: Union[List[str], UnsetType] = unset,
7186
clustering_pattern_field_path: Union[str, UnsetType] = unset,
7287
compute: Union[List[ListStreamComputeItems], UnsetType] = unset,
7388
event_size: Union[WidgetEventSize, UnsetType] = unset,
7489
group_by: Union[List[ListStreamGroupByItems], UnsetType] = unset,
7590
indexes: Union[List[str], UnsetType] = unset,
91+
persona: Union[ListStreamIssuePersona, UnsetType] = unset,
7692
sort: Union[WidgetFieldSort, UnsetType] = unset,
93+
states: Union[List[ListStreamIssueState], UnsetType] = unset,
7794
storage: Union[str, UnsetType] = unset,
95+
suspected_causes: Union[List[str], UnsetType] = unset,
96+
team_handles: Union[List[str], UnsetType] = unset,
7897
**kwargs,
7998
):
8099
"""
81100
Updated list stream widget.
82101
102+
:param assignee_uuids: Filter by assignee UUIDs. Usable only with ``issue_stream``.
103+
:type assignee_uuids: [str], optional
104+
83105
:param clustering_pattern_field_path: Specifies the field for logs pattern clustering. Usable only with logs_pattern_stream.
84106
:type clustering_pattern_field_path: str, optional
85107
86108
: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.
87109
:type compute: [ListStreamComputeItems], optional
88110
89-
:param data_source: Source from which to query items to display in the stream.
111+
: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.
90112
:type data_source: ListStreamSource
91113
92114
:param event_size: Size to use to display an event.
@@ -98,15 +120,29 @@ def __init__(
98120
:param indexes: List of indexes.
99121
:type indexes: [str], optional
100122
123+
:param persona: Persona filter for the ``issue_stream`` data source.
124+
:type persona: ListStreamIssuePersona, optional
125+
101126
:param query_string: Widget query.
102127
:type query_string: str
103128
104129
:param sort: Which column and order to sort by
105130
:type sort: WidgetFieldSort, optional
106131
132+
:param states: Filter by issue states. Usable only with ``issue_stream``.
133+
:type states: [ListStreamIssueState], optional
134+
107135
:param storage: Option for storage location. Feature in Private Beta.
108136
:type storage: str, optional
137+
138+
:param suspected_causes: Filter by suspected causes. Usable only with ``issue_stream``.
139+
:type suspected_causes: [str], optional
140+
141+
:param team_handles: Filter by team handles. Usable only with ``issue_stream``.
142+
:type team_handles: [str], optional
109143
"""
144+
if assignee_uuids is not unset:
145+
kwargs["assignee_uuids"] = assignee_uuids
110146
if clustering_pattern_field_path is not unset:
111147
kwargs["clustering_pattern_field_path"] = clustering_pattern_field_path
112148
if compute is not unset:
@@ -117,10 +153,18 @@ def __init__(
117153
kwargs["group_by"] = group_by
118154
if indexes is not unset:
119155
kwargs["indexes"] = indexes
156+
if persona is not unset:
157+
kwargs["persona"] = persona
120158
if sort is not unset:
121159
kwargs["sort"] = sort
160+
if states is not unset:
161+
kwargs["states"] = states
122162
if storage is not unset:
123163
kwargs["storage"] = storage
164+
if suspected_causes is not unset:
165+
kwargs["suspected_causes"] = suspected_causes
166+
if team_handles is not unset:
167+
kwargs["team_handles"] = team_handles
124168
super().__init__(kwargs)
125169

126170
self_.data_source = data_source

src/datadog_api_client/v1/model/list_stream_source.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
class ListStreamSource(ModelSimple):
1616
"""
17-
Source from which to query items to display in the stream.
17+
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.
1818
19-
: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"].
19+
: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"].
2020
:type value: str
2121
"""
2222

@@ -34,6 +34,7 @@ class ListStreamSource(ModelSimple):
3434
"event_stream",
3535
"rum_stream",
3636
"llm_observability_stream",
37+
"issue_stream",
3738
}
3839
LOGS_STREAM: ClassVar["ListStreamSource"]
3940
AUDIT_STREAM: ClassVar["ListStreamSource"]
@@ -48,6 +49,7 @@ class ListStreamSource(ModelSimple):
4849
EVENT_STREAM: ClassVar["ListStreamSource"]
4950
RUM_STREAM: ClassVar["ListStreamSource"]
5051
LLM_OBSERVABILITY_STREAM: ClassVar["ListStreamSource"]
52+
ISSUE_STREAM: ClassVar["ListStreamSource"]
5153

5254
@cached_property
5355
def openapi_types(_):
@@ -69,3 +71,4 @@ def openapi_types(_):
6971
ListStreamSource.EVENT_STREAM = ListStreamSource("event_stream")
7072
ListStreamSource.RUM_STREAM = ListStreamSource("rum_stream")
7173
ListStreamSource.LLM_OBSERVABILITY_STREAM = ListStreamSource("llm_observability_stream")
74+
ListStreamSource.ISSUE_STREAM = ListStreamSource("issue_stream")

0 commit comments

Comments
 (0)