Skip to main content

rum_metrics

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

Overview

Namerum_metrics
TypeResource
Iddatadog.digital_experience.rum_metrics

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe name of the rum-based metric. (example: rum.sessions.webui.count)
attributesobjectThe object describing a Datadog rum-based metric.
typestringThe type of the resource. The value should always be rum_metrics. (default: rum_metrics, example: rum_metrics)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_rum_metricselectmetric_id, regionGet a specific rum-based metric from your organization.
list_rum_metricsselectregionGet the list of configured rum-based metrics with their definitions.
create_rum_metricinsertregion, data__dataCreate a metric based on your organization's RUM data.
Returns the rum-based metric object from the request body when the request is successful.
update_rum_metricupdatemetric_id, region, data__dataUpdate a specific rum-based metric from your organization.
Returns the rum-based metric object from the request body when the request is successful.
delete_rum_metricdeletemetric_id, regionDelete a specific rum-based metric from your organization.

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
metric_idstringThe name of the rum-based metric.
regionstring(default: datadoghq.com)

SELECT examples

Get a specific rum-based metric from your organization.

SELECT
id,
attributes,
type
FROM datadog.digital_experience.rum_metrics
WHERE metric_id = '{{ metric_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a metric based on your organization's RUM data.
Returns the rum-based metric object from the request body when the request is successful.

INSERT INTO datadog.digital_experience.rum_metrics (
data__data,
region
)
SELECT
'{{ data }}' /* required */,
'{{ region }}'
RETURNING
data
;

UPDATE examples

Update a specific rum-based metric from your organization.
Returns the rum-based metric object from the request body when the request is successful.

UPDATE datadog.digital_experience.rum_metrics
SET
data__data = '{{ data }}'
WHERE
metric_id = '{{ metric_id }}' --required
AND region = '{{ region }}' --required
AND data__data = '{{ data }}' --required
RETURNING
data;

DELETE examples

Delete a specific rum-based metric from your organization.

DELETE FROM datadog.digital_experience.rum_metrics
WHERE metric_id = '{{ metric_id }}' --required
AND region = '{{ region }}' --required
;