Skip to content

Commit 536f038

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Remove meta from RUM retention filters APIs (#2454)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 1636c93 commit 536f038

18 files changed

+47
-226
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-03-11 13:16:51.577468",
8-
"spec_repo_commit": "d7618fa5"
7+
"regenerated": "2025-03-11 16:30:34.112704",
8+
"spec_repo_commit": "baf04a80"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-11 13:16:51.595864",
13-
"spec_repo_commit": "d7618fa5"
12+
"regenerated": "2025-03-11 16:30:34.128567",
13+
"spec_repo_commit": "baf04a80"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 13 additions & 38 deletions
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

docs/datadog_api_client.v2.model.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11225,27 +11225,13 @@ datadog\_api\_client.v2.model.rum\_retention\_filter\_event\_type module
1122511225
:members:
1122611226
:show-inheritance:
1122711227

11228-
datadog\_api\_client.v2.model.rum\_retention\_filter\_meta module
11229-
-----------------------------------------------------------------
11230-
11231-
.. automodule:: datadog_api_client.v2.model.rum_retention_filter_meta
11232-
:members:
11233-
:show-inheritance:
11234-
1123511228
datadog\_api\_client.v2.model.rum\_retention\_filter\_response module
1123611229
---------------------------------------------------------------------
1123711230

1123811231
.. automodule:: datadog_api_client.v2.model.rum_retention_filter_response
1123911232
:members:
1124011233
:show-inheritance:
1124111234

11242-
datadog\_api\_client.v2.model.rum\_retention\_filter\_source module
11243-
-------------------------------------------------------------------
11244-
11245-
.. automodule:: datadog_api_client.v2.model.rum_retention_filter_source
11246-
:members:
11247-
:show-inheritance:
11248-
1124911235
datadog\_api\_client.v2.model.rum\_retention\_filter\_type module
1125011236
-----------------------------------------------------------------
1125111237

examples/v2/rum-retention-filters/CreateRetentionFilter.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
from datadog_api_client.v2.model.rum_retention_filter_create_data import RumRetentionFilterCreateData
99
from datadog_api_client.v2.model.rum_retention_filter_create_request import RumRetentionFilterCreateRequest
1010
from datadog_api_client.v2.model.rum_retention_filter_event_type import RumRetentionFilterEventType
11-
from datadog_api_client.v2.model.rum_retention_filter_meta import RumRetentionFilterMeta
12-
from datadog_api_client.v2.model.rum_retention_filter_source import RumRetentionFilterSource
1311
from datadog_api_client.v2.model.rum_retention_filter_type import RumRetentionFilterType
1412

1513
body = RumRetentionFilterCreateRequest(
@@ -22,9 +20,6 @@
2220
sample_rate=50,
2321
enabled=True,
2422
),
25-
meta=RumRetentionFilterMeta(
26-
source=RumRetentionFilterSource.TERRAFORM,
27-
),
2823
),
2924
)
3025

src/datadog_api_client/v2/api/rum_retention_filters_api.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
class RumRetentionFiltersApi:
1919
"""
20-
Manage retention filters through `Manage Applications <https://app.datadoghq.com/rum/list>`_ for your organization.
20+
Manage retention filters through `Manage Applications <https://app.datadoghq.com/rum/list>`_ of RUM for your organization.
2121
"""
2222

