Skip to main content

rum_application_retention_filter_exclusions

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

Overview

Namerum_application_retention_filter_exclusions
TypeResource
Iddatadog.digital_experience.rum_application_retention_filter_exclusions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the exclusion filter. (example: 051601eb-54a0-abc0-03f9-cc02efa18892)
attributesobjectThe attributes of an exclusion filter.
metaobjectMetadata about the exclusion filter.
typestringThe resource type. The value must be exclusion_filters. (exclusion_filters) (default: exclusion_filters, example: exclusion_filters)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_exclusion_filterselectapp_id, ef_idGet a single exclusion filter for a RUM application.
list_exclusion_filtersselectapp_idGet the list of exclusion filters for a RUM application.<br />The built-in Error Tracking exclusion filter (error_tracking_exclusion_filter) is always returned first.
create_exclusion_filterinsertapp_id, dataCreate an exclusion filter for a RUM application.<br />Returns the created exclusion filter when the request is successful.
update_exclusion_filterupdateapp_id, ef_id, dataUpdate an exclusion filter for a RUM application.<br />For the built-in Error Tracking exclusion filter (error_tracking_exclusion_filter), only enabled can be<br />updated; name, event_type, and query must be omitted.<br />Returns the updated exclusion filter when the request is successful.
delete_exclusion_filterdeleteapp_id, ef_idDelete an exclusion filter for a RUM application.<br />The built-in Error Tracking exclusion filter (error_tracking_exclusion_filter) cannot be deleted;<br />attempting to do so returns a 405 Method Not Allowed response.

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.
ef_idstringExclusion 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 single exclusion filter for a RUM application.

SELECT
id,
attributes,
meta,
type
FROM datadog.digital_experience.rum_application_retention_filter_exclusions
WHERE app_id = '{{ app_id }}' -- required
AND ef_id = '{{ ef_id }}' -- required
;

INSERT examples

Create an exclusion filter for a RUM application.<br />Returns the created exclusion filter when the request is successful.

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

UPDATE examples

Update an exclusion filter for a RUM application.<br />For the built-in Error Tracking exclusion filter (error_tracking_exclusion_filter), only enabled can be<br />updated; name, event_type, and query must be omitted.<br />Returns the updated exclusion filter when the request is successful.

UPDATE datadog.digital_experience.rum_application_retention_filter_exclusions
SET
data = '{{ data }}'
WHERE
app_id = '{{ app_id }}' --required
AND ef_id = '{{ ef_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data;

DELETE examples

Delete an exclusion filter for a RUM application.<br />The built-in Error Tracking exclusion filter (error_tracking_exclusion_filter) cannot be deleted;<br />attempting to do so returns a 405 Method Not Allowed response.

DELETE FROM datadog.digital_experience.rum_application_retention_filter_exclusions
WHERE app_id = '{{ app_id }}' --required
AND ef_id = '{{ ef_id }}' --required
;