Skip to content

Remove meta from RUM retention filters APIs #556

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-03-11 13:16:48.792553",
"spec_repo_commit": "d7618fa5"
"regenerated": "2025-03-11 16:30:25.598608",
"spec_repo_commit": "baf04a80"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-03-11 13:16:48.808870",
"spec_repo_commit": "d7618fa5"
"regenerated": "2025-03-11 16:30:25.614279",
"spec_repo_commit": "baf04a80"
}
}
}
51 changes: 13 additions & 38 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ components:
schema:
type: string
RumApplicationIDParameter:
description: Application ID.
description: RUM application ID.
in: path
name: app_id
required: true
Expand Down Expand Up @@ -25518,8 +25518,6 @@ components:
properties:
attributes:
$ref: '#/components/schemas/RumRetentionFilterCreateAttributes'
meta:
$ref: '#/components/schemas/RumRetentionFilterMeta'
type:
$ref: '#/components/schemas/RumRetentionFilterType'
required:
Expand All @@ -25541,8 +25539,6 @@ components:
$ref: '#/components/schemas/RumRetentionFilterAttributes'
id:
$ref: '#/components/schemas/RumRetentionFilterID'
meta:
$ref: '#/components/schemas/RumRetentionFilterMeta'
type:
$ref: '#/components/schemas/RumRetentionFilterType'
type: object
Expand Down Expand Up @@ -25574,12 +25570,6 @@ components:
description: ID of retention filter in UUID.
example: 051601eb-54a0-abc0-03f9-cc02efa18892
type: string
RumRetentionFilterMeta:
description: The object describing metadata of a RUM retention filter.
properties:
source:
$ref: '#/components/schemas/RumRetentionFilterSource'
type: object
RumRetentionFilterQuery:
description: The query string for a RUM retention filter.
example: '@session.has_replay:true'
Expand All @@ -25597,20 +25587,6 @@ components:
maximum: 100
minimum: 0
type: integer
RumRetentionFilterSource:
description: The type of RUM events to filter on.
enum:
- ui
- terraform
- default
- unknown
example: terraform
type: string
x-enum-varnames:
- UI
- TERRAFORM
- DEFAULT
- UNKNOWN
RumRetentionFilterType:
default: retention_filters
description: The type of the resource. The value should always be retention_filters.
Expand Down Expand Up @@ -25641,8 +25617,6 @@ components:
$ref: '#/components/schemas/RumRetentionFilterUpdateAttributes'
id:
$ref: '#/components/schemas/RumRetentionFilterID'
meta:
$ref: '#/components/schemas/RumRetentionFilterMeta'
type:
$ref: '#/components/schemas/RumRetentionFilterType'
required:
Expand Down Expand Up @@ -25673,7 +25647,8 @@ components:
description: 'The list of RUM retention filter IDs along with their corresponding
type to reorder.

All retention filter IDs should be included in the list created for an application.'
All retention filter IDs should be included in the list created for a RUM
application.'
properties:
data:
description: A list of RUM retention filter IDs along with type.
Expand All @@ -25691,7 +25666,7 @@ components:
type: array
type: object
RumRetentionFiltersResponse:
description: All RUM retention filters for an application.
description: All RUM retention filters for a RUM application.
properties:
data:
description: A list of RUM retention filters.
Expand Down Expand Up @@ -46244,10 +46219,10 @@ paths:
- rum_apps_write
/api/v2/rum/applications/{app_id}/relationships/retention_filters:
patch:
description: 'Order RUM retention filters for an application.
description: 'Order RUM retention filters for a RUM application.

