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
15 changes: 0 additions & 15 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215513,9 +215513,6 @@ paths:
summary: Get all RUM exclusion filters
tags:
- Rum Retention Filters
x-unstable: |-
**Note**: This endpoint is in preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
post:
description: |-
Create an exclusion filter for a RUM application.
Expand Down Expand Up @@ -215572,9 +215569,6 @@ paths:
tags:
- Rum Retention Filters
x-codegen-request-body-name: body
x-unstable: |-
**Note**: This endpoint is in preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/rum/applications/{app_id}/retention_filters/exclusion/{ef_id}:
delete:
description: |-
Expand All @@ -215599,9 +215593,6 @@ paths:
summary: Delete a RUM exclusion filter
tags:
- Rum Retention Filters
x-unstable: |-
**Note**: This endpoint is in preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
get:
description: Get a single exclusion filter for a RUM application.
operationId: GetExclusionFilter
Expand Down Expand Up @@ -215639,9 +215630,6 @@ paths:
summary: Get a RUM exclusion filter
tags:
- Rum Retention Filters
x-unstable: |-
**Note**: This endpoint is in preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
patch:
description: |-
Update an exclusion filter for a RUM application.
Expand Down Expand Up @@ -215706,9 +215694,6 @@ paths:
tags:
- Rum Retention Filters
x-codegen-request-body-name: body
x-unstable: |-
**Note**: This endpoint is in preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/rum/applications/{app_id}/retention_filters/permanent:
get:
description: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.access_token = ENV["DD_BEARER_TOKEN"]
config.unstable_operations["v2.create_exclusion_filter".to_sym] = true
end
api_instance = DatadogAPIClient::V2::RumRetentionFiltersAPI.new

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.access_token = ENV["DD_BEARER_TOKEN"]
config.unstable_operations["v2.delete_exclusion_filter".to_sym] = true
end
api_instance = DatadogAPIClient::V2::RumRetentionFiltersAPI.new
api_instance.delete_exclusion_filter("app_id", "ef_id")
1 change: 0 additions & 1 deletion examples/v2/rum-retention-filters/GetExclusionFilter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.access_token = ENV["DD_BEARER_TOKEN"]
config.unstable_operations["v2.get_exclusion_filter".to_sym] = true
end
api_instance = DatadogAPIClient::V2::RumRetentionFiltersAPI.new
p api_instance.get_exclusion_filter("app_id", "ef_id")
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.access_token = ENV["DD_BEARER_TOKEN"]
config.unstable_operations["v2.list_exclusion_filters".to_sym] = true
end
api_instance = DatadogAPIClient::V2::RumRetentionFiltersAPI.new
p api_instance.list_exclusion_filters("app_id")
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.access_token = ENV["DD_BEARER_TOKEN"]
config.unstable_operations["v2.update_exclusion_filter".to_sym] = true
end
api_instance = DatadogAPIClient::V2::RumRetentionFiltersAPI.new

Expand Down
36 changes: 12 additions & 24 deletions features/v2/rum_retention_filters.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,15 @@ Feature: Rum Retention Filters

@generated @skip @team:ddoghq/rum-backend
Scenario: Create a RUM exclusion filter returns "Bad Request" response
Given operation "CreateExclusionFilter" enabled
And new "CreateExclusionFilter" request
Given new "CreateExclusionFilter" request
And request contains "app_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"enabled": true, "event_type": "error", "name": "Exclude noisy browser extension errors", "query": "@error.message:*extension*"}, "type": "exclusion_filters"}}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:ddoghq/rum-backend
Scenario: Create a RUM exclusion filter returns "Created" response
Given operation "CreateExclusionFilter" enabled
And new "CreateExclusionFilter" request
Given new "CreateExclusionFilter" request
And request contains "app_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"enabled": true, "event_type": "error", "name": "Exclude noisy browser extension errors", "query": "@error.message:*extension*"}, "type": "exclusion_filters"}}
When the request is sent
Expand Down Expand Up @@ -51,26 +49,23 @@ Feature: Rum Retention Filters

@generated @skip @team:ddoghq/rum-backend
Scenario: Delete a RUM exclusion filter returns "Method Not Allowed" response
Given operation "DeleteExclusionFilter" enabled
And new "DeleteExclusionFilter" request
Given new "DeleteExclusionFilter" request
And request contains "app_id" parameter from "REPLACE.ME"
And request contains "ef_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 405 Method Not Allowed

