diff --git a/docs/resources/rum_metric.md b/docs/resources/rum_metric.md index c7e00a212..63f2b8531 100644 --- a/docs/resources/rum_metric.md +++ b/docs/resources/rum_metric.md @@ -15,15 +15,16 @@ Provides a Datadog RumMetric resource. This can be used to create and manage Dat ```terraform # Create new rum_metric resource -resource "datadog_rum_metric" "foo" { +resource "datadog_rum_metric" "testing_rum_metric" { + name = "testing.rum.metric" compute { aggregation_type = "distribution" - include_percentiles = True + include_percentiles = true path = "@duration" } event_type = "session" filter { - query = "@service:web-ui: " + query = "@service:web-ui" } group_by { path = "@browser.name" @@ -96,5 +97,5 @@ Optional: Import is supported using the following syntax: ```shell -terraform import datadog_rum_metric.new_list "" +terraform import datadog_rum_metric.testing_rum_metric "testing.rum.metric" ``` diff --git a/examples/resources/datadog_rum_metric/import.sh b/examples/resources/datadog_rum_metric/import.sh index 43d00dbfc..9d5d2678c 100644 --- a/examples/resources/datadog_rum_metric/import.sh +++ b/examples/resources/datadog_rum_metric/import.sh @@ -1 +1 @@ -terraform import datadog_rum_metric.new_list "" \ No newline at end of file +terraform import datadog_rum_metric.testing_rum_metric "testing.rum.metric" \ No newline at end of file diff --git a/examples/resources/datadog_rum_metric/resource.tf b/examples/resources/datadog_rum_metric/resource.tf index bd7c48ebd..610dd623b 100644 --- a/examples/resources/datadog_rum_metric/resource.tf +++ b/examples/resources/datadog_rum_metric/resource.tf @@ -1,14 +1,15 @@ # Create new rum_metric resource -resource "datadog_rum_metric" "foo" { +resource "datadog_rum_metric" "testing_rum_metric" { + name = "testing.rum.metric" compute { aggregation_type = "distribution" - include_percentiles = True + include_percentiles = true path = "@duration" } event_type = "session" filter { - query = "@service:web-ui: " + query = "@service:web-ui" } group_by { path = "@browser.name" diff --git a/examples/resources/datadog_rum_metrics/import.sh b/examples/resources/datadog_rum_metrics/import.sh deleted file mode 100644 index d3aadea1b..000000000 --- a/examples/resources/datadog_rum_metrics/import.sh +++ /dev/null @@ -1 +0,0 @@ -terraform import datadog_rum_metrics.new_list "" \ No newline at end of file diff --git a/examples/resources/datadog_rum_metrics/resource.tf b/examples/resources/datadog_rum_metrics/resource.tf deleted file mode 100644 index 2fc54d628..000000000 --- a/examples/resources/datadog_rum_metrics/resource.tf +++ /dev/null @@ -1,20 +0,0 @@ -# Create new rum_metrics resource - -resource "datadog_rum_metrics" "foo" { - compute { - aggregation_type = "distribution" - include_percentiles = True - path = "@duration" - } - event_type = "session" - filter { - query = "@service:web-ui: " - } - group_by { - path = "@browser.name" - tag_name = "browser_name" - } - uniqueness { - when = "match" - } -} \ No newline at end of file