Skip to content

Commit 507ac29

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 00177f7b of spec repo
1 parent e59672d commit 507ac29

11 files changed

+49
-55
lines changed

.apigentools-info

+4-4
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-03-06 21:28:37.526759",
8-
"spec_repo_commit": "d6a6faf6"
7+
"regenerated": "2025-03-10 17:41:36.780766",
8+
"spec_repo_commit": "00177f7b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-06 21:28:37.542319",
13-
"spec_repo_commit": "d6a6faf6"
12+
"regenerated": "2025-03-10 17:41:36.796128",
13+
"spec_repo_commit": "00177f7b"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+12-12
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ components:
684684
schema:
685685
type: string
686686
RumApplicationIDParameter:
687-
description: Application ID.
687+
description: RUM application ID.
688688
in: path
689689
name: app_id
690690
required: true
@@ -25579,13 +25579,12 @@ components:
2557925579
minimum: 0
2558025580
type: integer
2558125581
RumRetentionFilterSource:
25582-
description: The type of RUM events to filter on.
25582+
description: The source that defines the origin of the retention filter.
2558325583
enum:
2558425584
- ui
2558525585
- terraform
2558625586
- default
2558725587
- unknown
25588-
example: terraform
2558925588
type: string
2559025589
x-enum-varnames:
2559125590
- UI
@@ -25654,7 +25653,8 @@ components:
2565425653
description: 'The list of RUM retention filter IDs along with their corresponding
2565525654
type to reorder.
2565625655

25657-
All retention filter IDs should be included in the list created for an application.'
25656+
All retention filter IDs should be included in the list created for a RUM
25657+
application.'
2565825658
properties:
2565925659
data:
2566025660
description: A list of RUM retention filter IDs along with type.
@@ -25672,7 +25672,7 @@ components:
2567225672
type: array
2567325673
type: object
2567425674
RumRetentionFiltersResponse:
25675-
description: All RUM retention filters for an application.
25675+
description: All RUM retention filters for a RUM application.
2567625676
properties:
2567725677
data:
2567825678
description: A list of RUM retention filters.
@@ -46225,7 +46225,7 @@ paths:
4622546225
- rum_apps_write
4622646226
/api/v2/rum/applications/{app_id}/relationships/retention_filters:
4622746227
patch:
46228-
description: 'Order RUM retention filters for an application.
46228+
description: 'Order RUM retention filters for a RUM application.
4622946229

4623046230
Returns RUM retention filter objects without attributes and meta from the
4623146231
request body when the request is successful.'
@@ -46258,7 +46258,7 @@ paths:
4625846258
x-codegen-request-body-name: body
4625946259
/api/v2/rum/applications/{app_id}/retention_filters:
4626046260
get:
46261-
description: Get the list of RUM retention filters for an application.
46261+
description: Get the list of RUM retention filters for a RUM application.
4626246262
operationId: ListRetentionFilters
4626346263
parameters:
4626446264
- $ref: '#/components/parameters/RumApplicationIDParameter'
@@ -46277,7 +46277,7 @@ paths:
4627746277
tags:
4627846278
- Rum Retention Filters
4627946279
post:
46280-
description: 'Create a RUM retention filter for an application.
46280+
description: 'Create a RUM retention filter for a RUM application.
4628146281

4628246282
Returns RUM retention filter objects from the request body when the request
4628346283
is successful.'
@@ -46310,7 +46310,7 @@ paths:
4631046310
x-codegen-request-body-name: body
4631146311
/api/v2/rum/applications/{app_id}/retention_filters/{rf_id}:
4631246312
delete:
46313-
description: Delete a RUM retention filter for an application.
46313+
description: Delete a RUM retention filter for a RUM application.
4631446314
operationId: DeleteRetentionFilter
4631546315
parameters:
4631646316
- $ref: '#/components/parameters/RumApplicationIDParameter'
@@ -46328,7 +46328,7 @@ paths:
4632846328
tags:
4632946329
- Rum Retention Filters
4633046330
get:
46331-
description: Get a RUM retention filter for an application.
46331+
description: Get a RUM retention filter for a RUM application.
4633246332
operationId: GetRetentionFilter
4633346333
parameters:
4633446334
- $ref: '#/components/parameters/RumApplicationIDParameter'
@@ -46350,7 +46350,7 @@ paths:
4635046350
tags:
4635146351
- Rum Retention Filters
4635246352
patch:
46353-
description: 'Update a RUM retention filter for an application.
46353+
description: 'Update a RUM retention filter for a RUM application.
4635446354

