Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5991,6 +5991,10 @@ components:
type: array
data_source:
$ref: "#/components/schemas/ListStreamSource"
env:
description: Filter by APM environment. Usable only with `apm_recommendations_stream`.
example: "staging"
type: string
event_size:
$ref: "#/components/schemas/WidgetEventSize"
group_by:
Expand All @@ -6011,13 +6015,31 @@ components:
description: Widget query.
example: "@service:app"
type: string
recommendation_types:
description: Filter by recommendation types. Usable only with `apm_recommendations_stream`.
items:
description: Recommendation type.
type: string
type: array
services:
description: Filter by service names. Usable only with `apm_recommendations_stream`.
items:
description: Service name.
type: string
type: array
sort:
$ref: "#/components/schemas/WidgetFieldSort"
states:
description: Filter by issue states. Usable only with `issue_stream`.
items:
$ref: "#/components/schemas/ListStreamIssueState"
type: array
statuses:
description: Filter by recommendation statuses. Usable only with `apm_recommendations_stream`.
items:
description: Recommendation status.
type: string
type: array
storage:
description: Option for storage location. Feature in Private Beta.
example: "indexes"
Expand All @@ -6034,6 +6056,12 @@ components:
description: Team handle.
type: string
type: array
teams:
description: Filter by team handles. Usable only with `apm_recommendations_stream`.
items:
description: Team handle.
type: string
type: array
version:
$ref: "#/components/schemas/ListStreamQueryVersion"
required:
Expand All @@ -6059,7 +6087,7 @@ components:
- EVENT_LIST
ListStreamSource:
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.
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.
enum:
- logs_stream
- audit_stream
Expand All @@ -6078,6 +6106,7 @@ components:
- security_runtime_stream
- security_signals_stream
- incidents_stream
- apm_recommendations_stream
example: logs_stream
type: string
x-enum-varnames:
Expand All @@ -6098,6 +6127,7 @@ components:
- SECURITY_RUNTIME_STREAM
- SECURITY_SIGNALS_STREAM
- INCIDENTS_STREAM
- APM_RECOMMENDATIONS_STREAM
ListStreamWidgetDefinition:
description: |-
The list stream visualization displays a table of recent events in your application that
Expand Down
42 changes: 41 additions & 1 deletion src/datadog_api_client/v1/model/list_stream_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,21 @@ def openapi_types(_):
"clustering_pattern_field_path": (str,),
"compute": ([ListStreamComputeItems],),
"data_source": (ListStreamSource,),
"env": (str,),
"event_size": (WidgetEventSize,),
"group_by": ([ListStreamGroupByItems],),
"indexes": ([str],),
"persona": (ListStreamIssuePersona,),
"query_string": (str,),
"recommendation_types": ([str],),
"services": ([str],),
"sort": (WidgetFieldSort,),
"states": ([ListStreamIssueState],),
"statuses": ([str],),
"storage": (str,),
"suspected_causes": ([str],),
"team_handles": ([str],),
"teams": ([str],),
"version": (ListStreamQueryVersion,),
}

Expand All @@ -69,16 +74,21 @@ def openapi_types(_):
"clustering_pattern_field_path": "clustering_pattern_field_path",
"compute": "compute",
"data_source": "data_source",
"env": "env",
"event_size": "event_size",
"group_by": "group_by",
"indexes": "indexes",
"persona": "persona",
"query_string": "query_string",
"recommendation_types": "recommendation_types",
"services": "services",
"sort": "sort",
"states": "states",
"statuses": "statuses",
"storage": "storage",
"suspected_causes": "suspected_causes",
"team_handles": "team_handles",
"teams": "teams",
"version": "version",
}