@generated @skip @team:ddoghq/rum-backend
Scenario: Delete a RUM exclusion filter returns "No Content" response
Given operation "DeleteExclusionFilter" enabled
And new "DeleteExclusionFilter" request
Given new "DeleteExclusionFilter" request
And request contains "app_id" parameter from "REPLACE.ME"
And request contains "ef_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 204 No Content

@generated @skip @team:ddoghq/rum-backend
Scenario: Delete a RUM exclusion filter returns "Not Found" response
Given operation "DeleteExclusionFilter" enabled
And new "DeleteExclusionFilter" request
Given new "DeleteExclusionFilter" request
And request contains "app_id" parameter from "REPLACE.ME"
And request contains "ef_id" parameter from "REPLACE.ME"
When the request is sent
Expand All @@ -94,17 +89,15 @@ Feature: Rum Retention Filters

@generated @skip @team:ddoghq/rum-backend
Scenario: Get a RUM exclusion filter returns "Not Found" response
Given operation "GetExclusionFilter" enabled
And new "GetExclusionFilter" request
Given new "GetExclusionFilter" request
And request contains "app_id" parameter from "REPLACE.ME"
And request contains "ef_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 Not Found

@generated @skip @team:ddoghq/rum-backend
Scenario: Get a RUM exclusion filter returns "OK" response
Given operation "GetExclusionFilter" enabled
And new "GetExclusionFilter" request
Given new "GetExclusionFilter" request
And request contains "app_id" parameter from "REPLACE.ME"
And request contains "ef_id" parameter from "REPLACE.ME"
When the request is sent
Expand Down Expand Up @@ -151,8 +144,7 @@ Feature: Rum Retention Filters

@generated @skip @team:ddoghq/rum-backend
Scenario: Get all RUM exclusion filters returns "OK" response
Given operation "ListExclusionFilters" enabled
And new "ListExclusionFilters" request
Given new "ListExclusionFilters" request
And request contains "app_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
Expand Down Expand Up @@ -193,8 +185,7 @@ Feature: Rum Retention Filters

@generated @skip @team:ddoghq/rum-backend
Scenario: Update a RUM exclusion filter returns "Bad Request" response
Given operation "UpdateExclusionFilter" enabled
And new "UpdateExclusionFilter" request
Given new "UpdateExclusionFilter" request
And request contains "app_id" parameter from "REPLACE.ME"
And request contains "ef_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"enabled": true, "event_type": "error", "name": "Exclude noisy browser extension errors", "query": "@error.message:*extension*"}, "id": "051601eb-54a0-abc0-03f9-cc02efa18892", "type": "exclusion_filters"}}
Expand All @@ -203,8 +194,7 @@ Feature: Rum Retention Filters

@generated @skip @team:ddoghq/rum-backend
Scenario: Update a RUM exclusion filter returns "Conflict" response
Given operation "UpdateExclusionFilter" enabled
And new "UpdateExclusionFilter" request
Given new "UpdateExclusionFilter" request
And request contains "app_id" parameter from "REPLACE.ME"
And request contains "ef_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"enabled": true, "event_type": "error", "name": "Exclude noisy browser extension errors", "query": "@error.message:*extension*"}, "id": "051601eb-54a0-abc0-03f9-cc02efa18892", "type": "exclusion_filters"}}
Expand All @@ -213,8 +203,7 @@ Feature: Rum Retention Filters

@generated @skip @team:ddoghq/rum-backend
Scenario: Update a RUM exclusion filter returns "Not Found" response
Given operation "UpdateExclusionFilter" enabled
And new "UpdateExclusionFilter" request
Given new "UpdateExclusionFilter" request
And request contains "app_id" parameter from "REPLACE.ME"
And request contains "ef_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"enabled": true, "event_type": "error", "name": "Exclude noisy browser extension errors", "query": "@error.message:*extension*"}, "id": "051601eb-54a0-abc0-03f9-cc02efa18892", "type": "exclusion_filters"}}
Expand All @@ -223,8 +212,7 @@ Feature: Rum Retention Filters