4635546355
Returns RUM retention filter objects from the request body when the request
4635646356
is successful.'
@@ -53800,7 +53800,7 @@ tags:
5380053800
url: https://docs.datadoghq.com/real_user_monitoring/platform/generate_metrics/
5380153801
name: Rum Metrics
5380253802
- description: Manage retention filters through [Manage Applications](https://app.datadoghq.com/rum/list)
53803-
for your organization.
53803+
of RUM for your organization.
5380453804
name: Rum Retention Filters
5380553805
- description: Create and manage your security rules, signals, filters, and more.
5380653806
See the [Datadog Security page](https://docs.datadoghq.com/security/) for more

LICENSE-3rdparty.csv

-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ base64,https://github.com/marshallpierce/rust-base64,MIT OR Apache-2.0,"Alice Ma
1111
base64,https://github.com/marshallpierce/rust-base64,MIT OR Apache-2.0,Marshall Pierce <[email protected]>
1212
bitflags,https://github.com/bitflags/bitflags,MIT OR Apache-2.0,The Rust Project Developers
1313
bumpalo,https://github.com/fitzgen/bumpalo,MIT OR Apache-2.0,Nick Fitzgerald <[email protected]>
14-
byteorder,https://github.com/BurntSushi/byteorder,Unlicense OR MIT,Andrew Gallant <[email protected]>
1514
bytes,https://github.com/tokio-rs/bytes,MIT,"Carl Lerche <[email protected]>, Sean McArthur <[email protected]>"
1615
cfg-if,https://github.com/alexcrichton/cfg-if,MIT OR Apache-2.0,Alex Crichton <[email protected]>
1716
chrono,https://github.com/chronotope/chrono,MIT OR Apache-2.0,The chrono Authors
@@ -172,7 +171,6 @@ write16,https://github.com/hsivonen/write16,Apache-2.0 OR MIT,The write16 Author
172171
writeable,https://github.com/unicode-org/icu4x,Unicode-3.0,The ICU4X Project Developers
173172
yoke,https://github.com/unicode-org/icu4x,Unicode-3.0,Manish Goregaokar <[email protected]>
174173
yoke-derive,https://github.com/unicode-org/icu4x,Unicode-3.0,Manish Goregaokar <[email protected]>
175-
zerocopy,https://github.com/google/zerocopy,BSD-2-Clause OR Apache-2.0 OR MIT,Joshua Liebow-Feeser <[email protected]>
176174
zerocopy,https://github.com/google/zerocopy,BSD-2-Clause OR Apache-2.0 OR MIT,"Joshua Liebow-Feeser <[email protected]>, Jack Wrenn <[email protected]>"
177175
zerofrom,https://github.com/unicode-org/icu4x,Unicode-3.0,Manish Goregaokar <[email protected]>
178176
zerofrom-derive,https://github.com/unicode-org/icu4x,Unicode-3.0,Manish Goregaokar <[email protected]>

examples/v2_rum-retention-filters_CreateRetentionFilter.rs

+9-14
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,20 @@ use datadog_api_client::datadogV2::model::RumRetentionFilterCreateAttributes;
55
use datadog_api_client::datadogV2::model::RumRetentionFilterCreateData;
66
use datadog_api_client::datadogV2::model::RumRetentionFilterCreateRequest;
77
use datadog_api_client::datadogV2::model::RumRetentionFilterEventType;
8-
use datadog_api_client::datadogV2::model::RumRetentionFilterMeta;
9-
use datadog_api_client::datadogV2::model::RumRetentionFilterSource;
108
use datadog_api_client::datadogV2::model::RumRetentionFilterType;
119

1210
#[tokio::main]
1311
async fn main() {
14-
let body = RumRetentionFilterCreateRequest::new(
15-
RumRetentionFilterCreateData::new(
16-
RumRetentionFilterCreateAttributes::new(
17-
RumRetentionFilterEventType::SESSION,
18-
"Test creating retention filter".to_string(),
19-
50,
20-
)
21-
.enabled(true)
22-
.query("custom_query".to_string()),
23-
RumRetentionFilterType::RETENTION_FILTERS,
12+
let body = RumRetentionFilterCreateRequest::new(RumRetentionFilterCreateData::new(
13+
RumRetentionFilterCreateAttributes::new(
14+
RumRetentionFilterEventType::SESSION,
15+
"Test creating retention filter".to_string(),
16+
50,
2417
)
25-
.meta(RumRetentionFilterMeta::new().source(RumRetentionFilterSource::TERRAFORM)),
26-
);
18+
.enabled(true)
19+
.query("custom_query".to_string()),
20+
RumRetentionFilterType::RETENTION_FILTERS,
21+
));
2722
let configuration = datadog::Configuration::new();
2823
let api = RumRetentionFiltersAPI::with_config(configuration);
2924
let resp = api

src/datadogV2/api/api_rum_retention_filters.rs

+13-13
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub enum UpdateRetentionFilterError {
5858
UnknownValue(serde_json::Value),
5959
}
6060

61-
/// Manage retention filters through [Manage Applications](<https://app.datadoghq.com/rum/list>) for your organization.
61+
/// Manage retention filters through [Manage Applications](<https://app.datadoghq.com/rum/list>) of RUM for your organization.
6262
#[derive(Debug, Clone)]
6363
pub struct RumRetentionFiltersAPI {
6464
config: datadog::Configuration,
@@ -123,7 +123,7 @@ impl RumRetentionFiltersAPI {
123123
Self { config, client }
124124
}
125125

126-
/// Create a RUM retention filter for an application.
126+
/// Create a RUM retention filter for a RUM application.
127127
/// Returns RUM retention filter objects from the request body when the request is successful.
128128
pub async fn create_retention_filter(
129129
&self,
@@ -150,7 +150,7 @@ impl RumRetentionFiltersAPI {
150150
}
151151
}
152152

153-
/// Create a RUM retention filter for an application.
153+
/// Create a RUM retention filter for a RUM application.
154154
/// Returns RUM retention filter objects from the request body when the request is successful.
155155
pub async fn create_retention_filter_with_http_info(
156156
&self,
@@ -285,7 +285,7 @@ impl RumRetentionFiltersAPI {
285285
}
286286
}
287287

288-
/// Delete a RUM retention filter for an application.
288+
/// Delete a RUM retention filter for a RUM application.
289289
pub async fn delete_retention_filter(
290290
&self,
291291
app_id: String,
@@ -300,7 +300,7 @@ impl RumRetentionFiltersAPI {
300300
}
301301
}
302302

303-
/// Delete a RUM retention filter for an application.
303+
/// Delete a RUM retention filter for a RUM application.
304304
pub async fn delete_retention_filter_with_http_info(
305305
&self,
306306
app_id: String,
@@ -379,7 +379,7 @@ impl RumRetentionFiltersAPI {
379379
}
380380
}
381381

382-
/// Get a RUM retention filter for an application.
382+
/// Get a RUM retention filter for a RUM application.
383383
pub async fn get_retention_filter(
384384
&self,
385385
app_id: String,
@@ -405,7 +405,7 @@ impl RumRetentionFiltersAPI {
405405
}
406406
}
407407

408-
/// Get a RUM retention filter for an application.
408+
/// Get a RUM retention filter for a RUM application.
409409
pub async fn get_retention_filter_with_http_info(
410410
&self,
411411
app_id: String,
@@ -494,7 +494,7 @@ impl RumRetentionFiltersAPI {
494494
}
495495
}
496496

497-
/// Get the list of RUM retention filters for an application.
497+
/// Get the list of RUM retention filters for a RUM application.
498498
pub async fn list_retention_filters(
499499
&self,
500500
app_id: String,
@@ -516,7 +516,7 @@ impl RumRetentionFiltersAPI {
516516
}
517517
}
518518

519-
/// Get the list of RUM retention filters for an application.
519+
/// Get the list of RUM retention filters for a RUM application.
520520
pub async fn list_retention_filters_with_http_info(
521521
&self,
522522
app_id: String,
@@ -603,7 +603,7 @@ impl RumRetentionFiltersAPI {
603603
}
604604
}
605605

606-
/// Order RUM retention filters for an application.
606+
/// Order RUM retention filters for a RUM application.
607607
/// Returns RUM retention filter objects without attributes and meta from the request body when the request is successful.
608608
pub async fn order_retention_filters(
609609
&self,
@@ -630,7 +630,7 @@ impl RumRetentionFiltersAPI {
630630
}
631631
}
632632

633-
/// Order RUM retention filters for an application.
633+
/// Order RUM retention filters for a RUM application.
634634
/// Returns RUM retention filter objects without attributes and meta from the request body when the request is successful.
635635
pub async fn order_retention_filters_with_http_info(
636636
&self,
@@ -765,7 +765,7 @@ impl RumRetentionFiltersAPI {
765765
}
766766
}
767767

768-
/// Update a RUM retention filter for an application.
768+
/// Update a RUM retention filter for a RUM application.
769769
/// Returns RUM retention filter objects from the request body when the request is successful.
770770
pub async fn update_retention_filter(
771771
&self,
@@ -793,7 +793,7 @@ impl RumRetentionFiltersAPI {
793793
}
794794
}
795795

796-
/// Update a RUM retention filter for an application.
796+
/// Update a RUM retention filter for a RUM application.
797797
/// Returns RUM retention filter objects from the request body when the request is successful.
798798
pub async fn update_retention_filter_with_http_info(
799799
&self,

src/datadogV2/model/model_rum_retention_filter_meta.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct RumRetentionFilterMeta {
14-
/// The type of RUM events to filter on.
14+
/// The source that defines the origin of the retention filter.
1515
#[serde(rename = "source")]
1616
pub source: Option<crate::datadogV2::model::RumRetentionFilterSource>,
1717
#[serde(flatten)]

src/datadogV2/model/model_rum_retention_filters_order_request.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use serde_with::skip_serializing_none;
77
use std::fmt::{self, Formatter};
88

99
/// The list of RUM retention filter IDs along with their corresponding type to reorder.
10-
/// All retention filter IDs should be included in the list created for an application.
10+
/// All retention filter IDs should be included in the list created for a RUM application.
1111
#[non_exhaustive]
1212
#[skip_serializing_none]
1313
#[derive(Clone, Debug, PartialEq, Serialize)]

src/datadogV2/model/model_rum_retention_filters_response.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use serde::{Deserialize, Deserializer, Serialize};
66
use serde_with::skip_serializing_none;
77
use std::fmt::{self, Formatter};
88

9-
/// All RUM retention filters for an application.
9+
/// All RUM retention filters for a RUM application.
1010
#[non_exhaustive]
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]

tests/scenarios/cassettes/v2/rum_retention_filters/Create-a-RUM-retention-filter-returns-Created-response.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"request": {
55
"body": {
6-
"string": "{\"data\":{\"attributes\":{\"enabled\":true,\"event_type\":\"session\",\"name\":\"Test creating retention filter\",\"query\":\"custom_query\",\"sample_rate\":50},\"meta\":{\"source\":\"terraform\"},\"type\":\"retention_filters\"}}",
6+
"string": "{\"data\":{\"attributes\":{\"enabled\":true,\"event_type\":\"session\",\"name\":\"Test creating retention filter\",\"query\":\"custom_query\",\"sample_rate\":50},\"type\":\"retention_filters\"}}",
77
"encoding": null
88
},
99
"headers": {
@@ -19,7 +19,7 @@
1919
},
2020
"response": {
2121
"body": {
22-
"string": "{\"data\":{\"id\":\"4b95d361-f65d-4515-9824-c9aaeba5ac2a\",\"type\":\"retention_filters\",\"attributes\":{\"enabled\":true,\"event_type\":\"session\",\"name\":\"Test creating retention filter\",\"query\":\"custom_query\",\"sample_rate\":50},\"meta\":{\"source\":\"terraform\"}}}",
22+
"string": "{\"data\":{\"id\":\"4b95d361-f65d-4515-9824-c9aaeba5ac2a\",\"type\":\"retention_filters\",\"attributes\":{\"enabled\":true,\"event_type\":\"session\",\"name\":\"Test creating retention filter\",\"query\":\"custom_query\",\"sample_rate\":50},\"meta\":{\"source\":\"unknown\"}}}",
2323
"encoding": null
2424
},
2525
"headers": {

tests/scenarios/cassettes/v2/rum_retention_filters/Get-a-RUM-retention-filter-returns-OK-response.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"response": {
1515
"body": {
16-
"string": "{\"data\":{\"id\":\"4b95d361-f65d-4515-9824-c9aaeba5ac2a\",\"type\":\"retention_filters\",\"attributes\":{\"enabled\":true,\"event_type\":\"session\",\"name\":\"Test retention filter for session\",\"query\":\"custom_query\",\"sample_rate\":25},\"meta\":{\"source\":\"terraform\"}}}",
16+
"string": "{\"data\":{\"id\":\"4b95d361-f65d-4515-9824-c9aaeba5ac2a\",\"type\":\"retention_filters\",\"attributes\":{\"enabled\":true,\"event_type\":\"session\",\"name\":\"Test retention filter for session\",\"query\":\"custom_query\",\"sample_rate\":25},\"meta\":{\"source\":\"unknown\"}}}",
1717
"encoding": null
1818
},
1919
"headers": {

tests/scenarios/features/v2/rum_retention_filters.feature

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
@endpoint(rum-retention-filters) @endpoint(rum-retention-filters-v2)
22
Feature: Rum Retention Filters
33
Manage retention filters through [Manage
4-
Applications](https://app.datadoghq.com/rum/list) for your organization.
4+
Applications](https://app.datadoghq.com/rum/list) of RUM for your
5+
organization.
56

67
Background:
78
Given a valid "apiKeyAuth" key in the system
@@ -20,7 +21,7 @@ Feature: Rum Retention Filters
2021
Scenario: Create a RUM retention filter returns "Created" response
2122
Given new "CreateRetentionFilter" request
2223
And request contains "app_id" parameter with value "a33671aa-24fd-4dcd-ba4b-5bbdbafe7690"
23-
And body with value {"data":{"type":"retention_filters","attributes":{"name":"Test creating retention filter","event_type":"session","query":"custom_query","sample_rate":50,"enabled":true},"meta":{"source":"terraform"}}}
24+
And body with value {"data":{"type":"retention_filters","attributes":{"name":"Test creating retention filter","event_type":"session","query":"custom_query","sample_rate":50,"enabled":true}}}
2425
When the request is sent
2526
Then the response status is 201 Created
2627
And the response "data.type" is equal to "retention_filters"
@@ -29,7 +30,7 @@ Feature: Rum Retention Filters
2930
And the response "data.attributes.enabled" is equal to true
3031
And the response "data.attributes.query" is equal to "custom_query"
3132
And the response "data.attributes.sample_rate" is equal to 50
32-
And the response "data.meta.source" is equal to "terraform"
33+
And the response "data.meta.source" is equal to "unknown"
3334

3435
@replay-only @team:DataDog/rum-backend
3536
Scenario: Delete a RUM retention filter returns "No Content" response
@@ -69,7 +70,7 @@ Feature: Rum Retention Filters
6970
And the response "data.attributes.enabled" is equal to true
7071
And the response "data.attributes.query" is equal to "custom_query"
7172
And the response "data.attributes.sample_rate" is equal to 25
72-
And the response "data.meta.source" is equal to "terraform"
73+
And the response "data.meta.source" is equal to "unknown"
7374

7475
@replay-only @team:DataDog/rum-backend
7576
Scenario: Get all RUM retention filters returns "OK" response

0 commit comments

Comments
 (0)