Expand All @@ -89,15 +99,20 @@ def __init__(
assignee_uuids: Union[List[str], UnsetType] = unset,
clustering_pattern_field_path: Union[str, UnsetType] = unset,
compute: Union[List[ListStreamComputeItems], UnsetType] = unset,
env: Union[str, 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,
recommendation_types: Union[List[str], UnsetType] = unset,
services: Union[List[str], UnsetType] = unset,
sort: Union[WidgetFieldSort, UnsetType] = unset,
states: Union[List[ListStreamIssueState], UnsetType] = unset,
statuses: Union[List[str], UnsetType] = unset,
storage: Union[str, UnsetType] = unset,
suspected_causes: Union[List[str], UnsetType] = unset,
team_handles: Union[List[str], UnsetType] = unset,
teams: Union[List[str], UnsetType] = unset,
version: Union[ListStreamQueryVersion, UnsetType] = unset,
**kwargs,
):
Expand All @@ -113,9 +128,12 @@ def __init__(
: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. apm_issue_stream, rum_issue_stream, and logs_issue_stream are deprecated. Use issue_stream instead.
: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.
:type data_source: ListStreamSource

:param env: Filter by APM environment. Usable only with ``apm_recommendations_stream``.
:type env: str, optional

:param event_size: Size to use to display an event.
:type event_size: WidgetEventSize, optional

Expand All @@ -131,12 +149,21 @@ def __init__(
:param query_string: Widget query.
:type query_string: str

:param recommendation_types: Filter by recommendation types. Usable only with ``apm_recommendations_stream``.
:type recommendation_types: [str], optional

:param services: Filter by service names. Usable only with ``apm_recommendations_stream``.
:type services: [str], optional

: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 statuses: Filter by recommendation statuses. Usable only with ``apm_recommendations_stream``.
:type statuses: [str], optional

:param storage: Option for storage location. Feature in Private Beta.
:type storage: str, optional

Expand All @@ -146,6 +173,9 @@ def __init__(
:param team_handles: Filter by team handles. Usable only with ``issue_stream``.
:type team_handles: [str], optional

:param teams: Filter by team handles. Usable only with ``apm_recommendations_stream``.
:type teams: [str], optional

:param version: Version of the query for the logs transaction stream widget. When omitted, v1 query behavior is
preserved. Set to ``sequential_query`` to use v2 behavior. **This feature is in Preview.**
:type version: ListStreamQueryVersion, optional
Expand All @@ -156,6 +186,8 @@ def __init__(
kwargs["clustering_pattern_field_path"] = clustering_pattern_field_path
if compute is not unset:
kwargs["compute"] = compute
if env is not unset:
kwargs["env"] = env
if event_size is not unset:
kwargs["event_size"] = event_size
if group_by is not unset:
Expand All @@ -164,16 +196,24 @@ def __init__(
kwargs["indexes"] = indexes
if persona is not unset:
kwargs["persona"] = persona
if recommendation_types is not unset:
kwargs["recommendation_types"] = recommendation_types
if services is not unset:
kwargs["services"] = services
if sort is not unset:
kwargs["sort"] = sort
if states is not unset:
kwargs["states"] = states
if statuses is not unset:
kwargs["statuses"] = statuses
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
if teams is not unset:
kwargs["teams"] = teams
if version is not unset:
kwargs["version"] = version
super().__init__(kwargs)
Expand Down
7 changes: 5 additions & 2 deletions src/datadog_api_client/v1/model/list_stream_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

class ListStreamSource(ModelSimple):
"""
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.
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.

: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"].
: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"].
:type value: str
"""

Expand All @@ -38,6 +38,7 @@ class ListStreamSource(ModelSimple):
"security_runtime_stream",
"security_signals_stream",
"incidents_stream",
"apm_recommendations_stream",
}
LOGS_STREAM: ClassVar["ListStreamSource"]
AUDIT_STREAM: ClassVar["ListStreamSource"]
Expand All @@ -56,6 +57,7 @@ class ListStreamSource(ModelSimple):
SECURITY_RUNTIME_STREAM: ClassVar["ListStreamSource"]
SECURITY_SIGNALS_STREAM: ClassVar["ListStreamSource"]
INCIDENTS_STREAM: ClassVar["ListStreamSource"]
APM_RECOMMENDATIONS_STREAM: ClassVar["ListStreamSource"]

@cached_property
def openapi_types(_):
Expand All @@ -81,3 +83,4 @@ def openapi_types(_):
ListStreamSource.SECURITY_RUNTIME_STREAM = ListStreamSource("security_runtime_stream")
ListStreamSource.SECURITY_SIGNALS_STREAM = ListStreamSource("security_signals_stream")
ListStreamSource.INCIDENTS_STREAM = ListStreamSource("incidents_stream")
ListStreamSource.APM_RECOMMENDATIONS_STREAM = ListStreamSource("apm_recommendations_stream")
Loading