Returns RUM retention filter objects without attributes and meta from the
request body when the request is successful.'
Returns RUM retention filter objects without attributes from the request body
when the request is successful.'
operationId: OrderRetentionFilters
parameters:
- $ref: '#/components/parameters/RumApplicationIDParameter'
Expand Down Expand Up @@ -46277,7 +46252,7 @@ paths:
x-codegen-request-body-name: body
/api/v2/rum/applications/{app_id}/retention_filters:
get:
description: Get the list of RUM retention filters for an application.
description: Get the list of RUM retention filters for a RUM application.
operationId: ListRetentionFilters
parameters:
- $ref: '#/components/parameters/RumApplicationIDParameter'
Expand All @@ -46296,7 +46271,7 @@ paths:
tags:
- Rum Retention Filters
post:
description: 'Create a RUM retention filter for an application.
description: 'Create a RUM retention filter for a RUM application.

Returns RUM retention filter objects from the request body when the request
is successful.'
Expand Down Expand Up @@ -46329,7 +46304,7 @@ paths:
x-codegen-request-body-name: body
/api/v2/rum/applications/{app_id}/retention_filters/{rf_id}:
delete:
description: Delete a RUM retention filter for an application.
description: Delete a RUM retention filter for a RUM application.
operationId: DeleteRetentionFilter
parameters:
- $ref: '#/components/parameters/RumApplicationIDParameter'
Expand All @@ -46347,7 +46322,7 @@ paths:
tags:
- Rum Retention Filters
get:
description: Get a RUM retention filter for an application.
description: Get a RUM retention filter for a RUM application.
operationId: GetRetentionFilter
parameters:
- $ref: '#/components/parameters/RumApplicationIDParameter'
Expand All @@ -46369,7 +46344,7 @@ paths:
tags:
- Rum Retention Filters
patch:
description: 'Update a RUM retention filter for an application.
description: 'Update a RUM retention filter for a RUM application.

