From 33fe02d1ea4f5ba8b5d254fc529ed94c3089153d Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 11 Mar 2026 17:18:42 +0000 Subject: [PATCH] Regenerate client from commit 6dd07eb of spec repo --- .generator/schemas/v2/openapi.yaml | 134 +++++++++++++++++- .../ValidatePipeline_884022323.py | 84 ----------- ...rvability_pipeline_opentelemetry_source.py | 2 +- src/datadog_api_client/v2/model/playlist.py | 4 +- .../v2/model/playlist_array.py | 4 +- .../v2/model/playlist_data.py | 6 +- .../v2/model/playlist_data_attributes.py | 14 +- .../playlist_data_attributes_created_by.py | 12 +- .../v2/model/playlists_session.py | 4 +- .../v2/model/playlists_session_array.py | 4 +- .../v2/model/playlists_session_data.py | 6 +- .../playlists_session_data_attributes.py | 6 +- .../v2/model/session_id_array.py | 4 +- .../v2/model/session_id_data.py | 4 +- src/datadog_api_client/v2/model/snapshot.py | 4 +- .../v2/model/snapshot_array.py | 4 +- .../v2/model/snapshot_create_request.py | 4 +- .../v2/model/snapshot_create_request_data.py | 4 +- ...snapshot_create_request_data_attributes.py | 20 +-- .../v2/model/snapshot_data.py | 6 +- .../v2/model/snapshot_data_attributes.py | 32 ++--- .../v2/model/snapshot_update_request.py | 4 +- .../v2/model/snapshot_update_request_data.py | 6 +- ...snapshot_update_request_data_attributes.py | 12 +- .../model/viewership_history_session_array.py | 4 +- .../model/viewership_history_session_data.py | 6 +- ...wership_history_session_data_attributes.py | 10 +- src/datadog_api_client/v2/model/watch.py | 4 +- src/datadog_api_client/v2/model/watch_data.py | 6 +- .../v2/model/watch_data_attributes.py | 10 +- .../v2/model/watcher_array.py | 4 +- .../v2/model/watcher_data.py | 6 +- .../v2/model/watcher_data_attributes.py | 12 +- ...elemetry_source_returns_ok_response.frozen | 1 - ...ntelemetry_source_returns_ok_response.yaml | 23 --- .../features/observability_pipelines.feature | 8 -- 36 files changed, 246 insertions(+), 232 deletions(-) delete mode 100644 examples/v2/observability-pipelines/ValidatePipeline_884022323.py delete mode 100644 tests/v2/cassettes/test_scenarios/test_validate_a_metrics_pipeline_with_opentelemetry_source_returns_ok_response.frozen delete mode 100644 tests/v2/cassettes/test_scenarios/test_validate_a_metrics_pipeline_with_opentelemetry_source_returns_ok_response.yaml diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 3bec741a12..f14b1e8e65 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -44821,7 +44821,7 @@ components: Protocol (OTLP) over gRPC and HTTP. - **Supported pipeline types:** logs, metrics' + **Supported pipeline types:** logs' properties: grpc_address_key: description: Environment variable name containing the gRPC server address @@ -44851,7 +44851,6 @@ components: type: object x-pipeline-types: - logs - - metrics ObservabilityPipelineOpentelemetrySourceType: default: opentelemetry description: The source type. The value should always be `opentelemetry`. @@ -49127,6 +49126,8 @@ components: x-enum-varnames: - PERMISSIONS Playlist: + description: A single RUM replay playlist resource returned by create, update, + or get operations. properties: data: $ref: '#/components/schemas/PlaylistData' @@ -49134,8 +49135,10 @@ components: - data type: object PlaylistArray: + description: A list of RUM replay playlists returned by a list operation. properties: data: + description: Array of playlist data objects. items: $ref: '#/components/schemas/PlaylistData' type: array @@ -49143,10 +49146,13 @@ components: - data type: object PlaylistData: + description: Data object representing a RUM replay playlist, including its identifier, + type, and attributes. properties: attributes: $ref: '#/components/schemas/PlaylistDataAttributes' id: + description: Unique identifier of the playlist. type: string type: $ref: '#/components/schemas/PlaylistDataType' @@ -49154,39 +49160,53 @@ components: - type type: object PlaylistDataAttributes: + description: Attributes of a RUM replay playlist, including its name, description, + session count, and audit timestamps. properties: created_at: + description: Timestamp when the playlist was created. format: date-time type: string created_by: $ref: '#/components/schemas/PlaylistDataAttributesCreatedBy' description: + description: Optional human-readable description of the playlist's purpose + or contents. type: string name: + description: Human-readable name of the playlist. example: My Playlist type: string session_count: + description: Number of replay sessions currently in the playlist. format: int64 type: integer updated_at: + description: Timestamp when the playlist was last updated. format: date-time type: string required: - name type: object PlaylistDataAttributesCreatedBy: + description: Information about the user who created the playlist. properties: handle: + description: Email handle of the user who created the playlist. example: john.doe@example.com type: string icon: + description: URL or identifier of the user's avatar icon. type: string id: + description: Unique identifier of the user who created the playlist. example: 00000000-0000-0000-0000-000000000001 type: string name: + description: Display name of the user who created the playlist. type: string uuid: + description: UUID of the user who created the playlist. example: 00000000-0000-0000-0000-000000000001 type: string required: @@ -49204,6 +49224,8 @@ components: x-enum-varnames: - RUM_REPLAY_PLAYLIST PlaylistsSession: + description: A single RUM replay session resource as it appears within a playlist + context. properties: data: $ref: '#/components/schemas/PlaylistsSessionData' @@ -49211,8 +49233,10 @@ components: - data type: object PlaylistsSessionArray: + description: A list of RUM replay sessions belonging to a playlist. properties: data: + description: Array of playlist session data objects. items: $ref: '#/components/schemas/PlaylistsSessionData' type: array @@ -49220,10 +49244,13 @@ components: - data type: object PlaylistsSessionData: + description: Data object representing a session within a playlist, including + its identifier, type, and attributes. properties: attributes: $ref: '#/components/schemas/PlaylistsSessionDataAttributes' id: + description: Unique identifier of the RUM replay session. type: string type: $ref: '#/components/schemas/ViewershipHistorySessionDataType' @@ -49231,11 +49258,16 @@ components: - type type: object PlaylistsSessionDataAttributes: + description: Attributes of a session within a playlist, including the session + event data and its replay track. properties: session_event: additionalProperties: {} + description: Raw event data associated with the replay session. type: object track: + description: Replay track identifier indicating which recording track the + session belongs to. type: string type: object PostmortemAttachmentRequest: @@ -62932,8 +62964,11 @@ components: - data type: object SessionIdArray: + description: A collection of session identifiers used for bulk add or remove + operations on a playlist. properties: data: + description: Array of session identifier data objects. items: $ref: '#/components/schemas/SessionIdData' type: array @@ -62941,8 +62976,10 @@ components: - data type: object SessionIdData: + description: A session identifier data object used for bulk playlist operations. properties: id: + description: Unique identifier of the RUM replay session. example: 00000000-0000-0000-0000-000000000001 type: string type: @@ -63461,13 +63498,17 @@ components: x-enum-varnames: - SLO_STATUS Snapshot: + description: A single heatmap snapshot resource returned by create or update + operations. properties: data: $ref: '#/components/schemas/SnapshotData' type: object SnapshotArray: + description: A list of heatmap snapshots returned by a list operation. properties: data: + description: Array of heatmap snapshot data objects. items: $ref: '#/components/schemas/SnapshotData' type: array @@ -63475,6 +63516,7 @@ components: - data type: object SnapshotCreateRequest: + description: Request body for creating a heatmap snapshot. properties: data: $ref: '#/components/schemas/SnapshotCreateRequestData' @@ -63482,6 +63524,8 @@ components: - data type: object SnapshotCreateRequestData: + description: Data object for a heatmap snapshot creation request, containing + the resource type and attributes. properties: attributes: $ref: '#/components/schemas/SnapshotCreateRequestDataAttributes' @@ -63491,31 +63535,45 @@ components: - type type: object SnapshotCreateRequestDataAttributes: + description: Attributes for creating a heatmap snapshot, including the view, + session, event, and device context. properties: application_id: + description: Unique identifier of the RUM application. example: aaaaaaaa-1111-2222-3333-bbbbbbbbbbbb type: string device_type: + description: Device type used when capturing the snapshot (e.g., desktop, + mobile, tablet). example: desktop type: string event_id: + description: Unique identifier of the RUM event associated with the snapshot. example: 11111111-2222-3333-4444-555555555555 type: string is_device_type_selected_by_user: + description: Indicates whether the device type was explicitly selected by + the user rather than auto-detected. example: false type: boolean session_id: + description: Unique identifier of the RUM session associated with the snapshot. type: string snapshot_name: + description: Human-readable name for the snapshot. example: My Snapshot type: string start: + description: Offset in milliseconds from the start of the session at which + the snapshot was captured. example: 0 format: int64 type: integer view_id: + description: Unique identifier of the RUM view associated with the snapshot. type: string view_name: + description: URL path or name of the view where the snapshot was captured. example: /home type: string required: @@ -63528,10 +63586,13 @@ components: - is_device_type_selected_by_user type: object SnapshotData: + description: Data object representing a heatmap snapshot, including its identifier, + type, and attributes. properties: attributes: $ref: '#/components/schemas/SnapshotDataAttributes' id: + description: Unique identifier of the heatmap snapshot. readOnly: true type: string type: @@ -63540,50 +63601,71 @@ components: - type type: object SnapshotDataAttributes: + description: Attributes of a heatmap snapshot, including view context, device + information, and audit metadata. properties: application_id: + description: Unique identifier of the RUM application. type: string created_at: + description: Timestamp when the snapshot was created. format: date-time readOnly: true type: string created_by: + description: Display name of the user who created the snapshot. readOnly: true type: string created_by_handle: + description: Email handle of the user who created the snapshot. readOnly: true type: string created_by_user_id: + description: Numeric identifier of the user who created the snapshot. format: int64 readOnly: true type: integer device_type: + description: Device type used when capturing the snapshot (e.g., desktop, + mobile, tablet). type: string event_id: + description: Unique identifier of the RUM event associated with the snapshot. type: string is_device_type_selected_by_user: + description: Indicates whether the device type was explicitly selected by + the user rather than auto-detected. type: boolean modified_at: + description: Timestamp when the snapshot was last modified. format: date-time readOnly: true type: string org_id: + description: Numeric identifier of the organization that owns the snapshot. format: int64 readOnly: true type: integer session_id: + description: Unique identifier of the RUM session associated with the snapshot. type: string snapshot_name: + description: Human-readable name for the snapshot. type: string start: + description: Offset in milliseconds from the start of the session at which + the snapshot was captured. format: int64 type: integer view_id: + description: Unique identifier of the RUM view associated with the snapshot. type: string view_name: + description: URL path or name of the view where the snapshot was captured. type: string type: object SnapshotUpdateRequest: + description: Request body for updating a heatmap snapshot. properties: data: $ref: '#/components/schemas/SnapshotUpdateRequestData' @@ -63591,10 +63673,13 @@ components: - data type: object SnapshotUpdateRequestData: + description: Data object for a heatmap snapshot update request, containing the + resource identifier, type, and attributes. properties: attributes: $ref: '#/components/schemas/SnapshotUpdateRequestDataAttributes' id: + description: Unique identifier of the heatmap snapshot to update. example: 00000000-0000-0000-0000-000000000001 type: string type: @@ -63603,20 +63688,29 @@ components: - type type: object SnapshotUpdateRequestDataAttributes: + description: Attributes for updating a heatmap snapshot, including event, session, + and view context. properties: event_id: + description: Unique identifier of the RUM event associated with the snapshot. example: 11111111-2222-3333-4444-555555555555 type: string is_device_type_selected_by_user: + description: Indicates whether the device type was explicitly selected by + the user rather than auto-detected. example: false type: boolean session_id: + description: Unique identifier of the RUM session associated with the snapshot. type: string start: + description: Offset in milliseconds from the start of the session at which + the snapshot was captured. example: 0 format: int64 type: integer view_id: + description: Unique identifier of the RUM view associated with the snapshot. type: string required: - event_id @@ -71641,8 +71735,10 @@ components: - UPDATE - DELETE ViewershipHistorySessionArray: + description: A list of RUM replay sessions from a user's viewership history. properties: data: + description: Array of viewership history session data objects. items: $ref: '#/components/schemas/ViewershipHistorySessionData' type: array @@ -71650,10 +71746,13 @@ components: - data type: object ViewershipHistorySessionData: + description: Data object representing a session in the viewership history, including + its identifier, type, and attributes. properties: attributes: $ref: '#/components/schemas/ViewershipHistorySessionDataAttributes' id: + description: Unique identifier of the RUM replay session. type: string type: $ref: '#/components/schemas/ViewershipHistorySessionDataType' @@ -71661,17 +71760,25 @@ components: - type type: object ViewershipHistorySessionDataAttributes: + description: Attributes of a viewership history session entry, capturing when + it was last watched and the associated event data. properties: event_id: + description: Unique identifier of the RUM event associated with the watched + session. type: string last_watched_at: + description: Timestamp when the session was last watched by the user. example: '2026-01-13T17:15:53.208340Z' format: date-time type: string session_event: additionalProperties: {} + description: Raw event data associated with the replay session. type: object track: + description: Replay track identifier indicating which recording track the + session belongs to. type: string required: - last_watched_at @@ -72174,6 +72281,7 @@ components: - X_PATH_INJECTION - XSS Watch: + description: A single RUM replay session watch resource returned by create operations. properties: data: $ref: '#/components/schemas/WatchData' @@ -72181,10 +72289,13 @@ components: - data type: object WatchData: + description: Data object representing a session watch record, including its + identifier, type, and attributes. properties: attributes: $ref: '#/components/schemas/WatchDataAttributes' id: + description: Unique identifier of the watch record. type: string type: $ref: '#/components/schemas/WatchDataType' @@ -72192,16 +72303,23 @@ components: - type type: object WatchDataAttributes: + description: Attributes for recording a session watch event, including the application, + event reference, and timestamp. properties: application_id: + description: Unique identifier of the RUM application containing the session. example: aaaaaaaa-1111-2222-3333-bbbbbbbbbbbb type: string data_source: + description: Data source type indicating the origin of the session data + (e.g., rum or product_analytics). type: string event_id: + description: Unique identifier of the RUM event that was watched. example: 11111111-2222-3333-4444-555555555555 type: string timestamp: + description: Timestamp when the session was watched. example: '2026-01-13T17:15:53.208340Z' format: date-time type: string @@ -72220,8 +72338,10 @@ components: x-enum-varnames: - RUM_REPLAY_WATCH WatcherArray: + description: A list of users who have watched a RUM replay session. properties: data: + description: Array of watcher data objects. items: $ref: '#/components/schemas/WatcherData' type: array @@ -72229,10 +72349,13 @@ components: - data type: object WatcherData: + description: Data object representing a session watcher, including their identifier, + type, and attributes. properties: attributes: $ref: '#/components/schemas/WatcherDataAttributes' id: + description: Unique identifier of the watcher user. type: string type: $ref: '#/components/schemas/WatcherDataType' @@ -72240,19 +72363,26 @@ components: - type type: object WatcherDataAttributes: + description: Attributes of a user who has watched a RUM replay session, including + contact information and watch statistics. properties: handle: + description: Email handle of the user who watched the session. example: john.doe@example.com type: string icon: + description: URL or identifier of the watcher's avatar icon. type: string last_watched_at: + description: Timestamp when the watcher last viewed the session. example: '2026-01-13T17:15:53.208340Z' format: date-time type: string name: + description: Display name of the user who watched the session. type: string watch_count: + description: Total number of times the user has watched the session. example: 0 format: int32 maximum: 2147483647 diff --git a/examples/v2/observability-pipelines/ValidatePipeline_884022323.py b/examples/v2/observability-pipelines/ValidatePipeline_884022323.py deleted file mode 100644 index fda04b4c53..0000000000 --- a/examples/v2/observability-pipelines/ValidatePipeline_884022323.py +++ /dev/null @@ -1,84 +0,0 @@ -""" -Validate a metrics pipeline with opentelemetry source returns "OK" response -""" - -from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.observability_pipelines_api import ObservabilityPipelinesApi -from datadog_api_client.v2.model.observability_pipeline_config import ObservabilityPipelineConfig -from datadog_api_client.v2.model.observability_pipeline_config_pipeline_type import ( - ObservabilityPipelineConfigPipelineType, -) -from datadog_api_client.v2.model.observability_pipeline_config_processor_group import ( - ObservabilityPipelineConfigProcessorGroup, -) -from datadog_api_client.v2.model.observability_pipeline_data_attributes import ObservabilityPipelineDataAttributes -from datadog_api_client.v2.model.observability_pipeline_datadog_metrics_destination import ( - ObservabilityPipelineDatadogMetricsDestination, -) -from datadog_api_client.v2.model.observability_pipeline_datadog_metrics_destination_type import ( - ObservabilityPipelineDatadogMetricsDestinationType, -) -from datadog_api_client.v2.model.observability_pipeline_filter_processor import ObservabilityPipelineFilterProcessor -from datadog_api_client.v2.model.observability_pipeline_filter_processor_type import ( - ObservabilityPipelineFilterProcessorType, -) -from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source import ( - ObservabilityPipelineOpentelemetrySource, -) -from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source_type import ( - ObservabilityPipelineOpentelemetrySourceType, -) -from datadog_api_client.v2.model.observability_pipeline_spec import ObservabilityPipelineSpec -from datadog_api_client.v2.model.observability_pipeline_spec_data import ObservabilityPipelineSpecData - -body = ObservabilityPipelineSpec( - data=ObservabilityPipelineSpecData( - attributes=ObservabilityPipelineDataAttributes( - config=ObservabilityPipelineConfig( - pipeline_type=ObservabilityPipelineConfigPipelineType.METRICS, - destinations=[ - ObservabilityPipelineDatadogMetricsDestination( - id="datadog-metrics-destination", - inputs=[ - "my-processor-group", - ], - type=ObservabilityPipelineDatadogMetricsDestinationType.DATADOG_METRICS, - ), - ], - processor_groups=[ - ObservabilityPipelineConfigProcessorGroup( - enabled=True, - id="my-processor-group", - include="*", - inputs=[ - "opentelemetry-source", - ], - processors=[ - ObservabilityPipelineFilterProcessor( - enabled=True, - id="filter-processor", - include="env:production", - type=ObservabilityPipelineFilterProcessorType.FILTER, - ), - ], - ), - ], - sources=[ - ObservabilityPipelineOpentelemetrySource( - id="opentelemetry-source", - type=ObservabilityPipelineOpentelemetrySourceType.OPENTELEMETRY, - ), - ], - ), - name="Metrics OTel Pipeline", - ), - type="pipelines", - ), -) - -configuration = Configuration() -with ApiClient(configuration) as api_client: - api_instance = ObservabilityPipelinesApi(api_client) - response = api_instance.validate_pipeline(body=body) - - print(response) diff --git a/src/datadog_api_client/v2/model/observability_pipeline_opentelemetry_source.py b/src/datadog_api_client/v2/model/observability_pipeline_opentelemetry_source.py index da09b968f1..ac6090dcd9 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_opentelemetry_source.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_opentelemetry_source.py @@ -56,7 +56,7 @@ def __init__( """ The ``opentelemetry`` source receives telemetry data using the OpenTelemetry Protocol (OTLP) over gRPC and HTTP. - **Supported pipeline types:** logs, metrics + **Supported pipeline types:** logs :param grpc_address_key: Environment variable name containing the gRPC server address for receiving OTLP data. Must be a valid environment variable name (alphanumeric characters and underscores only). :type grpc_address_key: str, optional diff --git a/src/datadog_api_client/v2/model/playlist.py b/src/datadog_api_client/v2/model/playlist.py index a4c64560eb..01e16a93c5 100644 --- a/src/datadog_api_client/v2/model/playlist.py +++ b/src/datadog_api_client/v2/model/playlist.py @@ -30,9 +30,9 @@ def openapi_types(_): def __init__(self_, data: PlaylistData, **kwargs): """ + A single RUM replay playlist resource returned by create, update, or get operations. - - :param data: + :param data: Data object representing a RUM replay playlist, including its identifier, type, and attributes. :type data: PlaylistData """ super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/playlist_array.py b/src/datadog_api_client/v2/model/playlist_array.py index 2978c22893..aefa4b9649 100644 --- a/src/datadog_api_client/v2/model/playlist_array.py +++ b/src/datadog_api_client/v2/model/playlist_array.py @@ -30,9 +30,9 @@ def openapi_types(_): def __init__(self_, data: List[PlaylistData], **kwargs): """ + A list of RUM replay playlists returned by a list operation. - - :param data: + :param data: Array of playlist data objects. :type data: [PlaylistData] """ super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/playlist_data.py b/src/datadog_api_client/v2/model/playlist_data.py index 86c3903b03..85f0a7e3ad 100644 --- a/src/datadog_api_client/v2/model/playlist_data.py +++ b/src/datadog_api_client/v2/model/playlist_data.py @@ -44,12 +44,12 @@ def __init__( **kwargs, ): """ + Data object representing a RUM replay playlist, including its identifier, type, and attributes. - - :param attributes: + :param attributes: Attributes of a RUM replay playlist, including its name, description, session count, and audit timestamps. :type attributes: PlaylistDataAttributes, optional - :param id: + :param id: Unique identifier of the playlist. :type id: str, optional :param type: Rum replay playlist resource type. diff --git a/src/datadog_api_client/v2/model/playlist_data_attributes.py b/src/datadog_api_client/v2/model/playlist_data_attributes.py index 2ab734b120..7c2d813b7b 100644 --- a/src/datadog_api_client/v2/model/playlist_data_attributes.py +++ b/src/datadog_api_client/v2/model/playlist_data_attributes.py @@ -52,24 +52,24 @@ def __init__( **kwargs, ): """ + Attributes of a RUM replay playlist, including its name, description, session count, and audit timestamps. - - :param created_at: + :param created_at: Timestamp when the playlist was created. :type created_at: datetime, optional - :param created_by: + :param created_by: Information about the user who created the playlist. :type created_by: PlaylistDataAttributesCreatedBy, optional - :param description: + :param description: Optional human-readable description of the playlist's purpose or contents. :type description: str, optional - :param name: + :param name: Human-readable name of the playlist. :type name: str - :param session_count: + :param session_count: Number of replay sessions currently in the playlist. :type session_count: int, optional - :param updated_at: + :param updated_at: Timestamp when the playlist was last updated. :type updated_at: datetime, optional """ if created_at is not unset: diff --git a/src/datadog_api_client/v2/model/playlist_data_attributes_created_by.py b/src/datadog_api_client/v2/model/playlist_data_attributes_created_by.py index 8e1501559a..86aa56cee6 100644 --- a/src/datadog_api_client/v2/model/playlist_data_attributes_created_by.py +++ b/src/datadog_api_client/v2/model/playlist_data_attributes_created_by.py @@ -42,21 +42,21 @@ def __init__( **kwargs, ): """ + Information about the user who created the playlist. - - :param handle: + :param handle: Email handle of the user who created the playlist. :type handle: str - :param icon: + :param icon: URL or identifier of the user's avatar icon. :type icon: str, optional - :param id: + :param id: Unique identifier of the user who created the playlist. :type id: str - :param name: + :param name: Display name of the user who created the playlist. :type name: str, optional - :param uuid: + :param uuid: UUID of the user who created the playlist. :type uuid: str """ if icon is not unset: diff --git a/src/datadog_api_client/v2/model/playlists_session.py b/src/datadog_api_client/v2/model/playlists_session.py index 24b3ca12ec..812e0c1c51 100644 --- a/src/datadog_api_client/v2/model/playlists_session.py +++ b/src/datadog_api_client/v2/model/playlists_session.py @@ -30,9 +30,9 @@ def openapi_types(_): def __init__(self_, data: PlaylistsSessionData, **kwargs): """ + A single RUM replay session resource as it appears within a playlist context. - - :param data: + :param data: Data object representing a session within a playlist, including its identifier, type, and attributes. :type data: PlaylistsSessionData """ super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/playlists_session_array.py b/src/datadog_api_client/v2/model/playlists_session_array.py index a804f8d3f6..f9a7ab42b0 100644 --- a/src/datadog_api_client/v2/model/playlists_session_array.py +++ b/src/datadog_api_client/v2/model/playlists_session_array.py @@ -30,9 +30,9 @@ def openapi_types(_): def __init__(self_, data: List[PlaylistsSessionData], **kwargs): """ + A list of RUM replay sessions belonging to a playlist. - - :param data: + :param data: Array of playlist session data objects. :type data: [PlaylistsSessionData] """ super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/playlists_session_data.py b/src/datadog_api_client/v2/model/playlists_session_data.py index 3770747563..bea2562d26 100644 --- a/src/datadog_api_client/v2/model/playlists_session_data.py +++ b/src/datadog_api_client/v2/model/playlists_session_data.py @@ -44,12 +44,12 @@ def __init__( **kwargs, ): """ + Data object representing a session within a playlist, including its identifier, type, and attributes. - - :param attributes: + :param attributes: Attributes of a session within a playlist, including the session event data and its replay track. :type attributes: PlaylistsSessionDataAttributes, optional - :param id: + :param id: Unique identifier of the RUM replay session. :type id: str, optional :param type: Rum replay session resource type. diff --git a/src/datadog_api_client/v2/model/playlists_session_data_attributes.py b/src/datadog_api_client/v2/model/playlists_session_data_attributes.py index 1c60c87228..2681b573fe 100644 --- a/src/datadog_api_client/v2/model/playlists_session_data_attributes.py +++ b/src/datadog_api_client/v2/model/playlists_session_data_attributes.py @@ -49,12 +49,12 @@ def __init__( self_, session_event: Union[Dict[str, Any], UnsetType] = unset, track: Union[str, UnsetType] = unset, **kwargs ): """ + Attributes of a session within a playlist, including the session event data and its replay track. - - :param session_event: + :param session_event: Raw event data associated with the replay session. :type session_event: {str: (bool, date, datetime, dict, float, int, list, str, UUID, none_type,)}, optional - :param track: + :param track: Replay track identifier indicating which recording track the session belongs to. :type track: str, optional """ if session_event is not unset: diff --git a/src/datadog_api_client/v2/model/session_id_array.py b/src/datadog_api_client/v2/model/session_id_array.py index 950a587500..43a6ce9889 100644 --- a/src/datadog_api_client/v2/model/session_id_array.py +++ b/src/datadog_api_client/v2/model/session_id_array.py @@ -30,9 +30,9 @@ def openapi_types(_): def __init__(self_, data: List[SessionIdData], **kwargs): """ + A collection of session identifiers used for bulk add or remove operations on a playlist. - - :param data: + :param data: Array of session identifier data objects. :type data: [SessionIdData] """ super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/session_id_data.py b/src/datadog_api_client/v2/model/session_id_data.py index 8d88b34f6c..1272c1df1b 100644 --- a/src/datadog_api_client/v2/model/session_id_data.py +++ b/src/datadog_api_client/v2/model/session_id_data.py @@ -34,9 +34,9 @@ def openapi_types(_): def __init__(self_, type: ViewershipHistorySessionDataType, id: Union[str, UnsetType] = unset, **kwargs): """ + A session identifier data object used for bulk playlist operations. - - :param id: + :param id: Unique identifier of the RUM replay session. :type id: str, optional :param type: Rum replay session resource type. diff --git a/src/datadog_api_client/v2/model/snapshot.py b/src/datadog_api_client/v2/model/snapshot.py index 3c3555f800..1851cf066e 100644 --- a/src/datadog_api_client/v2/model/snapshot.py +++ b/src/datadog_api_client/v2/model/snapshot.py @@ -32,9 +32,9 @@ def openapi_types(_): def __init__(self_, data: Union[SnapshotData, UnsetType] = unset, **kwargs): """ + A single heatmap snapshot resource returned by create or update operations. - - :param data: + :param data: Data object representing a heatmap snapshot, including its identifier, type, and attributes. :type data: SnapshotData, optional """ if data is not unset: diff --git a/src/datadog_api_client/v2/model/snapshot_array.py b/src/datadog_api_client/v2/model/snapshot_array.py index d00163646f..d2dce4ee05 100644 --- a/src/datadog_api_client/v2/model/snapshot_array.py +++ b/src/datadog_api_client/v2/model/snapshot_array.py @@ -30,9 +30,9 @@ def openapi_types(_): def __init__(self_, data: List[SnapshotData], **kwargs): """ + A list of heatmap snapshots returned by a list operation. - - :param data: + :param data: Array of heatmap snapshot data objects. :type data: [SnapshotData] """ super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/snapshot_create_request.py b/src/datadog_api_client/v2/model/snapshot_create_request.py index 39b05b451e..b1ae9261c1 100644 --- a/src/datadog_api_client/v2/model/snapshot_create_request.py +++ b/src/datadog_api_client/v2/model/snapshot_create_request.py @@ -30,9 +30,9 @@ def openapi_types(_): def __init__(self_, data: SnapshotCreateRequestData, **kwargs): """ + Request body for creating a heatmap snapshot. - - :param data: + :param data: Data object for a heatmap snapshot creation request, containing the resource type and attributes. :type data: SnapshotCreateRequestData """ super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/snapshot_create_request_data.py b/src/datadog_api_client/v2/model/snapshot_create_request_data.py index 5e6f28791d..4b29e298dd 100644 --- a/src/datadog_api_client/v2/model/snapshot_create_request_data.py +++ b/src/datadog_api_client/v2/model/snapshot_create_request_data.py @@ -43,9 +43,9 @@ def __init__( **kwargs, ): """ + Data object for a heatmap snapshot creation request, containing the resource type and attributes. - - :param attributes: + :param attributes: Attributes for creating a heatmap snapshot, including the view, session, event, and device context. :type attributes: SnapshotCreateRequestDataAttributes, optional :param type: Snapshots resource type. diff --git a/src/datadog_api_client/v2/model/snapshot_create_request_data_attributes.py b/src/datadog_api_client/v2/model/snapshot_create_request_data_attributes.py index 43377f8870..c673f80557 100644 --- a/src/datadog_api_client/v2/model/snapshot_create_request_data_attributes.py +++ b/src/datadog_api_client/v2/model/snapshot_create_request_data_attributes.py @@ -54,33 +54,33 @@ def __init__( **kwargs, ): """ + Attributes for creating a heatmap snapshot, including the view, session, event, and device context. - - :param application_id: + :param application_id: Unique identifier of the RUM application. :type application_id: str - :param device_type: + :param device_type: Device type used when capturing the snapshot (e.g., desktop, mobile, tablet). :type device_type: str - :param event_id: + :param event_id: Unique identifier of the RUM event associated with the snapshot. :type event_id: str - :param is_device_type_selected_by_user: + :param is_device_type_selected_by_user: Indicates whether the device type was explicitly selected by the user rather than auto-detected. :type is_device_type_selected_by_user: bool - :param session_id: + :param session_id: Unique identifier of the RUM session associated with the snapshot. :type session_id: str, optional - :param snapshot_name: + :param snapshot_name: Human-readable name for the snapshot. :type snapshot_name: str - :param start: + :param start: Offset in milliseconds from the start of the session at which the snapshot was captured. :type start: int - :param view_id: + :param view_id: Unique identifier of the RUM view associated with the snapshot. :type view_id: str, optional - :param view_name: + :param view_name: URL path or name of the view where the snapshot was captured. :type view_name: str """ if session_id is not unset: diff --git a/src/datadog_api_client/v2/model/snapshot_data.py b/src/datadog_api_client/v2/model/snapshot_data.py index 5b79976997..a2b51263c6 100644 --- a/src/datadog_api_client/v2/model/snapshot_data.py +++ b/src/datadog_api_client/v2/model/snapshot_data.py @@ -47,12 +47,12 @@ def __init__( **kwargs, ): """ + Data object representing a heatmap snapshot, including its identifier, type, and attributes. - - :param attributes: + :param attributes: Attributes of a heatmap snapshot, including view context, device information, and audit metadata. :type attributes: SnapshotDataAttributes, optional - :param id: + :param id: Unique identifier of the heatmap snapshot. :type id: str, optional :param type: Snapshots resource type. diff --git a/src/datadog_api_client/v2/model/snapshot_data_attributes.py b/src/datadog_api_client/v2/model/snapshot_data_attributes.py index 8fb1e88ea1..1823b5f458 100644 --- a/src/datadog_api_client/v2/model/snapshot_data_attributes.py +++ b/src/datadog_api_client/v2/model/snapshot_data_attributes.py @@ -81,51 +81,51 @@ def __init__( **kwargs, ): """ + Attributes of a heatmap snapshot, including view context, device information, and audit metadata. - - :param application_id: + :param application_id: Unique identifier of the RUM application. :type application_id: str, optional - :param created_at: + :param created_at: Timestamp when the snapshot was created. :type created_at: datetime, optional - :param created_by: + :param created_by: Display name of the user who created the snapshot. :type created_by: str, optional - :param created_by_handle: + :param created_by_handle: Email handle of the user who created the snapshot. :type created_by_handle: str, optional - :param created_by_user_id: + :param created_by_user_id: Numeric identifier of the user who created the snapshot. :type created_by_user_id: int, optional - :param device_type: + :param device_type: Device type used when capturing the snapshot (e.g., desktop, mobile, tablet). :type device_type: str, optional - :param event_id: + :param event_id: Unique identifier of the RUM event associated with the snapshot. :type event_id: str, optional - :param is_device_type_selected_by_user: + :param is_device_type_selected_by_user: Indicates whether the device type was explicitly selected by the user rather than auto-detected. :type is_device_type_selected_by_user: bool, optional - :param modified_at: + :param modified_at: Timestamp when the snapshot was last modified. :type modified_at: datetime, optional - :param org_id: + :param org_id: Numeric identifier of the organization that owns the snapshot. :type org_id: int, optional - :param session_id: + :param session_id: Unique identifier of the RUM session associated with the snapshot. :type session_id: str, optional - :param snapshot_name: + :param snapshot_name: Human-readable name for the snapshot. :type snapshot_name: str, optional - :param start: + :param start: Offset in milliseconds from the start of the session at which the snapshot was captured. :type start: int, optional - :param view_id: + :param view_id: Unique identifier of the RUM view associated with the snapshot. :type view_id: str, optional - :param view_name: + :param view_name: URL path or name of the view where the snapshot was captured. :type view_name: str, optional """ if application_id is not unset: diff --git a/src/datadog_api_client/v2/model/snapshot_update_request.py b/src/datadog_api_client/v2/model/snapshot_update_request.py index 0f40bb449c..ada54826e0 100644 --- a/src/datadog_api_client/v2/model/snapshot_update_request.py +++ b/src/datadog_api_client/v2/model/snapshot_update_request.py @@ -30,9 +30,9 @@ def openapi_types(_): def __init__(self_, data: SnapshotUpdateRequestData, **kwargs): """ + Request body for updating a heatmap snapshot. - - :param data: + :param data: Data object for a heatmap snapshot update request, containing the resource identifier, type, and attributes. :type data: SnapshotUpdateRequestData """ super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/snapshot_update_request_data.py b/src/datadog_api_client/v2/model/snapshot_update_request_data.py index 3376a618c5..02a4ea8c45 100644 --- a/src/datadog_api_client/v2/model/snapshot_update_request_data.py +++ b/src/datadog_api_client/v2/model/snapshot_update_request_data.py @@ -46,12 +46,12 @@ def __init__( **kwargs, ): """ + Data object for a heatmap snapshot update request, containing the resource identifier, type, and attributes. - - :param attributes: + :param attributes: Attributes for updating a heatmap snapshot, including event, session, and view context. :type attributes: SnapshotUpdateRequestDataAttributes, optional - :param id: + :param id: Unique identifier of the heatmap snapshot to update. :type id: str, optional :param type: Snapshots resource type. diff --git a/src/datadog_api_client/v2/model/snapshot_update_request_data_attributes.py b/src/datadog_api_client/v2/model/snapshot_update_request_data_attributes.py index 61cab43f65..dc1e13de64 100644 --- a/src/datadog_api_client/v2/model/snapshot_update_request_data_attributes.py +++ b/src/datadog_api_client/v2/model/snapshot_update_request_data_attributes.py @@ -42,21 +42,21 @@ def __init__( **kwargs, ): """ + Attributes for updating a heatmap snapshot, including event, session, and view context. - - :param event_id: + :param event_id: Unique identifier of the RUM event associated with the snapshot. :type event_id: str - :param is_device_type_selected_by_user: + :param is_device_type_selected_by_user: Indicates whether the device type was explicitly selected by the user rather than auto-detected. :type is_device_type_selected_by_user: bool - :param session_id: + :param session_id: Unique identifier of the RUM session associated with the snapshot. :type session_id: str, optional - :param start: + :param start: Offset in milliseconds from the start of the session at which the snapshot was captured. :type start: int - :param view_id: + :param view_id: Unique identifier of the RUM view associated with the snapshot. :type view_id: str, optional """ if session_id is not unset: diff --git a/src/datadog_api_client/v2/model/viewership_history_session_array.py b/src/datadog_api_client/v2/model/viewership_history_session_array.py index 31c5d39dce..c3860620ef 100644 --- a/src/datadog_api_client/v2/model/viewership_history_session_array.py +++ b/src/datadog_api_client/v2/model/viewership_history_session_array.py @@ -30,9 +30,9 @@ def openapi_types(_): def __init__(self_, data: List[ViewershipHistorySessionData], **kwargs): """ + A list of RUM replay sessions from a user's viewership history. - - :param data: + :param data: Array of viewership history session data objects. :type data: [ViewershipHistorySessionData] """ super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/viewership_history_session_data.py b/src/datadog_api_client/v2/model/viewership_history_session_data.py index 266edc9a3f..c5e0cb736b 100644 --- a/src/datadog_api_client/v2/model/viewership_history_session_data.py +++ b/src/datadog_api_client/v2/model/viewership_history_session_data.py @@ -48,12 +48,12 @@ def __init__( **kwargs, ): """ + Data object representing a session in the viewership history, including its identifier, type, and attributes. - - :param attributes: + :param attributes: Attributes of a viewership history session entry, capturing when it was last watched and the associated event data. :type attributes: ViewershipHistorySessionDataAttributes, optional - :param id: + :param id: Unique identifier of the RUM replay session. :type id: str, optional :param type: Rum replay session resource type. diff --git a/src/datadog_api_client/v2/model/viewership_history_session_data_attributes.py b/src/datadog_api_client/v2/model/viewership_history_session_data_attributes.py index aa2f520c69..0b1727a76c 100644 --- a/src/datadog_api_client/v2/model/viewership_history_session_data_attributes.py +++ b/src/datadog_api_client/v2/model/viewership_history_session_data_attributes.py @@ -58,18 +58,18 @@ def __init__( **kwargs, ): """ + Attributes of a viewership history session entry, capturing when it was last watched and the associated event data. - - :param event_id: + :param event_id: Unique identifier of the RUM event associated with the watched session. :type event_id: str, optional - :param last_watched_at: + :param last_watched_at: Timestamp when the session was last watched by the user. :type last_watched_at: datetime - :param session_event: + :param session_event: Raw event data associated with the replay session. :type session_event: {str: (bool, date, datetime, dict, float, int, list, str, UUID, none_type,)}, optional - :param track: + :param track: Replay track identifier indicating which recording track the session belongs to. :type track: str, optional """ if event_id is not unset: diff --git a/src/datadog_api_client/v2/model/watch.py b/src/datadog_api_client/v2/model/watch.py index eedca1a782..6e844cc44d 100644 --- a/src/datadog_api_client/v2/model/watch.py +++ b/src/datadog_api_client/v2/model/watch.py @@ -30,9 +30,9 @@ def openapi_types(_): def __init__(self_, data: WatchData, **kwargs): """ + A single RUM replay session watch resource returned by create operations. - - :param data: + :param data: Data object representing a session watch record, including its identifier, type, and attributes. :type data: WatchData """ super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/watch_data.py b/src/datadog_api_client/v2/model/watch_data.py index 973497b885..5f0058382f 100644 --- a/src/datadog_api_client/v2/model/watch_data.py +++ b/src/datadog_api_client/v2/model/watch_data.py @@ -44,12 +44,12 @@ def __init__( **kwargs, ): """ + Data object representing a session watch record, including its identifier, type, and attributes. - - :param attributes: + :param attributes: Attributes for recording a session watch event, including the application, event reference, and timestamp. :type attributes: WatchDataAttributes, optional - :param id: + :param id: Unique identifier of the watch record. :type id: str, optional :param type: Rum replay watch resource type. diff --git a/src/datadog_api_client/v2/model/watch_data_attributes.py b/src/datadog_api_client/v2/model/watch_data_attributes.py index fe4e19f6b0..96cbbace3b 100644 --- a/src/datadog_api_client/v2/model/watch_data_attributes.py +++ b/src/datadog_api_client/v2/model/watch_data_attributes.py @@ -40,18 +40,18 @@ def __init__( **kwargs, ): """ + Attributes for recording a session watch event, including the application, event reference, and timestamp. - - :param application_id: + :param application_id: Unique identifier of the RUM application containing the session. :type application_id: str - :param data_source: + :param data_source: Data source type indicating the origin of the session data (e.g., rum or product_analytics). :type data_source: str, optional - :param event_id: + :param event_id: Unique identifier of the RUM event that was watched. :type event_id: str - :param timestamp: + :param timestamp: Timestamp when the session was watched. :type timestamp: datetime """ if data_source is not unset: diff --git a/src/datadog_api_client/v2/model/watcher_array.py b/src/datadog_api_client/v2/model/watcher_array.py index f98d110d21..e2bd082875 100644 --- a/src/datadog_api_client/v2/model/watcher_array.py +++ b/src/datadog_api_client/v2/model/watcher_array.py @@ -30,9 +30,9 @@ def openapi_types(_): def __init__(self_, data: List[WatcherData], **kwargs): """ + A list of users who have watched a RUM replay session. - - :param data: + :param data: Array of watcher data objects. :type data: [WatcherData] """ super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/watcher_data.py b/src/datadog_api_client/v2/model/watcher_data.py index 5150c6dd41..59030daff1 100644 --- a/src/datadog_api_client/v2/model/watcher_data.py +++ b/src/datadog_api_client/v2/model/watcher_data.py @@ -44,12 +44,12 @@ def __init__( **kwargs, ): """ + Data object representing a session watcher, including their identifier, type, and attributes. - - :param attributes: + :param attributes: Attributes of a user who has watched a RUM replay session, including contact information and watch statistics. :type attributes: WatcherDataAttributes, optional - :param id: + :param id: Unique identifier of the watcher user. :type id: str, optional :param type: Rum replay watcher resource type. diff --git a/src/datadog_api_client/v2/model/watcher_data_attributes.py b/src/datadog_api_client/v2/model/watcher_data_attributes.py index 828f003bc8..66d195fc32 100644 --- a/src/datadog_api_client/v2/model/watcher_data_attributes.py +++ b/src/datadog_api_client/v2/model/watcher_data_attributes.py @@ -49,21 +49,21 @@ def __init__( **kwargs, ): """ + Attributes of a user who has watched a RUM replay session, including contact information and watch statistics. - - :param handle: + :param handle: Email handle of the user who watched the session. :type handle: str - :param icon: + :param icon: URL or identifier of the watcher's avatar icon. :type icon: str, optional - :param last_watched_at: + :param last_watched_at: Timestamp when the watcher last viewed the session. :type last_watched_at: datetime - :param name: + :param name: Display name of the user who watched the session. :type name: str, optional - :param watch_count: + :param watch_count: Total number of times the user has watched the session. :type watch_count: int """ if icon is not unset: diff --git a/tests/v2/cassettes/test_scenarios/test_validate_a_metrics_pipeline_with_opentelemetry_source_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_validate_a_metrics_pipeline_with_opentelemetry_source_returns_ok_response.frozen deleted file mode 100644 index 9218d08a36..0000000000 --- a/tests/v2/cassettes/test_scenarios/test_validate_a_metrics_pipeline_with_opentelemetry_source_returns_ok_response.frozen +++ /dev/null @@ -1 +0,0 @@ -2026-03-10T16:11:47.487Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_validate_a_metrics_pipeline_with_opentelemetry_source_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_validate_a_metrics_pipeline_with_opentelemetry_source_returns_ok_response.yaml deleted file mode 100644 index b09e25bdb7..0000000000 --- a/tests/v2/cassettes/test_scenarios/test_validate_a_metrics_pipeline_with_opentelemetry_source_returns_ok_response.yaml +++ /dev/null @@ -1,23 +0,0 @@ -interactions: -- request: - body: '{"data":{"attributes":{"config":{"destinations":[{"id":"datadog-metrics-destination","inputs":["my-processor-group"],"type":"datadog_metrics"}],"pipeline_type":"metrics","processor_groups":[{"enabled":true,"id":"my-processor-group","include":"*","inputs":["opentelemetry-source"],"processors":[{"enabled":true,"id":"filter-processor","include":"env:production","type":"filter"}]}],"sources":[{"id":"opentelemetry-source","type":"opentelemetry"}]},"name":"Metrics - OTel Pipeline"},"type":"pipelines"}}' - headers: - accept: - - application/json - content-type: - - application/json - method: POST - uri: https://api.datadoghq.com/api/v2/obs-pipelines/pipelines/validate - response: - body: - string: '{"errors":[]} - - ' - headers: - content-type: - - application/vnd.api+json - status: - code: 200 - message: OK -version: 1 diff --git a/tests/v2/features/observability_pipelines.feature b/tests/v2/features/observability_pipelines.feature index e272303955..bf90c06c13 100644 --- a/tests/v2/features/observability_pipelines.feature +++ b/tests/v2/features/observability_pipelines.feature @@ -149,14 +149,6 @@ Feature: Observability Pipelines And the response "data.attributes.config.destinations" has length 1 And the response "data.attributes.config.destinations[0].id" is equal to "updated-datadog-logs-destination-id" - @team:DataDog/observability-pipelines - Scenario: Validate a metrics pipeline with opentelemetry source returns "OK" response - Given new "ValidatePipeline" request - And body with value {"data": {"attributes": {"config": {"pipeline_type": "metrics", "destinations": [{"id": "datadog-metrics-destination", "inputs": ["my-processor-group"], "type": "datadog_metrics"}], "processor_groups": [{"enabled": true, "id": "my-processor-group", "include": "*", "inputs": ["opentelemetry-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "env:production", "type": "filter"}]}], "sources": [{"id": "opentelemetry-source", "type": "opentelemetry"}]}, "name": "Metrics OTel Pipeline"}, "type": "pipelines"}} - When the request is sent - Then the response status is 200 OK - And the response "errors" has length 0 - @team:DataDog/observability-pipelines Scenario: Validate an observability pipeline returns "Bad Request" response Given new "ValidatePipeline" request