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
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-11 13:16:50.144910",
"spec_repo_commit": "d7618fa5"
"regenerated": "2025-03-11 16:30:31.555356",
"spec_repo_commit": "baf04a80"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-03-11 13:16:50.165212",
"spec_repo_commit": "d7618fa5"
"regenerated": "2025-03-11 16:30:31.570839",
"spec_repo_commit": "baf04a80"
}
}
}
51 changes: 13 additions & 38 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 @@ -25518,8 +25518,6 @@ components:
properties:
attributes:
$ref: '#/components/schemas/RumRetentionFilterCreateAttributes'
meta:
$ref: '#/components/schemas/RumRetentionFilterMeta'
type:
$ref: '#/components/schemas/RumRetentionFilterType'
required:
Expand All @@ -25541,8 +25539,6 @@ components:
$ref: '#/components/schemas/RumRetentionFilterAttributes'
id:
$ref: '#/components/schemas/RumRetentionFilterID'
meta:
$ref: '#/components/schemas/RumRetentionFilterMeta'
type:
$ref: '#/components/schemas/RumRetentionFilterType'
type: object
Expand Down Expand Up @@ -25574,12 +25570,6 @@ components:
description: ID of retention filter in UUID.
example: 051601eb-54a0-abc0-03f9-cc02efa18892
type: string
RumRetentionFilterMeta:
description: The object describing metadata of a RUM retention filter.
properties:
source:
$ref: '#/components/schemas/RumRetentionFilterSource'
type: object
RumRetentionFilterQuery:
description: The query string for a RUM retention filter.
example: '@session.has_replay:true'
Expand All @@ -25597,20 +25587,6 @@ components:
maximum: 100
minimum: 0
type: integer
RumRetentionFilterSource:
description: The type of RUM events to filter on.
enum:
- ui
- terraform
- default
- unknown
example: terraform
type: string
x-enum-varnames:
- UI
- TERRAFORM
- DEFAULT
- UNKNOWN
RumRetentionFilterType:
default: retention_filters
description: The type of the resource. The value should always be retention_filters.
Expand Down Expand Up @@ -25641,8 +25617,6 @@ components:
$ref: '#/components/schemas/RumRetentionFilterUpdateAttributes'
id:
$ref: '#/components/schemas/RumRetentionFilterID'
meta:
$ref: '#/components/schemas/RumRetentionFilterMeta'
type:
$ref: '#/components/schemas/RumRetentionFilterType'
required:
Expand Down Expand Up @@ -25673,7 +25647,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 @@ -25691,7 +25666,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 @@ -46244,10 +46219,10 @@ 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.'
Returns RUM retention filter objects without attributes from the request body
when the request is successful.'
operationId: OrderRetentionFilters
parameters:
- $ref: '#/components/parameters/RumApplicationIDParameter'
Expand Down Expand Up @@ -46277,7 +46252,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 @@ -46296,7 +46271,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 @@ -46329,7 +46304,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 @@ -46347,7 +46322,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 @@ -46369,7 +46344,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 @@ -53819,7 +53794,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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions examples/v2/rum-retention-filters/CreateRetentionFilter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
sample_rate: 50,
enabled: true,
}),
meta: DatadogAPIClient::V2::RumRetentionFilterMeta.new({
source: DatadogAPIClient::V2::RumRetentionFilterSource::TERRAFORM,
}),
}),
})
p api_instance.create_retention_filter("a33671aa-24fd-4dcd-ba4b-5bbdbafe7690", body)
8 changes: 3 additions & 5 deletions features/v2/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 All @@ -20,7 +21,7 @@ Feature: Rum Retention Filters
Scenario: Create a RUM retention filter returns "Created" response
Given new "CreateRetentionFilter" request
And request contains "app_id" parameter with value "a33671aa-24fd-4dcd-ba4b-5bbdbafe7690"
And body with value {"data":{"type":"retention_filters","attributes":{"name":"Test creating retention filter","event_type":"session","query":"custom_query","sample_rate":50,"enabled":true},"meta":{"source":"terraform"}}}
And body with value {"data":{"type":"retention_filters","attributes":{"name":"Test creating retention filter","event_type":"session","query":"custom_query","sample_rate":50,"enabled":true}}}
When the request is sent
Then the response status is 201 Created
And the response "data.type" is equal to "retention_filters"
Expand All @@ -29,7 +30,6 @@ Feature: Rum Retention Filters
And the response "data.attributes.enabled" is equal to true
And the response "data.attributes.query" is equal to "custom_query"
And the response "data.attributes.sample_rate" is equal to 50
And the response "data.meta.source" is equal to "terraform"

