Skip to content

Commit 29fb29b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c20b89c of spec repo
1 parent bd76ff3 commit 29fb29b

3 files changed

Lines changed: 77 additions & 4 deletions

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5991,6 +5991,10 @@ components:
59915991
type: array
59925992
data_source:
59935993
$ref: "#/components/schemas/ListStreamSource"
5994+
env:
5995+
description: Filter by APM environment. Usable only with `apm_recommendations_stream`.
5996+
example: "staging"
5997+
type: string
59945998
event_size:
59955999
$ref: "#/components/schemas/WidgetEventSize"
59966000
group_by:
@@ -6011,13 +6015,31 @@ components:
60116015
description: Widget query.
60126016
example: "@service:app"
60136017
type: string
6018+
recommendation_types:
6019+
description: Filter by recommendation types. Usable only with `apm_recommendations_stream`.
6020+
items:
6021+
description: Recommendation type.
6022+
type: string
6023+
type: array
6024+
services:
6025+
description: Filter by service names. Usable only with `apm_recommendations_stream`.
6026+
items:
6027+
description: Service name.
6028+
type: string
6029+
type: array
60146030
sort:
60156031
$ref: "#/components/schemas/WidgetFieldSort"
60166032
states:
60176033
description: Filter by issue states. Usable only with `issue_stream`.
60186034
items:
60196035
$ref: "#/components/schemas/ListStreamIssueState"
60206036
type: array
6037+
statuses:
6038+
description: Filter by recommendation statuses. Usable only with `apm_recommendations_stream`.
6039+
items:
6040+
description: Recommendation status.
6041+
type: string
6042+
type: array
60216043
storage:
60226044
description: Option for storage location. Feature in Private Beta.
60236045
example: "indexes"
@@ -6034,6 +6056,12 @@ components:
60346056
description: Team handle.
60356057
type: string
60366058
type: array
6059+
teams:
6060+
description: Filter by team handles. Usable only with `apm_recommendations_stream`.
6061+
items:
6062+
description: Team handle.
6063+
type: string
6064+
type: array
60376065
version:
60386066
$ref: "#/components/schemas/ListStreamQueryVersion"
60396067
required:
@@ -6059,7 +6087,7 @@ components:
60596087
- EVENT_LIST
60606088
ListStreamSource:
60616089
default: logs_stream
6062-
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.
6090+
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. apm_recommendations_stream is used to query APM recommendations, and supports filtering by environment, services, teams, recommendation types, and status.
60636091
enum:
60646092
- logs_stream
60656093
- audit_stream
@@ -6078,6 +6106,7 @@ components:
60786106
- security_runtime_stream
60796107
- security_signals_stream
60806108
- incidents_stream
6109+
- apm_recommendations_stream
60816110
example: logs_stream
60826111
type: string
60836112
x-enum-varnames:
@@ -6098,6 +6127,7 @@ components:
60986127
- SECURITY_RUNTIME_STREAM
60996128
- SECURITY_SIGNALS_STREAM
61006129
- INCIDENTS_STREAM
6130+
- APM_RECOMMENDATIONS_STREAM
61016131
ListStreamWidgetDefinition:
61026132
description: |-
61036133
The list stream visualization displays a table of recent events in your application that

src/datadog_api_client/v1/model/list_stream_query.py

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,21 @@ def openapi_types(_):
5151
"clustering_pattern_field_path": (str,),
5252
"compute": ([ListStreamComputeItems],),
5353
"data_source": (ListStreamSource,),
54+
"env": (str,),
5455
"event_size": (WidgetEventSize,),
5556
"group_by": ([ListStreamGroupByItems],),
5657
"indexes": ([str],),
5758
"persona": (ListStreamIssuePersona,),
5859
"query_string": (str,),
60+
"recommendation_types": ([str],),
61+
"services": ([str],),
5962
"sort": (WidgetFieldSort,),
6063
"states": ([ListStreamIssueState],),
64+
"statuses": ([str],),
6165
"storage": (str,),
6266
"suspected_causes": ([str],),
6367
"team_handles": ([str],),
68+
"teams": ([str],),
6469
"version": (ListStreamQueryVersion,),
6570
}
6671

