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
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 @@ -14,7 +14,6 @@ public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
defaultClient.setUnstableOperationEnabled("v2.createExclusionFilter", true);
RumRetentionFiltersApi apiInstance = new RumRetentionFiltersApi(defaultClient);

RumExclusionFilterCreateRequest body =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
defaultClient.setUnstableOperationEnabled("v2.deleteExclusionFilter", true);
RumRetentionFiltersApi apiInstance = new RumRetentionFiltersApi(defaultClient);

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
defaultClient.setUnstableOperationEnabled("v2.getExclusionFilter", true);
RumRetentionFiltersApi apiInstance = new RumRetentionFiltersApi(defaultClient);

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
defaultClient.setUnstableOperationEnabled("v2.listExclusionFilters", true);
RumRetentionFiltersApi apiInstance = new RumRetentionFiltersApi(defaultClient);

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
defaultClient.setUnstableOperationEnabled("v2.updateExclusionFilter", true);
RumRetentionFiltersApi apiInstance = new RumRetentionFiltersApi(defaultClient);

RumExclusionFilterUpdateRequest body =
Expand Down
5 changes: 0 additions & 5 deletions src/main/java/com/datadog/api/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -1537,11 +1537,6 @@ public class ApiClient {
put("v2.getSourcemaps", false);
put("v2.listSourcemaps", false);
put("v2.restoreSourcemaps", false);
put("v2.createExclusionFilter", false);
put("v2.deleteExclusionFilter", false);
put("v2.getExclusionFilter", false);
put("v2.listExclusionFilters", false);
put("v2.updateExclusionFilter", false);
put("v2.createRumConfig", false);
put("v2.getRumConfig", false);
put("v2.updateRumConfig", false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,6 @@ public CompletableFuture<RumExclusionFilterResponse> createExclusionFilterAsync(
*/
public ApiResponse<RumExclusionFilterResponse> createExclusionFilterWithHttpInfo(
String appId, RumExclusionFilterCreateRequest body) throws ApiException {
// Check if unstable operation is enabled
String operationId = "createExclusionFilter";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
}
Object localVarPostBody = body;

// verify the required parameter 'appId' is set
Expand Down Expand Up @@ -167,16 +160,6 @@ public ApiResponse<RumExclusionFilterResponse> createExclusionFilterWithHttpInfo
*/
public CompletableFuture<ApiResponse<RumExclusionFilterResponse>>
createExclusionFilterWithHttpInfoAsync(String appId, RumExclusionFilterCreateRequest body) {
// Check if unstable operation is enabled
String operationId = "createExclusionFilter";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<RumExclusionFilterResponse>> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = body;

// verify the required parameter 'appId' is set
Expand Down Expand Up @@ -439,13 +422,6 @@ public CompletableFuture<Void> deleteExclusionFilterAsync(String appId, String e
*/
public ApiResponse<Void> deleteExclusionFilterWithHttpInfo(String appId, String efId)
throws ApiException {
// Check if unstable operation is enabled
String operationId = "deleteExclusionFilter";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
}
Object localVarPostBody = null;

// verify the required parameter 'appId' is set
Expand Down Expand Up @@ -498,16 +474,6 @@ public ApiResponse<Void> deleteExclusionFilterWithHttpInfo(String appId, String
*/
public CompletableFuture<ApiResponse<Void>> deleteExclusionFilterWithHttpInfoAsync(
String appId, String efId) {
// Check if unstable operation is enabled
String operationId = "deleteExclusionFilter";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<Void>> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = null;

// verify the required parameter 'appId' is set
Expand Down Expand Up @@ -769,13 +735,6 @@ public CompletableFuture<RumExclusionFilterResponse> getExclusionFilterAsync(
*/
public ApiResponse<RumExclusionFilterResponse> getExclusionFilterWithHttpInfo(
String appId, String efId) throws ApiException {
// Check if unstable operation is enabled
String operationId = "getExclusionFilter";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
}
Object localVarPostBody = null;

// verify the required parameter 'appId' is set
Expand Down Expand Up @@ -828,16 +787,6 @@ public ApiResponse<RumExclusionFilterResponse> getExclusionFilterWithHttpInfo(
*/
public CompletableFuture<ApiResponse<RumExclusionFilterResponse>>
getExclusionFilterWithHttpInfoAsync(String appId, String efId) {
// Check if unstable operation is enabled
String operationId = "getExclusionFilter";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<RumExclusionFilterResponse>> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = null;

// verify the required parameter 'appId' is set
Expand Down Expand Up @@ -1268,13 +1217,6 @@ public CompletableFuture<RumExclusionFiltersResponse> listExclusionFiltersAsync(
*/
public ApiResponse<RumExclusionFiltersResponse> listExclusionFiltersWithHttpInfo(String appId)
throws ApiException {
// Check if unstable operation is enabled
String operationId = "listExclusionFilters";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
}
Object localVarPostBody = null;

// verify the required parameter 'appId' is set
Expand Down Expand Up @@ -1319,17 +1261,6 @@ public ApiResponse<RumExclusionFiltersResponse> listExclusionFiltersWithHttpInfo
*/
public CompletableFuture<ApiResponse<RumExclusionFiltersResponse>>
listExclusionFiltersWithHttpInfoAsync(String appId) {
// Check if unstable operation is enabled
String operationId = "listExclusionFilters";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<RumExclusionFiltersResponse>> result =
new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = null;

// verify the required parameter 'appId' is set
Expand Down Expand Up @@ -1873,13 +1804,6 @@ public CompletableFuture<RumExclusionFilterResponse> updateExclusionFilterAsync(
*/
public ApiResponse<RumExclusionFilterResponse> updateExclusionFilterWithHttpInfo(
String appId, String efId, RumExclusionFilterUpdateRequest body) throws ApiException {
// Check if unstable operation is enabled
String operationId = "updateExclusionFilter";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
}
Object localVarPostBody = body;

// verify the required parameter 'appId' is set
Expand Down Expand Up @@ -1940,16 +1864,6 @@ public ApiResponse<RumExclusionFilterResponse> updateExclusionFilterWithHttpInfo
public CompletableFuture<ApiResponse<RumExclusionFilterResponse>>
updateExclusionFilterWithHttpInfoAsync(
String appId, String efId, RumExclusionFilterUpdateRequest body) {
// Check if unstable operation is enabled
String operationId = "updateExclusionFilter";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<RumExclusionFilterResponse>> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = body;

// verify the required parameter 'appId' is set
Expand Down
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
Loading