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
124 changes: 63 additions & 61 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/v2/rum-operations/CreateRUMOperationStrongLink.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Create a RUM operation strong link returns "Created" response
Create a RUM operation link returns "Created" response
"""

from datadog_api_client import ApiClient, Configuration
Expand All @@ -18,7 +18,7 @@
data=RUMOperationStrongLinkCreateRequestData(
attributes=RUMOperationStrongLinkCreateRequestAttributes(
description=None,
feature_id="feature-123",
feature_id="journey-123",
operation_id="abc12345-1234-5678-abcd-ef1234567890",
status=RUMOperationStrongLinkStatus.CONFIRMED,
tags=[],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Delete a RUM operation strong link returns "No Content" response
Delete a RUM operation link returns "No Content" response
"""

from datadog_api_client import ApiClient, Configuration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
List RUM operation strong links returns "OK" response
List RUM operation links returns "OK" response
"""

from datadog_api_client import ApiClient, Configuration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Update a RUM operation strong link returns "OK" response
Update a RUM operation link returns "OK" response
"""

from datadog_api_client import ApiClient, Configuration
Expand Down
35 changes: 18 additions & 17 deletions src/datadog_api_client/v2/api/rum_operations_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
class RUMOperationsApi:
"""
Manage `RUM Operations <https://docs.datadoghq.com/real_user_monitoring/>`_ , business
transactions detected from RUM events through a configurable journey, and their strong links
to features. See the `RUM & Session Replay page <https://docs.datadoghq.com/real_user_monitoring/>`_
transactions detected from RUM events through a configurable journey, and their links
to journeys. See the `RUM & Session Replay page <https://docs.datadoghq.com/real_user_monitoring/>`_
for more information.
"""

Expand Down Expand Up @@ -354,9 +354,9 @@ def create_rum_operation_strong_link(
self,
body: RUMOperationStrongLinkCreateRequest,
) -> RUMOperationStrongLinkResponse:
"""Create a RUM operation strong link.
"""Create a RUM operation link.

Create a strong link between a RUM operation and a feature, confirming that the feature
Create a link between a RUM operation and a journey, confirming that the journey
belongs to the operation. The operation can be identified by ``operation_id`` or ``operation_name`` ;
if ``operation_name`` does not match an existing operation, a stub operation is created.

Expand Down Expand Up @@ -390,13 +390,13 @@ def delete_rum_operation_strong_link(
rum_operation_id: str,
feature_id: str,
) -> None:
"""Delete a RUM operation strong link.
"""Delete a RUM operation link.

Delete the strong link between a RUM operation and a feature.
Delete the link between a RUM operation and a journey.

:param rum_operation_id: The unique identifier of the RUM operation.
:type rum_operation_id: str
:param feature_id: The unique identifier of the feature.
:param feature_id: The unique identifier of the journey.
:type feature_id: str
:rtype: None
"""
Expand Down Expand Up @@ -454,7 +454,8 @@ def list_rum_operations(
) -> RUMOperationsListResponse:
"""Search RUM operations.

Search RUM operations for your organization. Supports filtering by query, creator, team, feature, and application.
Search RUM operations for your organization. Supports filtering by query, creator, team,
journey, and application.

