Skip to content

Commit 86d232b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[RUM] Use a randomized id for metrics creation scenarios. (#2419)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent b84867b commit 86d232b

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-05-23 12:48:24.381169",
8-
"spec_repo_commit": "11a9dcb4"
7+
"regenerated": "2025-05-23 14:41:17.269012",
8+
"spec_repo_commit": "a4ecd4cf"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-23 12:48:24.396933",
13-
"spec_repo_commit": "11a9dcb4"
12+
"regenerated": "2025-05-23 14:41:17.286736",
13+
"spec_repo_commit": "a4ecd4cf"
1414
}
1515
}
1616
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-11-28T15:31:19.388Z
1+
2025-05-22T06:41:46.880Z

cassettes/features/v2/rum_metrics/Create-a-rum-based-metric-returns-Created-response.yml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/v2/rum-metrics/CreateRumMetric.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
_when: DatadogAPIClient::V2::RumMetricUniquenessWhen::WHEN_MATCH,
2626
}),
2727
}),
28-
id: "rum.sessions.webui.count",
28+
id: "examplerummetric",
2929
type: DatadogAPIClient::V2::RumMetricType::RUM_METRICS,
3030
}),
3131
})

features/v2/rum_metrics.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ Feature: Rum Metrics
2727
@team:DataDog/rum-backend
2828
Scenario: Create a rum-based metric returns "Created" response
2929
Given new "CreateRumMetric" request
30-
And body with value {"data": {"attributes": {"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"}}, "id": "rum.sessions.webui.count", "type": "rum_metrics"}}
30+
And body with value {"data": {"attributes": {"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"}}, "id": "{{ unique_lower_alnum }}", "type": "rum_metrics"}}
3131
When the request is sent
3232
Then the response status is 201 Created
33-
And the response "data.id" is equal to "rum.sessions.webui.count"
33+
And the response "data.id" is equal to "{{ unique_lower_alnum }}"
3434
And the response "data.type" is equal to "rum_metrics"
3535
And the response "data.attributes.event_type" is equal to "session"
3636
And the response "data.attributes.compute.aggregation_type" is equal to "distribution"

0 commit comments

Comments
 (0)