@@ -69,16 +74,21 @@ def openapi_types(_):
6974
"clustering_pattern_field_path": "clustering_pattern_field_path",
7075
"compute": "compute",
7176
"data_source": "data_source",
77+
"env": "env",
7278
"event_size": "event_size",
7379
"group_by": "group_by",
7480
"indexes": "indexes",
7581
"persona": "persona",
7682
"query_string": "query_string",
83+
"recommendation_types": "recommendation_types",
84+
"services": "services",
7785
"sort": "sort",
7886
"states": "states",
87+
"statuses": "statuses",
7988
"storage": "storage",
8089
"suspected_causes": "suspected_causes",
8190
"team_handles": "team_handles",
91+
"teams": "teams",
8292
"version": "version",
8393
}
8494

@@ -89,15 +99,20 @@ def __init__(
8999
assignee_uuids: Union[List[str], UnsetType] = unset,
90100
clustering_pattern_field_path: Union[str, UnsetType] = unset,
91101
compute: Union[List[ListStreamComputeItems], UnsetType] = unset,
102+
env: Union[str, UnsetType] = unset,
92103
event_size: Union[WidgetEventSize, UnsetType] = unset,
93104
group_by: Union[List[ListStreamGroupByItems], UnsetType] = unset,
94105
indexes: Union[List[str], UnsetType] = unset,
95106
persona: Union[ListStreamIssuePersona, UnsetType] = unset,
107+
recommendation_types: Union[List[str], UnsetType] = unset,
108+
services: Union[List[str], UnsetType] = unset,
96109
sort: Union[WidgetFieldSort, UnsetType] = unset,
97110
states: Union[List[ListStreamIssueState], UnsetType] = unset,
111+
statuses: Union[List[str], UnsetType] = unset,
98112
storage: Union[str, UnsetType] = unset,
99113
suspected_causes: Union[List[str], UnsetType] = unset,
100114
team_handles: Union[List[str], UnsetType] = unset,
115+
teams: Union[List[str], UnsetType] = unset,
101116
version: Union[ListStreamQueryVersion, UnsetType] = unset,
102117
**kwargs,
103118
):
@@ -113,9 +128,12 @@ def __init__(
113128
: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.
114129
:type compute: [ListStreamComputeItems], optional
115130
116-
: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.
131+
: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. apm_recommendations_stream is used to query APM recommendations, and supports filtering by environment, services, teams, recommendation types, and status.
117132
:type data_source: ListStreamSource
118133
134+
:param env: Filter by APM environment. Usable only with ``apm_recommendations_stream``.
135+
:type env: str, optional
136+
119137
:param event_size: Size to use to display an event.
120138
:type event_size: WidgetEventSize, optional
121139
@@ -131,12 +149,21 @@ def __init__(
131149
:param query_string: Widget query.
132150
:type query_string: str
133151
152+
:param recommendation_types: Filter by recommendation types. Usable only with ``apm_recommendations_stream``.
153+
:type recommendation_types: [str], optional
154+
155+
:param services: Filter by service names. Usable only with ``apm_recommendations_stream``.
156+
:type services: [str], optional
157+
134158
:param sort: Which column and order to sort by
135159
:type sort: WidgetFieldSort, optional
136160
137161
:param states: Filter by issue states. Usable only with ``issue_stream``.
138162
:type states: [ListStreamIssueState], optional
139163
164+
:param statuses: Filter by recommendation statuses. Usable only with ``apm_recommendations_stream``.
165+
:type statuses: [str], optional
166+
140167
:param storage: Option for storage location. Feature in Private Beta.
141168
:type storage: str, optional
142169
@@ -146,6 +173,9 @@ def __init__(
146173
:param team_handles: Filter by team handles. Usable only with ``issue_stream``.
147174
:type team_handles: [str], optional
148175
176+
:param teams: Filter by team handles. Usable only with ``apm_recommendations_stream``.
177+
:type teams: [str], optional
178+
149179
:param version: Version of the query for the logs transaction stream widget. When omitted, v1 query behavior is
150180
preserved. Set to ``sequential_query`` to use v2 behavior. **This feature is in Preview.**
151181
:type version: ListStreamQueryVersion, optional
@@ -156,6 +186,8 @@ def __init__(
156186
kwargs["clustering_pattern_field_path"] = clustering_pattern_field_path
157187
if compute is not unset:
158188
kwargs["compute"] = compute
189+
if env is not unset:
190+
kwargs["env"] = env
159191
if event_size is not unset:
160192
kwargs["event_size"] = event_size
161193
if group_by is not unset:
@@ -164,16 +196,24 @@ def __init__(
164196
kwargs["indexes"] = indexes
165197
if persona is not unset:
166198
kwargs["persona"] = persona
199+
if recommendation_types is not unset:
200+
kwargs["recommendation_types"] = recommendation_types
201+
if services is not unset:
202+
kwargs["services"] = services
167203
if sort is not unset:
168204
kwargs["sort"] = sort
169205
if states is not unset:
170206
kwargs["states"] = states
207+
if statuses is not unset:
208+
kwargs["statuses"] = statuses
171209
if storage is not unset:
172210
kwargs["storage"] = storage
173211
if suspected_causes is not unset:
174212
kwargs["suspected_causes"] = suspected_causes
175213
if team_handles is not unset:
176214
kwargs["team_handles"] = team_handles
215+
if teams is not unset:
216+
kwargs["teams"] = teams
177217
if version is not unset:
178218
kwargs["version"] = version
179219
super().__init__(kwargs)

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. apm_issue_stream, rum_issue_stream, and logs_issue_stream are deprecated. Use issue_stream instead.
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. apm_recommendations_stream is used to query APM recommendations, and supports filtering by environment, services, teams, recommendation types, and status.
1818
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", "security_runtime_stream", "security_signals_stream", "incidents_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", "security_runtime_stream", "security_signals_stream", "incidents_stream", "apm_recommendations_stream"].
2020
:type value: str
2121
"""
2222

@@ -38,6 +38,7 @@ class ListStreamSource(ModelSimple):
3838
"security_runtime_stream",
3939
"security_signals_stream",
4040
"incidents_stream",
41+
"apm_recommendations_stream",
4142
}
4243
LOGS_STREAM: ClassVar["ListStreamSource"]
4344
AUDIT_STREAM: ClassVar["ListStreamSource"]
@@ -56,6 +57,7 @@ class ListStreamSource(ModelSimple):
5657
SECURITY_RUNTIME_STREAM: ClassVar["ListStreamSource"]
5758
SECURITY_SIGNALS_STREAM: ClassVar["ListStreamSource"]
5859
INCIDENTS_STREAM: ClassVar["ListStreamSource"]
60+
APM_RECOMMENDATIONS_STREAM: ClassVar["ListStreamSource"]
5961

6062
@cached_property
6163
def openapi_types(_):
@@ -81,3 +83,4 @@ def openapi_types(_):
8183
ListStreamSource.SECURITY_RUNTIME_STREAM = ListStreamSource("security_runtime_stream")
8284
ListStreamSource.SECURITY_SIGNALS_STREAM = ListStreamSource("security_signals_stream")
8385
ListStreamSource.INCIDENTS_STREAM = ListStreamSource("incidents_stream")
86+
ListStreamSource.APM_RECOMMENDATIONS_STREAM = ListStreamSource("apm_recommendations_stream")

0 commit comments

Comments
 (0)