@replay-only @team:DataDog/rum-backend
Scenario: Delete a RUM retention filter returns "No Content" response
Expand Down Expand Up @@ -69,7 +69,6 @@ Feature: Rum Retention Filters
And the response "data.attributes.enabled" is equal to true
And the response "data.attributes.query" is equal to "custom_query"
And the response "data.attributes.sample_rate" is equal to 25
And the response "data.meta.source" is equal to "terraform"

@replay-only @team:DataDog/rum-backend
Scenario: Get all RUM retention filters returns "OK" response
Expand Down Expand Up @@ -131,4 +130,3 @@ Feature: Rum Retention Filters
And the response "data.attributes.enabled" is equal to true
And the response "data.attributes.query" is equal to "view_query"
And the response "data.attributes.sample_rate" is equal to 100
And the response "data.meta.source" is equal to "unknown"
2 changes: 0 additions & 2 deletions lib/datadog_api_client/inflector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2513,12 +2513,10 @@ def overrides
"v2.rum_retention_filter_create_request" => "RumRetentionFilterCreateRequest",
"v2.rum_retention_filter_data" => "RumRetentionFilterData",
"v2.rum_retention_filter_event_type" => "RumRetentionFilterEventType",
"v2.rum_retention_filter_meta" => "RumRetentionFilterMeta",
"v2.rum_retention_filter_response" => "RumRetentionFilterResponse",
"v2.rum_retention_filters_order_data" => "RumRetentionFiltersOrderData",
"v2.rum_retention_filters_order_request" => "RumRetentionFiltersOrderRequest",
"v2.rum_retention_filters_order_response" => "RumRetentionFiltersOrderResponse",
"v2.rum_retention_filter_source" => "RumRetentionFilterSource",
"v2.rum_retention_filters_response" => "RumRetentionFiltersResponse",
"v2.rum_retention_filter_type" => "RumRetentionFilterType",
"v2.rum_retention_filter_update_attributes" => "RumRetentionFilterUpdateAttributes",
Expand Down
26 changes: 13 additions & 13 deletions lib/datadog_api_client/v2/api/rum_retention_filters_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ def create_retention_filter(app_id, body, opts = {})

# 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 [String] Application ID.
# @param app_id [String] RUM application ID.
# @param body [RumRetentionFilterCreateRequest] The definition of the new RUM retention filter.
# @param opts [Hash] the optional parameters
# @return [Array<(RumRetentionFilterResponse, Integer, Hash)>] RumRetentionFilterResponse data, response status code and response headers
Expand Down Expand Up @@ -106,9 +106,9 @@ def delete_retention_filter(app_id, rf_id, opts = {})

# 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 [String] Application ID.
# @param app_id [String] RUM application ID.
# @param rf_id [String] Retention filter ID.
# @param opts [Hash] the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
Expand Down Expand Up @@ -176,9 +176,9 @@ def get_retention_filter(app_id, rf_id, opts = {})

# 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 [String] Application ID.
# @param app_id [String] RUM application ID.
# @param rf_id [String] Retention filter ID.
# @param opts [Hash] the optional parameters
# @return [Array<(RumRetentionFilterResponse, Integer, Hash)>] RumRetentionFilterResponse data, response status code and response headers
Expand Down Expand Up @@ -246,9 +246,9 @@ def list_retention_filters(app_id, opts = {})

# 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 [String] Application ID.
# @param app_id [String] RUM application ID.
# @param opts [Hash] the optional parameters
# @return [Array<(RumRetentionFiltersResponse, Integer, Hash)>] RumRetentionFiltersResponse data, response status code and response headers
def list_retention_filters_with_http_info(app_id, opts = {})
Expand Down Expand Up @@ -311,10 +311,10 @@ def order_retention_filters(app_id, body, opts = {})

# Order RUM retention filters.
#
# Order RUM retention filters for an application.
# Returns RUM retention filter objects without attributes and meta from the request body when the request is successful.
# Order RUM retention filters for a RUM application.
# Returns RUM retention filter objects without attributes from the request body when the request is successful.
#
# @param app_id [String] Application ID.
# @param app_id [String] RUM application ID.
# @param body [RumRetentionFiltersOrderRequest] New definition of the RUM retention filter.
# @param opts [Hash] the optional parameters
# @return [Array<(RumRetentionFiltersOrderResponse, Integer, Hash)>] RumRetentionFiltersOrderResponse data, response status code and response headers
Expand Down Expand Up @@ -384,10 +384,10 @@ def update_retention_filter(app_id, rf_id, body, opts = {})

# 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 [String] Application ID.
# @param app_id [String] RUM application ID.
# @param rf_id [String] Retention filter ID.
# @param body [RumRetentionFilterUpdateRequest] New definition of the RUM retention filter.
# @param opts [Hash] the optional parameters
Expand Down
Loading
Loading