rum_retention_filters
Creates, updates, deletes, gets or lists a rum_retention_filters resource.
Overview
| Name | rum_retention_filters | 
| Type | Resource | 
| Id | datadog.digital_experience.rum_retention_filters | 
Fields
The following fields are returned by SELECT queries:
- get_retention_filter
- list_retention_filters
| Name | Datatype | Description | 
|---|---|---|
| id | string | ID of retention filter in UUID. (example: 051601eb-54a0-abc0-03f9-cc02efa18892) | 
| attributes | object | The object describing attributes of a RUM retention filter. | 
| type | string | The type of the resource. The value should always be retention_filters. (default: retention_filters, example: retention_filters) | 
| Name | Datatype | Description | 
|---|---|---|
| id | string | ID of retention filter in UUID. (example: 051601eb-54a0-abc0-03f9-cc02efa18892) | 
| attributes | object | The object describing attributes of a RUM retention filter. | 
| type | string | The type of the resource. The value should always be retention_filters. (default: retention_filters, example: retention_filters) | 
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description | 
|---|---|---|---|---|
| get_retention_filter | select | app_id,rf_id,region | Get a RUM retention filter for a RUM application. | |
| list_retention_filters | select | app_id,region | Get the list of RUM retention filters for a RUM application. | |
| create_retention_filter | insert | app_id,region,data__data | Create a RUM retention filter for a RUM application. Returns RUM retention filter objects from the request body when the request is successful. | |
| update_retention_filter | update | app_id,rf_id,region,data__data | Update a RUM retention filter for a RUM application. Returns RUM retention filter objects from the request body when the request is successful. | |
| delete_retention_filter | delete | app_id,rf_id,region | Delete a RUM retention filter for a RUM application. | |
| order_retention_filters | exec | app_id,region | Order RUM retention filters for a RUM application. Returns RUM retention filter objects without attributes from the request body when the request is successful. | 
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description | 
|---|---|---|
| app_id | string | RUM application ID. | 
| region | string | (default: datadoghq.com) | 
| rf_id | string | Retention filter ID. | 
SELECT examples
- get_retention_filter
- list_retention_filters
Get a RUM retention filter for a RUM application.
SELECT
id,
attributes,
type
FROM datadog.digital_experience.rum_retention_filters
WHERE app_id = '{{ app_id }}' -- required
AND rf_id = '{{ rf_id }}' -- required
AND region = '{{ region }}' -- required
;
Get the list of RUM retention filters for a RUM application.
SELECT
id,
attributes,
type
FROM datadog.digital_experience.rum_retention_filters
WHERE app_id = '{{ app_id }}' -- required
AND region = '{{ region }}' -- required
;
INSERT examples
- create_retention_filter
- Manifest
Create a RUM retention filter for a RUM application.
Returns RUM retention filter objects from the request body when the request is successful.
INSERT INTO datadog.digital_experience.rum_retention_filters (
data__data,
app_id,
region
)
SELECT 
'{{ data }}' /* required */,
'{{ app_id }}',
'{{ region }}'
RETURNING
data
;
# Description fields are for documentation purposes
- name: rum_retention_filters
  props:
    - name: app_id
      value: string
      description: Required parameter for the rum_retention_filters resource.
    - name: region
      value: string
      description: Required parameter for the rum_retention_filters resource.
    - name: data
      value: object
      description: |
        The new RUM retention filter properties to create.
UPDATE examples
- update_retention_filter
Update a RUM retention filter for a RUM application.
Returns RUM retention filter objects from the request body when the request is successful.
UPDATE datadog.digital_experience.rum_retention_filters
SET 
data__data = '{{ data }}'
WHERE 
app_id = '{{ app_id }}' --required
AND rf_id = '{{ rf_id }}' --required
AND region = '{{ region }}' --required
AND data__data = '{{ data }}' --required
RETURNING
data;
DELETE examples
- delete_retention_filter
Delete a RUM retention filter for a RUM application.
DELETE FROM datadog.digital_experience.rum_retention_filters
WHERE app_id = '{{ app_id }}' --required
AND rf_id = '{{ rf_id }}' --required
AND region = '{{ region }}' --required
;
Lifecycle Methods
- order_retention_filters
Order RUM retention filters for a RUM application.
Returns RUM retention filter objects without attributes from the request body when the request is successful.
EXEC datadog.digital_experience.rum_retention_filters.order_retention_filters 
@app_id='{{ app_id }}' --required, 
@region='{{ region }}' --required 
@@json=
'{
"data": "{{ data }}"
}'
;