Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update documentation of v2 endpoints for RUM retention filters. #2451

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-03-06 21:28:37.951420",
"spec_repo_commit": "d6a6faf6"
"regenerated": "2025-03-10 19:56:00.239445",
"spec_repo_commit": "04a593ef"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-03-06 21:28:37.967105",
"spec_repo_commit": "d6a6faf6"
"regenerated": "2025-03-10 19:56:00.254549",
"spec_repo_commit": "04a593ef"
}
}
}
25 changes: 14 additions & 11 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ components:
schema:
type: string
RumApplicationIDParameter:
description: Application ID.
description: RUM application ID.
in: path
name: app_id
required: true
Expand Down Expand Up @@ -25579,7 +25579,9 @@ components:
minimum: 0
type: integer
RumRetentionFilterSource:
description: The type of RUM events to filter on.
description: The origin source of the retention filter, which may be created
or updated through the Datadog UI, terraform, or other channels such as direct
API calls.
enum:
- ui
- terraform
Expand Down Expand Up @@ -25654,7 +25656,8 @@ components:
description: 'The list of RUM retention filter IDs along with their corresponding
type to reorder.

All retention filter IDs should be included in the list created for an application.'
All retention filter IDs should be included in the list created for a RUM
application.'
properties:
data:
description: A list of RUM retention filter IDs along with type.
Expand All @@ -25672,7 +25675,7 @@ components:
type: array
type: object
RumRetentionFiltersResponse:
description: All RUM retention filters for an application.
description: All RUM retention filters for a RUM application.
properties:
data:
description: A list of RUM retention filters.
Expand Down Expand Up @@ -46225,7 +46228,7 @@ paths:
- rum_apps_write
/api/v2/rum/applications/{app_id}/relationships/retention_filters:
patch:
description: 'Order RUM retention filters for an application.
description: 'Order RUM retention filters for a RUM application.

Returns RUM retention filter objects without attributes and meta from the
request body when the request is successful.'
Expand Down Expand Up @@ -46258,7 +46261,7 @@ paths:
x-codegen-request-body-name: body
/api/v2/rum/applications/{app_id}/retention_filters:
get:
description: Get the list of RUM retention filters for an application.
description: Get the list of RUM retention filters for a RUM application.
operationId: ListRetentionFilters
parameters:
- $ref: '#/components/parameters/RumApplicationIDParameter'
Expand All @@ -46277,7 +46280,7 @@ paths:
tags:
- Rum Retention Filters
post:
description: 'Create a RUM retention filter for an application.
description: 'Create a RUM retention filter for a RUM application.

Returns RUM retention filter objects from the request body when the request
is successful.'
Expand Down Expand Up @@ -46310,7 +46313,7 @@ paths:
x-codegen-request-body-name: body
/api/v2/rum/applications/{app_id}/retention_filters/{rf_id}:
delete:
description: Delete a RUM retention filter for an application.
description: Delete a RUM retention filter for a RUM application.
operationId: DeleteRetentionFilter
parameters:
- $ref: '#/components/parameters/RumApplicationIDParameter'
Expand All @@ -46328,7 +46331,7 @@ paths:
tags:
- Rum Retention Filters
get:
description: Get a RUM retention filter for an application.
description: Get a RUM retention filter for a RUM application.
operationId: GetRetentionFilter
parameters:
- $ref: '#/components/parameters/RumApplicationIDParameter'
Expand All @@ -46350,7 +46353,7 @@ paths:
tags:
- Rum Retention Filters
patch:
description: 'Update a RUM retention filter for an application.
description: 'Update a RUM retention filter for a RUM application.