Returns RUM retention filter objects from the request body when the request
is successful.'
Expand Down Expand Up @@ -53819,7 +53794,7 @@ tags:
url: https://docs.datadoghq.com/real_user_monitoring/platform/generate_metrics/
name: Rum Metrics
- description: Manage retention filters through [Manage Applications](https://app.datadoghq.com/rum/list)
for your organization.
of RUM for your organization.
name: Rum Retention Filters
- description: Create and manage your security rules, signals, filters, and more.
See the [Datadog Security page](https://docs.datadoghq.com/security/) for more
Expand Down
23 changes: 9 additions & 14 deletions examples/v2_rum-retention-filters_CreateRetentionFilter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,20 @@ use datadog_api_client::datadogV2::model::RumRetentionFilterCreateAttributes;
use datadog_api_client::datadogV2::model::RumRetentionFilterCreateData;
use datadog_api_client::datadogV2::model::RumRetentionFilterCreateRequest;
use datadog_api_client::datadogV2::model::RumRetentionFilterEventType;
use datadog_api_client::datadogV2::model::RumRetentionFilterMeta;
use datadog_api_client::datadogV2::model::RumRetentionFilterSource;
use datadog_api_client::datadogV2::model::RumRetentionFilterType;

#[tokio::main]
async fn main() {
let body = RumRetentionFilterCreateRequest::new(
RumRetentionFilterCreateData::new(
RumRetentionFilterCreateAttributes::new(
RumRetentionFilterEventType::SESSION,
"Test creating retention filter".to_string(),
50,
)
.enabled(true)
.query("custom_query".to_string()),
RumRetentionFilterType::RETENTION_FILTERS,
let body = RumRetentionFilterCreateRequest::new(RumRetentionFilterCreateData::new(
RumRetentionFilterCreateAttributes::new(
RumRetentionFilterEventType::SESSION,
"Test creating retention filter".to_string(),
50,
)
.meta(RumRetentionFilterMeta::new().source(RumRetentionFilterSource::TERRAFORM)),
);
.enabled(true)
.query("custom_query".to_string()),
RumRetentionFilterType::RETENTION_FILTERS,
));
let configuration = datadog::Configuration::new();
let api = RumRetentionFiltersAPI::with_config(configuration);
let resp = api
Expand Down
30 changes: 15 additions & 15 deletions src/datadogV2/api/api_rum_retention_filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub enum UpdateRetentionFilterError {
UnknownValue(serde_json::Value),
}

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

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

/// Create a RUM retention filter for an application.
/// Create a RUM retention filter for a RUM application.
/// Returns RUM retention filter objects from the request body when the request is successful.
pub async fn create_retention_filter_with_http_info(
&self,
Expand Down Expand Up @@ -285,7 +285,7 @@ impl RumRetentionFiltersAPI {
}
}

/// Delete a RUM retention filter for an application.
/// Delete a RUM retention filter for a RUM application.
pub async fn delete_retention_filter(
&self,
app_id: String,
Expand All @@ -300,7 +300,7 @@ impl RumRetentionFiltersAPI {
}
}

/// Delete a RUM retention filter for an application.
/// Delete a RUM retention filter for a RUM application.
pub async fn delete_retention_filter_with_http_info(
&self,
app_id: String,
Expand Down Expand Up @@ -379,7 +379,7 @@ impl RumRetentionFiltersAPI {
}
}

/// Get a RUM retention filter for an application.
/// Get a RUM retention filter for a RUM application.
pub async fn get_retention_filter(
&self,
app_id: String,
Expand All @@ -405,7 +405,7 @@ impl RumRetentionFiltersAPI {
}
}

/// Get a RUM retention filter for an application.
/// Get a RUM retention filter for a RUM application.
pub async fn get_retention_filter_with_http_info(
&self,
app_id: String,
Expand Down Expand Up @@ -494,7 +494,7 @@ impl RumRetentionFiltersAPI {
}
}

/// Get the list of RUM retention filters for an application.
/// Get the list of RUM retention filters for a RUM application.
pub async fn list_retention_filters(
&self,
app_id: String,
Expand All @@ -516,7 +516,7 @@ impl RumRetentionFiltersAPI {
}
}

/// Get the list of RUM retention filters for an application.
/// Get the list of RUM retention filters for a RUM application.
pub async fn list_retention_filters_with_http_info(
&self,
app_id: String,
Expand Down Expand Up @@ -603,8 +603,8 @@ impl RumRetentionFiltersAPI {
}
}

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

/// Order RUM retention filters for an application.
/// Returns RUM retention filter objects without attributes and meta from the request body when the request is successful.
/// Order RUM retention filters for a RUM application.
/// Returns RUM retention filter objects without attributes from the request body when the request is successful.
pub async fn order_retention_filters_with_http_info(
&self,
app_id: String,
Expand Down Expand Up @@ -765,7 +765,7 @@ impl RumRetentionFiltersAPI {
}
}

/// Update a RUM retention filter for an application.
/// Update a RUM retention filter for a RUM application.
/// Returns RUM retention filter objects from the request body when the request is successful.
pub async fn update_retention_filter(
&self,
Expand Down Expand Up @@ -793,7 +793,7 @@ impl RumRetentionFiltersAPI {
}
}

/// Update a RUM retention filter for an application.
/// Update a RUM retention filter for a RUM application.
/// Returns RUM retention filter objects from the request body when the request is successful.
pub async fn update_retention_filter_with_http_info(
&self,
Expand Down
4 changes: 0 additions & 4 deletions src/datadogV2/model/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2896,10 +2896,6 @@ pub mod model_rum_retention_filter_attributes;
pub use self::model_rum_retention_filter_attributes::RumRetentionFilterAttributes;
pub mod model_rum_retention_filter_event_type;
pub use self::model_rum_retention_filter_event_type::RumRetentionFilterEventType;
pub mod model_rum_retention_filter_meta;
pub use self::model_rum_retention_filter_meta::RumRetentionFilterMeta;
pub mod model_rum_retention_filter_source;
pub use self::model_rum_retention_filter_source::RumRetentionFilterSource;
pub mod model_rum_retention_filter_create_request;
pub use self::model_rum_retention_filter_create_request::RumRetentionFilterCreateRequest;
pub mod model_rum_retention_filter_create_data;
Expand Down
Loading
Loading