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. (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. (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 | Get a specific RUM-based metric from your organization. | |
list_rum_metrics | select | Get the list of configured RUM-based metrics with their definitions. | ||
create_rum_metric | insert | data | Create a metric based on your organization's RUM data.<br />Returns the RUM-based metric object from the request body when the request is successful. | |
update_rum_metric | update | metric_id, data | Update a specific RUM-based metric from your organization.<br />Returns the RUM-based metric object from the request body when the request is successful. | |
delete_rum_metric | delete | metric_id | 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. |
site | string | The 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_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
;
Get the list of configured RUM-based metrics with their definitions.
SELECT
id,
attributes,
type
FROM datadog.digital_experience.rum_metrics
;
INSERT examples
- create_rum_metric
- Manifest
Create a metric based on your organization's RUM data.<br />Returns the RUM-based metric object from the request body when the request is successful.
INSERT INTO datadog.digital_experience.rum_metrics (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;
# Description fields are for documentation purposes
- name: rum_metrics
props:
- name: data
description: |
The new RUM-based metric properties.
value:
attributes:
compute:
aggregation_type: "{{ aggregation_type }}"
include_percentiles: {{ include_percentiles }}
path: "{{ path }}"
event_type: "{{ event_type }}"
filter:
query: "{{ query }}"
group_by:
- path: "{{ path }}"
tag_name: "{{ tag_name }}"
uniqueness:
when: "{{ when }}"
id: "{{ id }}"
type: "{{ type }}"
UPDATE examples
- update_rum_metric
Update a specific RUM-based metric from your organization.<br />Returns the RUM-based metric object from the request body when the request is successful.
UPDATE datadog.digital_experience.rum_metrics
SET
data = '{{ data }}'
WHERE
metric_id = '{{ metric_id }}' --required
AND 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
;