Skip to content

Commit 329e672

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1f97286 of spec repo
1 parent 8175340 commit 329e672

19 files changed

Lines changed: 1144 additions & 0 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 254 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,6 +1504,13 @@ components:
15041504
required: true
15051505
schema:
15061506
type: string
1507+
RumPermanentRetentionFilterIDParameter:
1508+
description: The identifier of the permanent RUM retention filter.
1509+
in: path
1510+
name: permanent_rf_id
1511+
required: true
1512+
schema:
1513+
$ref: "#/components/schemas/RumPermanentRetentionFilterID"
15071514
RumRetentionFilterIDParameter:
15081515
description: Retention filter ID.
15091516
in: path
@@ -70081,6 +70088,100 @@ components:
7008170088
$ref: "#/components/schemas/RumMetricResponseData"
7008270089
type: array
7008370090
type: object
70091+
RumPermanentRetentionFilterAttributes:
70092+
description: The attributes of a permanent RUM retention filter.
70093+
properties:
70094+
cross_product_sampling:
70095+
$ref: "#/components/schemas/RumCrossProductSampling"
70096+
description:
70097+
description: A description of what the filter retains.
70098+
example: "All sessions generated by Synthetics are retained at 100%."
70099+
type: string
70100+
editability:
70101+
$ref: "#/components/schemas/RumPermanentRetentionFilterEditability"
70102+
name:
70103+
description: The display name of the permanent retention filter.
70104+
example: "Synthetics Sessions"
70105+
type: string
70106+
type: object
70107+
RumPermanentRetentionFilterData:
70108+
description: A permanent RUM retention filter.
70109+
properties:
70110+
attributes:
70111+
$ref: "#/components/schemas/RumPermanentRetentionFilterAttributes"
70112+
id:
70113+
$ref: "#/components/schemas/RumPermanentRetentionFilterID"
70114+
type:
70115+
$ref: "#/components/schemas/RumPermanentRetentionFilterType"
70116+
type: object
70117+
RumPermanentRetentionFilterEditability:
70118+
description: Indicates which cross-product fields of a permanent RUM retention filter can be updated.
70119+
properties:
70120+
trace_editable:
70121+
description: Whether the APM trace cross-product configuration of the filter can be updated.
70122+
example: true
70123+
type: boolean
70124+
type: object
70125+
RumPermanentRetentionFilterID:
70126+
description: The identifier of a permanent RUM retention filter.
70127+
enum:
70128+
- rum_apm_flat_sampling
70129+
- synthetics_sessions
70130+
- forced_replay_sessions
70131+
example: synthetics_sessions
70132+
type: string
70133+
x-enum-varnames: ["RUM_APM_FLAT_SAMPLING", "SYNTHETICS_SESSIONS", "FORCED_REPLAY_SESSIONS"]
70134+
RumPermanentRetentionFilterResponse:
70135+
description: A permanent RUM retention filter object.
70136+
properties:
70137+
data:
70138+
$ref: "#/components/schemas/RumPermanentRetentionFilterData"
70139+
type: object
70140+
RumPermanentRetentionFilterType:
70141+
default: permanent_retention_filters
70142+
description: The type of the resource. The value should always be `permanent_retention_filters`.
70143+
enum:
70144+
- permanent_retention_filters
70145+
example: permanent_retention_filters
70146+
type: string
70147+
x-enum-varnames: ["PERMANENT_RETENTION_FILTERS"]
70148+
RumPermanentRetentionFilterUpdateAttributes:
70149+
description: The configuration to update on a permanent RUM retention filter.
70150+
properties:
70151+
cross_product_sampling:
70152+
$ref: "#/components/schemas/RumCrossProductSamplingUpdate"
70153+
type: object
70154+
RumPermanentRetentionFilterUpdateData:
70155+
description: The new permanent RUM retention filter configuration to update.
70156+
properties:
70157+
attributes:
70158+
$ref: "#/components/schemas/RumPermanentRetentionFilterUpdateAttributes"
70159+
id:
70160+
$ref: "#/components/schemas/RumPermanentRetentionFilterID"
70161+
type:
70162+
$ref: "#/components/schemas/RumPermanentRetentionFilterType"
70163+
required:
70164+
- id
70165+
- type
70166+
- attributes
70167+
type: object
70168+
RumPermanentRetentionFilterUpdateRequest:
70169+
description: The permanent RUM retention filter body to update.
70170+
properties:
70171+
data:
70172+
$ref: "#/components/schemas/RumPermanentRetentionFilterUpdateData"
70173+
required:
70174+
- data
70175+
type: object
70176+
RumPermanentRetentionFiltersResponse:
70177+
description: All permanent RUM retention filters for a RUM application.
70178+
properties:
70179+
data:
70180+
description: A list of permanent RUM retention filters.
70181+
items:
70182+
$ref: "#/components/schemas/RumPermanentRetentionFilterData"
70183+
type: array
70184+
type: object
7008470185
RumRetentionFilterAttributes:
7008570186
description: The object describing attributes of a RUM retention filter.
7008670187
properties:
@@ -143331,6 +143432,159 @@ paths:
143331143432
tags:
143332143433
- Rum Retention Filters
143333143434
x-codegen-request-body-name: body
143435+
/api/v2/rum/applications/{app_id}/retention_filters/permanent:
143436+
get:
143437+
description: |-
143438+
Get the list of permanent RUM retention filters for a RUM application.
143439+
Permanent retention filters are predefined filters that cannot be created or deleted.
143440+
For each filter, the `editability` block indicates which cross-product fields can be updated.
143441+
operationId: ListPermanentRetentionFilters
143442+
parameters:
143443+
- $ref: "#/components/parameters/RumApplicationIDParameter"
143444+
responses:
143445+
"200":
143446+
content:
143447+
application/json:
143448+
examples:
143449+
default:
143450+
value:
143451+
data:
143452+
- attributes:
143453+
cross_product_sampling:
143454+
trace_enabled: true
143455+
trace_sample_rate: 100.0
143456+
description: RUM retains all Synthetics sessions.
143457+
editability:
143458+
trace_editable: true
143459+
name: Synthetics Sessions
143460+
id: synthetics_sessions
143461+
type: permanent_retention_filters
143462+
- attributes:
143463+
cross_product_sampling:
143464+
trace_enabled: true
143465+
trace_sample_rate: 100.0
143466+
description: RUM retains all sessions with forced replays.
143467+
editability:
143468+
trace_editable: true
143469+
name: Forced Replay Sessions
143470+
id: forced_replay_sessions
143471+
type: permanent_retention_filters
143472+
- attributes:
143473+
cross_product_sampling:
143474+
trace_enabled: true
143475+
trace_sample_rate: 100.0
143476+
description: Configures APM trace sampling for RUM sessions using flat sampling.
143477+
editability:
143478+
trace_editable: false
143479+
name: RUM APM Flat Sampling
143480+
id: rum_apm_flat_sampling
143481+
type: permanent_retention_filters
143482+
schema:
143483+
$ref: "#/components/schemas/RumPermanentRetentionFiltersResponse"
143484+
description: OK
143485+
"403":
143486+
$ref: "#/components/responses/NotAuthorizedResponse"
143487+
"429":
143488+
$ref: "#/components/responses/TooManyRequestsResponse"
143489+
summary: Get all permanent RUM retention filters
143490+
tags:
143491+
- Rum Retention Filters
143492+
/api/v2/rum/applications/{app_id}/retention_filters/permanent/{permanent_rf_id}:
143493+
get:
143494+
description: Get a permanent RUM retention filter for a RUM application by its identifier.
143495+
operationId: GetPermanentRetentionFilter
143496+
parameters:
143497+
- $ref: "#/components/parameters/RumApplicationIDParameter"
143498+
- $ref: "#/components/parameters/RumPermanentRetentionFilterIDParameter"
143499+
responses:
143500+
"200":
143501+
content:
143502+
application/json:
143503+
examples:
143504+
default:
143505+
value:
143506+
data:
143507+
attributes:
143508+
cross_product_sampling:
143509+
trace_enabled: true
143510+
trace_sample_rate: 75.0
143511+
description: RUM retains all Synthetics sessions.
143512+
editability:
143513+
trace_editable: true
143514+
name: Synthetics Sessions
143515+
id: synthetics_sessions
143516+
type: permanent_retention_filters
143517+
schema:
143518+
$ref: "#/components/schemas/RumPermanentRetentionFilterResponse"
143519+
description: OK
143520+
"403":
143521+
$ref: "#/components/responses/NotAuthorizedResponse"
143522+
"404":
143523+
$ref: "#/components/responses/NotFoundResponse"
143524+
"429":
143525+
$ref: "#/components/responses/TooManyRequestsResponse"
143526+
summary: Get a permanent RUM retention filter
143527+
tags:
143528+
- Rum Retention Filters
143529+
patch:
143530+
description: |-
143531+
Update the cross-product sampling configuration of a permanent RUM retention filter for a RUM application.
143532+
Only fields marked as editable in the `editability` block of the filter can be updated.
143533+
Updating a non-editable field returns a `400` response.
143534+
operationId: UpdatePermanentRetentionFilter
143535+
parameters:
143536+
- $ref: "#/components/parameters/RumApplicationIDParameter"
143537+
- $ref: "#/components/parameters/RumPermanentRetentionFilterIDParameter"
143538+
requestBody:
143539+
content:
143540+
application/json:
143541+
examples:
143542+
default:
143543+
value:
143544+
data:
143545+
attributes:
143546+
cross_product_sampling:
143547+
trace_enabled: true
143548+
trace_sample_rate: 50.0
143549+
id: synthetics_sessions
143550+
type: permanent_retention_filters
143551+
schema:
143552+
$ref: "#/components/schemas/RumPermanentRetentionFilterUpdateRequest"
143553+
description: New configuration of the permanent RUM retention filter.
143554+
required: true
143555+
responses:
143556+
"200":
143557+
content:
143558+
application/json:
143559+
examples:
143560+
default:
143561+
value:
143562+
data:
143563+
attributes:
143564+
cross_product_sampling:
143565+
trace_enabled: true
143566+
trace_sample_rate: 50.0
143567+
description: RUM retains all Synthetics sessions.
143568+
editability:
143569+
trace_editable: true
143570+
name: Synthetics Sessions
143571+
id: synthetics_sessions
143572+
type: permanent_retention_filters
143573+
schema:
143574+
$ref: "#/components/schemas/RumPermanentRetentionFilterResponse"
143575+
description: Updated
143576+
"400":
143577+
$ref: "#/components/responses/BadRequestResponse"
143578+
"403":
143579+
$ref: "#/components/responses/NotAuthorizedResponse"
143580+
"404":
143581+
$ref: "#/components/responses/NotFoundResponse"
143582+
"429":
143583+
$ref: "#/components/responses/TooManyRequestsResponse"
143584+
summary: Update a permanent RUM retention filter
143585+
tags:
143586+
- Rum Retention Filters
143587+
x-codegen-request-body-name: body
143334143588
/api/v2/rum/applications/{app_id}/retention_filters/{rf_id}:
143335143589
delete:
143336143590
description: Delete a RUM retention filter for a RUM application.