2323
def __init__(self, api_client=None):
@@ -197,10 +197,10 @@ def create_retention_filter(
197197
) -> RumRetentionFilterResponse:
198198
"""Create a RUM retention filter.
199199
200-
Create a RUM retention filter for an application.
200+
Create a RUM retention filter for a RUM application.
201201
Returns RUM retention filter objects from the request body when the request is successful.
202202
203-
:param app_id: Application ID.
203+
:param app_id: RUM application ID.
204204
:type app_id: str
205205
:param body: The definition of the new RUM retention filter.
206206
:type body: RumRetentionFilterCreateRequest
@@ -220,9 +220,9 @@ def delete_retention_filter(
220220
) -> None:
221221
"""Delete a RUM retention filter.
222222
223-
Delete a RUM retention filter for an application.
223+
Delete a RUM retention filter for a RUM application.
224224
225-
:param app_id: Application ID.
225+
:param app_id: RUM application ID.
226226
:type app_id: str
227227
:param rf_id: Retention filter ID.
228228
:type rf_id: str
@@ -242,9 +242,9 @@ def get_retention_filter(
242242
) -> RumRetentionFilterResponse:
243243
"""Get a RUM retention filter.
244244
245-
Get a RUM retention filter for an application.
245+
Get a RUM retention filter for a RUM application.
246246
247-
:param app_id: Application ID.
247+
:param app_id: RUM application ID.
248248
:type app_id: str
249249
:param rf_id: Retention filter ID.
250250
:type rf_id: str
@@ -263,9 +263,9 @@ def list_retention_filters(
263263
) -> RumRetentionFiltersResponse:
264264
"""Get all RUM retention filters.
265265
266-
Get the list of RUM retention filters for an application.
266+
Get the list of RUM retention filters for a RUM application.
267267
268-
:param app_id: Application ID.
268+
:param app_id: RUM application ID.
269269
:type app_id: str
270270
:rtype: RumRetentionFiltersResponse
271271
"""
@@ -281,10 +281,10 @@ def order_retention_filters(
281281
) -> RumRetentionFiltersOrderResponse:
282282
"""Order RUM retention filters.
283283
284-
Order RUM retention filters for an application.
285-
Returns RUM retention filter objects without attributes and meta from the request body when the request is successful.
284+
Order RUM retention filters for a RUM application.
285+
Returns RUM retention filter objects without attributes from the request body when the request is successful.
286286
287-
:param app_id: Application ID.
287+
:param app_id: RUM application ID.
288288
:type app_id: str
289289
:param body: New definition of the RUM retention filter.
290290
:type body: RumRetentionFiltersOrderRequest
@@ -305,10 +305,10 @@ def update_retention_filter(
305305
) -> RumRetentionFilterResponse:
306306
"""Update a RUM retention filter.
307307
308-
Update a RUM retention filter for an application.
308+
Update a RUM retention filter for a RUM application.
309309
Returns RUM retention filter objects from the request body when the request is successful.
310310
311-
:param app_id: Application ID.
311+
:param app_id: RUM application ID.
312312
:type app_id: str
313313
:param rf_id: Retention filter ID.
314314
:type rf_id: str

src/datadog_api_client/v2/model/rum_retention_filter_create_data.py

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,16 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union, TYPE_CHECKING
6+
from typing import TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11-
unset,
12-
UnsetType,
1311
)
1412

1513

1614
if TYPE_CHECKING:
1715
from datadog_api_client.v2.model.rum_retention_filter_create_attributes import RumRetentionFilterCreateAttributes
18-
from datadog_api_client.v2.model.rum_retention_filter_meta import RumRetentionFilterMeta
1916
from datadog_api_client.v2.model.rum_retention_filter_type import RumRetentionFilterType
2017

2118

@@ -25,42 +22,28 @@ def openapi_types(_):
2522
from datadog_api_client.v2.model.rum_retention_filter_create_attributes import (
2623
RumRetentionFilterCreateAttributes,
2724
)
28-
from datadog_api_client.v2.model.rum_retention_filter_meta import RumRetentionFilterMeta
2925
from datadog_api_client.v2.model.rum_retention_filter_type import RumRetentionFilterType
3026

3127
return {
3228
"attributes": (RumRetentionFilterCreateAttributes,),
33-
"meta": (RumRetentionFilterMeta,),
3429
"type": (RumRetentionFilterType,),
3530
}
3631

3732
attribute_map = {
3833
"attributes": "attributes",
39-
"meta": "meta",
4034
"type": "type",
4135
}
4236

43-
def __init__(
44-
self_,
45-
attributes: RumRetentionFilterCreateAttributes,
46-
type: RumRetentionFilterType,
47-
meta: Union[RumRetentionFilterMeta, UnsetType] = unset,
48-
**kwargs,
49-
):
37+
def __init__(self_, attributes: RumRetentionFilterCreateAttributes, type: RumRetentionFilterType, **kwargs):
5038
"""
5139
The new RUM retention filter properties to create.
5240
5341
:param attributes: The object describing attributes of a RUM retention filter to create.
5442
:type attributes: RumRetentionFilterCreateAttributes
5543
56-
:param meta: The object describing metadata of a RUM retention filter.
57-
:type meta: RumRetentionFilterMeta, optional
58-
5944
:param type: The type of the resource. The value should always be retention_filters.
6045
:type type: RumRetentionFilterType
6146
"""
62-
if meta is not unset:
63-
kwargs["meta"] = meta
6447
super().__init__(kwargs)
6548

6649
self_.attributes = attributes

0 commit comments

Comments
 (0)