Returns RUM retention filter objects from the request body when the request
is successful.'
Expand Down Expand Up @@ -53800,7 +53803,7 @@ tags:
url: https://docs.datadoghq.com/real_user_monitoring/platform/generate_metrics/
name: Rum Metrics
- description: Manage retention filters through [Manage Applications](https://app.datadoghq.com/rum/list)
for your organization.
of RUM for your organization.
name: Rum Retention Filters
- description: Create and manage your security rules, signals, filters, and more.
See the [Datadog Security page](https://docs.datadoghq.com/security/) for more
Expand Down
26 changes: 13 additions & 13 deletions src/datadog_api_client/v2/api/rum_retention_filters_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class RumRetentionFiltersApi:
"""
Manage retention filters through `Manage Applications <https://app.datadoghq.com/rum/list>`_ for your organization.
Manage retention filters through `Manage Applications <https://app.datadoghq.com/rum/list>`_ of RUM for your organization.
"""

def __init__(self, api_client=None):
Expand Down Expand Up @@ -197,10 +197,10 @@ def create_retention_filter(
) -> RumRetentionFilterResponse:
"""Create a RUM retention filter.

Create a RUM retention filter for an application.
Create a RUM retention filter for a RUM application.
Returns RUM retention filter objects from the request body when the request is successful.

:param app_id: Application ID.
:param app_id: RUM application ID.
:type app_id: str
:param body: The definition of the new RUM retention filter.
:type body: RumRetentionFilterCreateRequest
Expand All @@ -220,9 +220,9 @@ def delete_retention_filter(
) -> None:
"""Delete a RUM retention filter.

Delete a RUM retention filter for an application.
Delete a RUM retention filter for a RUM application.

:param app_id: Application ID.
:param app_id: RUM application ID.
:type app_id: str
:param rf_id: Retention filter ID.
:type rf_id: str
Expand All @@ -242,9 +242,9 @@ def get_retention_filter(
) -> RumRetentionFilterResponse:
"""Get a RUM retention filter.

Get a RUM retention filter for an application.
Get a RUM retention filter for a RUM application.

:param app_id: Application ID.
:param app_id: RUM application ID.
:type app_id: str
:param rf_id: Retention filter ID.
:type rf_id: str
Expand All @@ -263,9 +263,9 @@ def list_retention_filters(
) -> RumRetentionFiltersResponse:
"""Get all RUM retention filters.

Get the list of RUM retention filters for an application.
Get the list of RUM retention filters for a RUM application.

:param app_id: Application ID.
:param app_id: RUM application ID.
:type app_id: str
:rtype: RumRetentionFiltersResponse
"""
Expand All @@ -281,10 +281,10 @@ def order_retention_filters(
) -> RumRetentionFiltersOrderResponse:
"""Order RUM retention filters.

Order RUM retention filters for an application.
Order RUM retention filters for a RUM application.
Returns RUM retention filter objects without attributes and meta from the request body when the request is successful.

:param app_id: Application ID.
:param app_id: RUM application ID.
:type app_id: str
:param body: New definition of the RUM retention filter.
:type body: RumRetentionFiltersOrderRequest
Expand All @@ -305,10 +305,10 @@ def update_retention_filter(
) -> RumRetentionFilterResponse:
"""Update a RUM retention filter.

Update a RUM retention filter for an application.
Update a RUM retention filter for a RUM application.
Returns RUM retention filter objects from the request body when the request is successful.

:param app_id: Application ID.
:param app_id: RUM application ID.
:type app_id: str
:param rf_id: Retention filter ID.
:type rf_id: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self_, source: Union[RumRetentionFilterSource, UnsetType] = unset,
"""
The object describing metadata of a RUM retention filter.

:param source: The type of RUM events to filter on.
:param source: The origin source of the retention filter, which may be created or updated through the Datadog UI, terraform, or other channels such as direct API calls.
:type source: RumRetentionFilterSource, optional
"""
if source is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class RumRetentionFilterSource(ModelSimple):
"""
The type of RUM events to filter on.
The origin source of the retention filter, which may be created or updated through the Datadog UI, terraform, or other channels such as direct API calls.

:param value: Must be one of ["ui", "terraform", "default", "unknown"].
:type value: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def openapi_types(_):
def __init__(self_, data: Union[List[RumRetentionFiltersOrderData], UnsetType] = unset, **kwargs):
"""
The list of RUM retention filter IDs along with their corresponding type to reorder.
All retention filter IDs should be included in the list created for an application.
All retention filter IDs should be included in the list created for a RUM application.

:param data: A list of RUM retention filter IDs along with type.
:type data: [RumRetentionFiltersOrderData], optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def openapi_types(_):

def __init__(self_, data: Union[List[RumRetentionFilterData], UnsetType] = unset, **kwargs):
"""
All RUM retention filters for an application.
All RUM retention filters for a RUM application.

:param data: A list of RUM retention filters.
:type data: [RumRetentionFilterData], optional
Expand Down
3 changes: 2 additions & 1 deletion tests/v2/features/rum_retention_filters.feature
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
@endpoint(rum-retention-filters) @endpoint(rum-retention-filters-v2)
Feature: Rum Retention Filters
Manage retention filters through [Manage
Applications](https://app.datadoghq.com/rum/list) for your organization.
Applications](https://app.datadoghq.com/rum/list) of RUM for your
organization.

Background:
Given a valid "apiKeyAuth" key in the system
Expand Down