docs/datadog_api_client.v2.model.rst

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30496,6 +30496,76 @@ datadog\_api\_client.v2.model.rum\_metrics\_response module
3049630496
:members:
3049730497
:show-inheritance:
3049830498

30499+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_attributes module
30500+
----------------------------------------------------------------------------------
30501+
30502+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_attributes
30503+
:members:
30504+
:show-inheritance:
30505+
30506+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_data module
30507+
----------------------------------------------------------------------------
30508+
30509+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_data
30510+
:members:
30511+
:show-inheritance:
30512+
30513+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_editability module
30514+
-----------------------------------------------------------------------------------
30515+
30516+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_editability
30517+
:members:
30518+
:show-inheritance:
30519+
30520+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_id module
30521+
--------------------------------------------------------------------------
30522+
30523+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_id
30524+
:members:
30525+
:show-inheritance:
30526+
30527+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_response module
30528+
--------------------------------------------------------------------------------
30529+
30530+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_response
30531+
:members:
30532+
:show-inheritance:
30533+
30534+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_type module
30535+
----------------------------------------------------------------------------
30536+
30537+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_type
30538+
:members:
30539+
:show-inheritance:
30540+
30541+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_update\_attributes module
30542+
------------------------------------------------------------------------------------------
30543+
30544+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_update_attributes
30545+
:members:
30546+
:show-inheritance:
30547+
30548+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_update\_data module
30549+
------------------------------------------------------------------------------------
30550+
30551+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_update_data
30552+
:members:
30553+
:show-inheritance:
30554+
30555+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_update\_request module
30556+
---------------------------------------------------------------------------------------
30557+
30558+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_update_request
30559+
:members:
30560+
:show-inheritance:
30561+
30562+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filters\_response module
30563+
---------------------------------------------------------------------------------
30564+
30565+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filters_response
30566+
:members:
30567+
:show-inheritance:
30568+
3049930569
datadog\_api\_client.v2.model.rum\_product\_analytics\_retention\_scale module
3050030570
------------------------------------------------------------------------------
3050130571

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""
2+
Get a permanent RUM retention filter returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.rum_retention_filters_api import RumRetentionFiltersApi
7+
from datadog_api_client.v2.model.rum_permanent_retention_filter_id import RumPermanentRetentionFilterID
8+
9+
configuration = Configuration()
10+
with ApiClient(configuration) as api_client:
11+
api_instance = RumRetentionFiltersApi(api_client)
12+
response = api_instance.get_permanent_retention_filter(
13+
app_id="app_id",
14+
permanent_rf_id=RumPermanentRetentionFilterID.SYNTHETICS_SESSIONS,
15+
)
16+
17+
print(response)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"""
2+
Get all permanent RUM retention filters returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.rum_retention_filters_api import RumRetentionFiltersApi
7+
8+
configuration = Configuration()
9+
with ApiClient(configuration) as api_client:
10+
api_instance = RumRetentionFiltersApi(api_client)
11+
response = api_instance.list_permanent_retention_filters(
12+
app_id="app_id",
13+
)
14+
15+
print(response)

0 commit comments

Comments
 (0)