Skip to main content

rum_retention_filters

Creates, updates, deletes, gets or lists a rum_retention_filters resource.

Overview

Namerum_retention_filters
TypeResource
Iddatadog.digital_experience.rum_retention_filters

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID of retention filter in UUID. (example: 051601eb-54a0-abc0-03f9-cc02efa18892)
attributesobjectThe object describing attributes of a RUM retention filter.
typestringThe 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:

NameAccessible byRequired ParamsOptional ParamsDescription
get_retention_filterselectapp_id, rf_id, regionGet a RUM retention filter for a RUM application.
list_retention_filtersselectapp_id, regionGet the list of RUM retention filters for a RUM application.
create_retention_filterinsertapp_id, region, data__dataCreate a RUM retention filter for a RUM application.
Returns RUM retention filter objects from the request body when the request is successful.
update_retention_filterupdateapp_id, rf_id, region, data__dataUpdate a RUM retention filter for a RUM application.
Returns RUM retention filter objects from the request body when the request is successful.
delete_retention_filterdeleteapp_id, rf_id, regionDelete a RUM retention filter for a RUM application.
order_retention_filtersexecapp_id, regionOrder 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.

NameDatatypeDescription
app_idstringRUM application ID.
regionstring(default: datadoghq.com)
rf_idstringRetention filter ID.

SELECT examples

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
;

INSERT examples

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
;

UPDATE examples

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 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 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 }}"
}'
;