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. (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_idGet a RUM retention filter for a RUM application.
list_retention_filtersselectapp_idGet the list of RUM retention filters for a RUM application.
create_retention_filterinsertapp_id, dataCreate a RUM retention filter for a RUM application.<br />Returns RUM retention filter objects from the request body when the request is successful.
update_retention_filterupdateapp_id, rf_id, dataUpdate a RUM retention filter for a RUM application.<br />Returns RUM retention filter objects from the request body when the request is successful.
delete_retention_filterdeleteapp_id, rf_idDelete a RUM retention filter for a RUM application.
order_retention_filtersexecapp_idOrder RUM retention filters for a RUM application.<br />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.
rf_idstringRetention filter ID.
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.

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
;

INSERT examples

Create a RUM retention filter for a RUM application.<br />Returns RUM retention filter objects from the request body when the request is successful.

INSERT INTO datadog.digital_experience.rum_retention_filters (
data,
app_id
)
SELECT
'{{ data }}' /* required */,
'{{ app_id }}'
RETURNING
data
;

UPDATE examples

Update a RUM retention filter for a RUM application.<br />Returns RUM retention filter objects from the request body when the request is successful.

UPDATE datadog.digital_experience.rum_retention_filters
SET
data = '{{ data }}'
WHERE
app_id = '{{ app_id }}' --required
AND rf_id = '{{ rf_id }}' --required
AND 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
;

Lifecycle Methods

EXEC variables use wire (API) names.

Order RUM retention filters for a RUM application.<br />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,
@@json=
'{
"data": "{{ data }}"
}'
;