Skip to content
Merged
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
59 changes: 56 additions & 3 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
14 changes: 14 additions & 0 deletions docs/datadog_api_client.v1.model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------------------------------------------------------

Expand Down
44 changes: 44 additions & 0 deletions src/datadog_api_client/v1/model/list_stream_issue_persona.py
Original file line number Diff line number Diff line change
@@ -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")
44 changes: 44 additions & 0 deletions src/datadog_api_client/v1/model/list_stream_issue_state.py
Original file line number Diff line number Diff line change
@@ -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")
46 changes: 45 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 @@ -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):
Expand All @@ -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.
Expand All @@ -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:
Expand All @@ -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
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.
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
"""

Expand All @@ -34,6 +34,7 @@ class ListStreamSource(ModelSimple):
"event_stream",
"rum_stream",
"llm_observability_stream",
"issue_stream",
}
LOGS_STREAM: ClassVar["ListStreamSource"]
AUDIT_STREAM: ClassVar["ListStreamSource"]
Expand All @@ -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(_):
Expand All @@ -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")
Loading
Loading