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:49.007546",
"spec_repo_commit": "d7618fa5"
"regenerated": "2025-03-11 16:30:33.807462",
"spec_repo_commit": "baf04a80"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-03-11 13:16:49.023038",
"spec_repo_commit": "d7618fa5"
"regenerated": "2025-03-11 16:30:33.823846",
"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
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
import com.datadog.api.client.v2.model.RumRetentionFilterCreateData;
import com.datadog.api.client.v2.model.RumRetentionFilterCreateRequest;
import com.datadog.api.client.v2.model.RumRetentionFilterEventType;
import com.datadog.api.client.v2.model.RumRetentionFilterMeta;
import com.datadog.api.client.v2.model.RumRetentionFilterResponse;
import com.datadog.api.client.v2.model.RumRetentionFilterSource;
import com.datadog.api.client.v2.model.RumRetentionFilterType;

public class Example {
Expand All @@ -28,8 +26,7 @@ public static void main(String[] args) {
.eventType(RumRetentionFilterEventType.SESSION)
.query("custom_query")
.sampleRate(50L)
.enabled(true))
.meta(new RumRetentionFilterMeta().source(RumRetentionFilterSource.TERRAFORM)));
.enabled(true)));

try {
RumRetentionFilterResponse result =
Expand Down
Loading