Skip to content

Commit 62cbe35

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit ea479fea of spec repo
1 parent 0f92082 commit 62cbe35

17 files changed

+51
-308
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-11 13:16:48.792553",
8-
"spec_repo_commit": "d7618fa5"
7+
"regenerated": "2025-03-11 15:37:49.885853",
8+
"spec_repo_commit": "ea479fea"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-11 13:16:48.808870",
13-
"spec_repo_commit": "d7618fa5"
12+
"regenerated": "2025-03-11 15:37:49.901200",
13+
"spec_repo_commit": "ea479fea"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+13-38
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
@@ -25518,8 +25518,6 @@ components:
2551825518
properties:
2551925519
attributes:
2552025520
$ref: '#/components/schemas/RumRetentionFilterCreateAttributes'
25521-
meta:
25522-
$ref: '#/components/schemas/RumRetentionFilterMeta'
2552325521
type:
2552425522
$ref: '#/components/schemas/RumRetentionFilterType'
2552525523
required:
@@ -25541,8 +25539,6 @@ components:
2554125539
$ref: '#/components/schemas/RumRetentionFilterAttributes'
2554225540
id:
2554325541
$ref: '#/components/schemas/RumRetentionFilterID'
25544-
meta:
25545-
$ref: '#/components/schemas/RumRetentionFilterMeta'
2554625542
type:
2554725543
$ref: '#/components/schemas/RumRetentionFilterType'
2554825544
type: object
@@ -25574,12 +25570,6 @@ components:
2557425570
description: ID of retention filter in UUID.
2557525571
example: 051601eb-54a0-abc0-03f9-cc02efa18892
2557625572
type: string
25577-
RumRetentionFilterMeta:
25578-
description: The object describing metadata of a RUM retention filter.
25579-
properties:
25580-
source:
25581-
$ref: '#/components/schemas/RumRetentionFilterSource'
25582-
type: object
2558325573
RumRetentionFilterQuery:
2558425574
description: The query string for a RUM retention filter.
2558525575
example: '@session.has_replay:true'
@@ -25597,20 +25587,6 @@ components:
2559725587
maximum: 100
2559825588
minimum: 0
2559925589
type: integer
25600-
RumRetentionFilterSource:
25601-
description: The type of RUM events to filter on.
25602-
enum:
25603-
- ui
25604-
- terraform
25605-
- default
25606-
- unknown
25607-
example: terraform
25608-
type: string
25609-
x-enum-varnames:
25610-
- UI
25611-
- TERRAFORM
25612-
- DEFAULT
25613-
- UNKNOWN
2561425590
RumRetentionFilterType:
2561525591
default: retention_filters
2561625592
description: The type of the resource. The value should always be retention_filters.
@@ -25641,8 +25617,6 @@ components:
2564125617
$ref: '#/components/schemas/RumRetentionFilterUpdateAttributes'
2564225618
id:
2564325619
$ref: '#/components/schemas/RumRetentionFilterID'
25644-
meta:
25645-
$ref: '#/components/schemas/RumRetentionFilterMeta'
2564625620
type:
2564725621
$ref: '#/components/schemas/RumRetentionFilterType'
2564825622
required:
@@ -25673,7 +25647,8 @@ components:
2567325647
description: 'The list of RUM retention filter IDs along with their corresponding
2567425648
type to reorder.
2567525649

25676-
All retention filter IDs should be included in the list created for an application.'
25650+
All retention filter IDs should be included in the list created for a RUM
25651+
application.'
2567725652
properties:
2567825653
data:
2567925654
description: A list of RUM retention filter IDs along with type.
@@ -25691,7 +25666,7 @@ components:
2569125666
type: array
2569225667
type: object
2569325668
RumRetentionFiltersResponse:
25694-
description: All RUM retention filters for an application.
25669+
description: All RUM retention filters for a RUM application.
2569525670
properties:
2569625671
data:
2569725672
description: A list of RUM retention filters.
@@ -46244,10 +46219,10 @@ paths:
4624446219
- rum_apps_write
4624546220
/api/v2/rum/applications/{app_id}/relationships/retention_filters:
4624646221
patch:
46247-
description: 'Order RUM retention filters for an application.
46222+
description: 'Order RUM retention filters for a RUM application.
4624846223