:param query: A search query to filter operations by name.
:type query: str, optional
Expand All @@ -466,7 +467,7 @@ def list_rum_operations(
:type creator: str, optional
:param team: Filter operations by team. Accepts a comma-separated list of teams.
:type team: str, optional
:param feature_id: Filter operations by feature ID. Accepts a comma-separated list of feature IDs.
:param feature_id: Filter operations by journey ID. Accepts a comma-separated list of journey IDs.
:type feature_id: str, optional
:param application_id: Filter operations by RUM application ID.
:type application_id: UUID, optional
Expand Down Expand Up @@ -504,15 +505,15 @@ def list_rum_operation_strong_links(
page_offset: Union[int, UnsetType] = unset,
page_limit: Union[int, UnsetType] = unset,
) -> RUMOperationStrongLinksListResponse:
"""List RUM operation strong links.
"""List RUM operation links.

List strong links between RUM operations and features. A strong link confirms that a feature
belongs to an operation. Provide ``operation_id`` , ``feature_id`` , or both to filter results;
List links between RUM operations and journeys. A link confirms that a journey
belongs to an operation. Provide ``operation_id`` , ``feature_id`` (journey ID), or both to filter results;
at least one is required.

:param operation_id: Filter strong links by RUM operation ID.
:param operation_id: Filter links by RUM operation ID.
:type operation_id: str, optional
:param feature_id: Filter strong links by feature ID.
:param feature_id: Filter links by journey (feature) ID.
:type feature_id: str, optional
:param page_offset: Offset for pagination.
:type page_offset: int, optional
Expand Down Expand Up @@ -563,13 +564,13 @@ def update_rum_operation_strong_link(
feature_id: str,
body: RUMOperationStrongLinkUpdateRequest,
) -> RUMOperationStrongLinkResponse:
"""Update a RUM operation strong link.
"""Update a RUM operation link.

Update the status of a strong link between a RUM operation and a feature.
Update the status of a link between a RUM operation and a journey.

:param rum_operation_id: The unique identifier of the RUM operation.
:type rum_operation_id: str
:param feature_id: The unique identifier of the feature.
:param feature_id: The unique identifier of the journey.
:type feature_id: str
:type body: RUMOperationStrongLinkUpdateRequest
:rtype: RUMOperationStrongLinkResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(
:param display_name: A human-readable display name for the RUM operation.
:type display_name: str, optional

:param feature_ids: The list of feature IDs associated with the RUM operation.
:param feature_ids: The list of journey IDs associated with the RUM operation.
:type feature_ids: [str], optional

:param journey_rum: The definition of a RUM operation's journey, used to detect it from RUM events.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def __init__(
:param display_name: A human-readable display name for the RUM operation.
:type display_name: str, optional

:param feature_ids: The list of feature IDs associated with the RUM operation.
:param feature_ids: The list of journey IDs associated with the RUM operation.
:type feature_ids: [str], optional

:param journey_rum: The definition of a RUM operation's journey, used to detect it from RUM events.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def openapi_types(_):

def __init__(self_, data: RUMOperationStrongLinkCreateRequestData, **kwargs):
"""
The request body for creating a RUM operation strong link.
The request body for creating a RUM operation link.

:param data: The data object for creating a RUM operation strong link.
:param data: The data object for creating a RUM operation link.
:type data: RUMOperationStrongLinkCreateRequestData
"""
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ def __init__(
**kwargs,
):
"""
Attributes for creating a RUM operation strong link.
Attributes for creating a RUM operation link.

:param application_id: The RUM application ID used when creating a stub operation from ``operation_name``.
:type application_id: UUID, optional

:param description: A description of the strong link.
:param description: A description of the link.
:type description: str, none_type, optional

:param feature_id: The unique identifier of the feature to link.
:param feature_id: The unique identifier of the journey to link.
:type feature_id: str

:param operation_id: The unique identifier of the RUM operation to link. Either ``operation_id`` or
Expand All @@ -75,10 +75,10 @@ def __init__(
required. If no operation with this name exists, a stub operation is created.
:type operation_name: str, optional

:param status: The status of a RUM operation strong link.
:param status: The status of a RUM operation link.
:type status: RUMOperationStrongLinkStatus, optional

:param tags: A list of tags associated with the strong link.
:param tags: A list of tags associated with the link.
:type tags: [str], optional
"""
if application_id is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ def __init__(
self_, attributes: RUMOperationStrongLinkCreateRequestAttributes, type: RUMOperationStrongLinkType, **kwargs
):
"""
The data object for creating a RUM operation strong link.
The data object for creating a RUM operation link.

:param attributes: Attributes for creating a RUM operation strong link.
:param attributes: Attributes for creating a RUM operation link.
:type attributes: RUMOperationStrongLinkCreateRequestAttributes

:param type: The JSON:API type for RUM operation strong link resources.
:param type: The JSON:API type for RUM operation link resources.
:type type: RUMOperationStrongLinkType
"""
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ def openapi_types(_):

def __init__(self_, data: RUMOperationStrongLinkResponseData, **kwargs):
"""
The response for a single RUM operation strong link.
The response for a single RUM operation link.

:param data: The data object in a RUM operation strong link response.
:param data: The data object in a RUM operation link response.
:type data: RUMOperationStrongLinkResponseData
"""
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,27 +62,27 @@ def __init__(
**kwargs,
):
"""
Attributes of a RUM operation strong link response.
Attributes of a RUM operation link response.

:param created_at: The timestamp when the strong link was created.
:param created_at: The timestamp when the link was created.
:type created_at: datetime, optional

:param description: A description of the strong link.
:param description: A description of the link.
:type description: str, none_type, optional

:param feature_id: The unique identifier of the linked feature.
:param feature_id: The unique identifier of the linked journey.
:type feature_id: str

:param operation_id: The unique identifier of the linked RUM operation.
:type operation_id: str

:param status: The status of a RUM operation strong link.
:param status: The status of a RUM operation link.
:type status: RUMOperationStrongLinkStatus

:param tags: A list of tags associated with the strong link.
:param tags: A list of tags associated with the link.
:type tags: [str], optional

:param updated_at: The timestamp when the strong link was last updated.
:param updated_at: The timestamp when the link was last updated.
:type updated_at: datetime, none_type, optional
"""
if created_at is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ def __init__(
self_, attributes: RUMOperationStrongLinkResponseAttributes, id: str, type: RUMOperationStrongLinkType, **kwargs
):
"""
The data object in a RUM operation strong link response.
The data object in a RUM operation link response.

:param attributes: Attributes of a RUM operation strong link response.
:param attributes: Attributes of a RUM operation link response.
:type attributes: RUMOperationStrongLinkResponseAttributes

:param id: The unique identifier of the strong link, formatted as ``<operation_id>:<feature_id>``.
:param id: The unique identifier of the link, formatted as ``<operation_id>:<feature_id>``.
:type id: str

:param type: The JSON:API type for RUM operation strong link resources.
:param type: The JSON:API type for RUM operation link resources.
:type type: RUMOperationStrongLinkType
"""
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class RUMOperationStrongLinkStatus(ModelSimple):
"""
The status of a RUM operation strong link.
The status of a RUM operation link.

:param value: Must be one of ["DRAFT", "CONFIRMED", "REJECTED"].
:type value: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class RUMOperationStrongLinkType(ModelSimple):
"""
The JSON:API type for RUM operation strong link resources.
The JSON:API type for RUM operation link resources.

:param value: If omitted defaults to "strong_links". Must be one of ["strong_links"].
:type value: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def openapi_types(_):

def __init__(self_, data: RUMOperationStrongLinkUpdateRequestData, **kwargs):
"""
The request body for updating a RUM operation strong link.
The request body for updating a RUM operation link.

:param data: The data object for updating a RUM operation strong link.
:param data: The data object for updating a RUM operation link.
:type data: RUMOperationStrongLinkUpdateRequestData
"""
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ def openapi_types(_):

def __init__(self_, status: RUMOperationStrongLinkUpdateStatus, **kwargs):
"""
Attributes for updating a RUM operation strong link.
Attributes for updating a RUM operation link.

:param status: The status of a RUM operation strong link. Can only be set to ``CONFIRMED`` or ``REJECTED``.
:param status: The status of a RUM operation link. Can only be set to ``CONFIRMED`` or ``REJECTED``.
:type status: RUMOperationStrongLinkUpdateStatus
"""
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ def __init__(
self_, attributes: RUMOperationStrongLinkUpdateRequestAttributes, type: RUMOperationStrongLinkType, **kwargs
):
"""
The data object for updating a RUM operation strong link.
The data object for updating a RUM operation link.

:param attributes: Attributes for updating a RUM operation strong link.
:param attributes: Attributes for updating a RUM operation link.
:type attributes: RUMOperationStrongLinkUpdateRequestAttributes

:param type: The JSON:API type for RUM operation strong link resources.
:param type: The JSON:API type for RUM operation link resources.
:type type: RUMOperationStrongLinkType
"""
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class RUMOperationStrongLinkUpdateStatus(ModelSimple):
"""
The status of a RUM operation strong link. Can only be set to `CONFIRMED` or `REJECTED`.
The status of a RUM operation link. Can only be set to `CONFIRMED` or `REJECTED`.

:param value: Must be one of ["CONFIRMED", "REJECTED"].
:type value: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ def __init__(
**kwargs,
):
"""
The response for a list of RUM operation strong links.
The response for a list of RUM operation links.

:param data:
:type data: [RUMOperationStrongLinkResponseData]

:param meta: Metadata for a list of RUM operation strong links.
:param meta: Metadata for a list of RUM operation links.
:type meta: RUMOperationStrongLinksListResponseMeta, optional
"""
if meta is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ def __init__(
**kwargs,
):
"""
Metadata for a list of RUM operation strong links.
Metadata for a list of RUM operation links.

:param limit: The pagination limit.
:type limit: int, optional

:param offset: The current offset.
:type offset: int, optional

:param total: The total number of strong links matching the request.
:param total: The total number of links matching the request.
:type total: int, optional
"""
if limit is not unset:
Expand Down
Loading
Loading