rum_metrics
Creates, updates, deletes, gets or lists a rum_metrics
resource.
Overview
Name | rum_metrics |
Type | Resource |
Id | datadog.digital_experience.rum_metrics |
Fields
The following fields are returned by SELECT
queries:
- get_rum_metric
- list_rum_metrics
Name | Datatype | Description |
---|---|---|
id | string | The name of the rum-based metric. (example: rum.sessions.webui.count) |
attributes | object | The object describing a Datadog rum-based metric. |
type | string | The type of the resource. The value should always be rum_metrics. (default: rum_metrics, example: rum_metrics) |
Name | Datatype | Description |
---|---|---|
id | string | The name of the rum-based metric. (example: rum.sessions.webui.count) |
attributes | object | The object describing a Datadog rum-based metric. |
type | string | The 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:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_rum_metric | select | metric_id , region | Get a specific rum-based metric from your organization. | |
list_rum_metrics | select | region | Get the list of configured rum-based metrics with their definitions. | |
create_rum_metric | insert | region , data__data | 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. | |
update_rum_metric | update | metric_id , region , data__data | Update 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_metric | delete | metric_id , region | Delete 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.
Name | Datatype | Description |
---|---|---|
metric_id | string | The name of the rum-based metric. |
region | string | (default: datadoghq.com) |
SELECT
examples
- get_rum_metric
- list_rum_metrics
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
;
Get the list of configured rum-based metrics with their definitions.
SELECT
id,
attributes,
type
FROM datadog.digital_experience.rum_metrics
WHERE region = '{{ region }}' -- required
;
INSERT
examples
- create_rum_metric
- Manifest
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
;
# Description fields are for documentation purposes
- name: rum_metrics
props:
- name: region
value: string
description: Required parameter for the rum_metrics resource.
- name: data
value: object
description: |
The new rum-based metric properties.
UPDATE
examples
- update_rum_metric
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_rum_metric
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
;