46249-
Returns RUM retention filter objects without attributes and meta from the
46250-
request body when the request is successful.'
46224+
Returns RUM retention filter objects without attributes from the request body
46225+
when the request is successful.'
4625146226
operationId: OrderRetentionFilters
4625246227
parameters:
4625346228
- $ref: '#/components/parameters/RumApplicationIDParameter'
@@ -46277,7 +46252,7 @@ paths:
4627746252
x-codegen-request-body-name: body
4627846253
/api/v2/rum/applications/{app_id}/retention_filters:
4627946254
get:
46280-
description: Get the list of RUM retention filters for an application.
46255+
description: Get the list of RUM retention filters for a RUM application.
4628146256
operationId: ListRetentionFilters
4628246257
parameters:
4628346258
- $ref: '#/components/parameters/RumApplicationIDParameter'
@@ -46296,7 +46271,7 @@ paths:
4629646271
tags:
4629746272
- Rum Retention Filters
4629846273
post:
46299-
description: 'Create a RUM retention filter for an application.
46274+
description: 'Create a RUM retention filter for a RUM application.
4630046275

4630146276
Returns RUM retention filter objects from the request body when the request
4630246277
is successful.'
@@ -46329,7 +46304,7 @@ paths:
4632946304
x-codegen-request-body-name: body
4633046305
/api/v2/rum/applications/{app_id}/retention_filters/{rf_id}:
4633146306
delete:
46332-
description: Delete a RUM retention filter for an application.
46307+
description: Delete a RUM retention filter for a RUM application.
4633346308
operationId: DeleteRetentionFilter
4633446309
parameters:
4633546310
- $ref: '#/components/parameters/RumApplicationIDParameter'
@@ -46347,7 +46322,7 @@ paths:
4634746322
tags:
4634846323
- Rum Retention Filters
4634946324
get:
46350-
description: Get a RUM retention filter for an application.
46325+
description: Get a RUM retention filter for a RUM application.
4635146326
operationId: GetRetentionFilter
4635246327
parameters:
4635346328
- $ref: '#/components/parameters/RumApplicationIDParameter'
@@ -46369,7 +46344,7 @@ paths:
4636946344
tags:
4637046345
- Rum Retention Filters
4637146346
patch:
46372-
description: 'Update a RUM retention filter for an application.
46347+
description: 'Update a RUM retention filter for a RUM application.
4637346348

4637446349
Returns RUM retention filter objects from the request body when the request
4637546350
is successful.'
@@ -53819,7 +53794,7 @@ tags:
5381953794
url: https://docs.datadoghq.com/real_user_monitoring/platform/generate_metrics/
5382053795
name: Rum Metrics
5382153796
- description: Manage retention filters through [Manage Applications](https://app.datadoghq.com/rum/list)
53822-
for your organization.
53797+
of RUM for your organization.
5382353798
name: Rum Retention Filters
5382453799
- description: Create and manage your security rules, signals, filters, and more.
5382553800
See the [Datadog Security page](https://docs.datadoghq.com/security/) for more

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

+15-15
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,8 +603,8 @@ impl RumRetentionFiltersAPI {
603603
}
604604
}
605605

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

633-
/// Order RUM retention filters for an application.
634-
/// Returns RUM retention filter objects without attributes and meta from the request body when the request is successful.
633+
/// Order RUM retention filters for a RUM application.
634+
/// Returns RUM retention filter objects without attributes from the request body when the request is successful.
635635
pub async fn order_retention_filters_with_http_info(
636636
&self,
637637
app_id: String,
@@ -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/mod.rs

-4
Original file line numberDiff line numberDiff line change
@@ -2896,10 +2896,6 @@ pub mod model_rum_retention_filter_attributes;
28962896
pub use self::model_rum_retention_filter_attributes::RumRetentionFilterAttributes;
28972897
pub mod model_rum_retention_filter_event_type;
28982898
pub use self::model_rum_retention_filter_event_type::RumRetentionFilterEventType;
2899-
pub mod model_rum_retention_filter_meta;
2900-
pub use self::model_rum_retention_filter_meta::RumRetentionFilterMeta;
2901-
pub mod model_rum_retention_filter_source;
2902-
pub use self::model_rum_retention_filter_source::RumRetentionFilterSource;
29032899
pub mod model_rum_retention_filter_create_request;
29042900
pub use self::model_rum_retention_filter_create_request::RumRetentionFilterCreateRequest;
29052901
pub mod model_rum_retention_filter_create_data;

0 commit comments

Comments
 (0)