@generated @skip @team:ddoghq/rum-backend
Scenario: Update a RUM exclusion filter returns "Updated" response
Given operation "UpdateExclusionFilter" enabled
And new "UpdateExclusionFilter" request
Given new "UpdateExclusionFilter" request
And request contains "app_id" parameter from "REPLACE.ME"
And request contains "ef_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"enabled": true, "event_type": "error", "name": "Exclude noisy browser extension errors", "query": "@error.message:*extension*"}, "id": "051601eb-54a0-abc0-03f9-cc02efa18892", "type": "exclusion_filters"}}
Expand Down
5 changes: 0 additions & 5 deletions lib/datadog_api_client/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -755,11 +755,6 @@ def initialize
"v2.get_sourcemaps": false,
"v2.list_sourcemaps": false,
"v2.restore_sourcemaps": false,
"v2.create_exclusion_filter": false,
"v2.delete_exclusion_filter": false,
"v2.get_exclusion_filter": false,
"v2.list_exclusion_filters": false,
"v2.update_exclusion_filter": false,
"v2.create_rum_config": false,
"v2.get_rum_config": false,
"v2.update_rum_config": false,
Expand Down
30 changes: 0 additions & 30 deletions lib/datadog_api_client/v2/api/rum_retention_filters_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ def create_exclusion_filter(app_id, body, opts = {})
# @param opts [Hash] the optional parameters
# @return [Array<(RumExclusionFilterResponse, Integer, Hash)>] RumExclusionFilterResponse data, response status code and response headers
def create_exclusion_filter_with_http_info(app_id, body, opts = {})
unstable_enabled = @api_client.config.unstable_operations["v2.create_exclusion_filter".to_sym]
if unstable_enabled
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_exclusion_filter")
else
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_exclusion_filter"))
end

if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: RumRetentionFiltersAPI.create_exclusion_filter ...'
Expand Down Expand Up @@ -194,12 +188,6 @@ def delete_exclusion_filter(app_id, ef_id, opts = {})
# @param opts [Hash] the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
def delete_exclusion_filter_with_http_info(app_id, ef_id, opts = {})
unstable_enabled = @api_client.config.unstable_operations["v2.delete_exclusion_filter".to_sym]
if unstable_enabled
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_exclusion_filter")
else
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_exclusion_filter"))
end

if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: RumRetentionFiltersAPI.delete_exclusion_filter ...'
Expand Down Expand Up @@ -340,12 +328,6 @@ def get_exclusion_filter(app_id, ef_id, opts = {})
# @param opts [Hash] the optional parameters
# @return [Array<(RumExclusionFilterResponse, Integer, Hash)>] RumExclusionFilterResponse data, response status code and response headers
def get_exclusion_filter_with_http_info(app_id, ef_id, opts = {})
unstable_enabled = @api_client.config.unstable_operations["v2.get_exclusion_filter".to_sym]
if unstable_enabled
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_exclusion_filter")
else
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_exclusion_filter"))
end

if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: RumRetentionFiltersAPI.get_exclusion_filter ...'
Expand Down Expand Up @@ -561,12 +543,6 @@ def list_exclusion_filters(app_id, opts = {})
# @param opts [Hash] the optional parameters
# @return [Array<(RumExclusionFiltersResponse, Integer, Hash)>] RumExclusionFiltersResponse data, response status code and response headers
def list_exclusion_filters_with_http_info(app_id, opts = {})
unstable_enabled = @api_client.config.unstable_operations["v2.list_exclusion_filters".to_sym]
if unstable_enabled
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_exclusion_filters")
else
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_exclusion_filters"))
end

if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: RumRetentionFiltersAPI.list_exclusion_filters ...'
Expand Down Expand Up @@ -842,12 +818,6 @@ def update_exclusion_filter(app_id, ef_id, body, opts = {})
# @param opts [Hash] the optional parameters
# @return [Array<(RumExclusionFilterResponse, Integer, Hash)>] RumExclusionFilterResponse data, response status code and response headers
def update_exclusion_filter_with_http_info(app_id, ef_id, body, opts = {})
unstable_enabled = @api_client.config.unstable_operations["v2.update_exclusion_filter".to_sym]
if unstable_enabled
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_exclusion_filter")
else
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_exclusion_filter"))
end

if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: RumRetentionFiltersAPI.update_exclusion_filter ...'
Expand Down
Loading