Skip to content

Commit ad9322c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 6a02de5 of spec repo
1 parent 7494d63 commit ad9322c

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
@@ -1558,6 +1558,13 @@ components:
15581558
required: true
15591559
schema:
15601560
type: string
1561+
RumPermanentRetentionFilterIDParameter:
1562+
description: The identifier of the permanent RUM retention filter.
1563+
in: path
1564+
name: permanent_rf_id
1565+
required: true
1566+
schema:
1567+
$ref: "#/components/schemas/RumPermanentRetentionFilterID"
15611568
RumRetentionFilterIDParameter:
15621569
description: Retention filter ID.
15631570
in: path
@@ -71551,6 +71558,100 @@ components:
7155171558
$ref: "#/components/schemas/RumMetricResponseData"
7155271559
type: array
7155371560
type: object
71561+
RumPermanentRetentionFilterAttributes:
71562+
description: The attributes of a permanent RUM retention filter.
71563+
properties:
71564+
cross_product_sampling:
71565+
$ref: "#/components/schemas/RumCrossProductSampling"
71566+
description:
71567+
description: A description of what the filter retains.
71568+
example: "All sessions generated by Synthetics are retained at 100%."
71569+
type: string
71570+
editability:
71571+
$ref: "#/components/schemas/RumPermanentRetentionFilterEditability"
71572+
name:
71573+
description: The display name of the permanent retention filter.
71574+
example: "Synthetics Sessions"
71575+
type: string
71576+
type: object
71577+
RumPermanentRetentionFilterData:
71578+
description: A permanent RUM retention filter.
71579+
properties:
71580+
attributes:
71581+
$ref: "#/components/schemas/RumPermanentRetentionFilterAttributes"
71582+
id:
71583+
$ref: "#/components/schemas/RumPermanentRetentionFilterID"
71584+
type:
71585+
$ref: "#/components/schemas/RumPermanentRetentionFilterType"
71586+
type: object
71587+
RumPermanentRetentionFilterEditability:
71588+
description: Indicates which cross-product fields of a permanent RUM retention filter can be updated.
71589+
properties:
71590+
trace_editable:
71591+
description: Whether the APM trace cross-product configuration of the filter can be updated.
71592+
example: true
71593+
type: boolean
71594+
type: object
71595+
RumPermanentRetentionFilterID:
71596+
description: The identifier of a permanent RUM retention filter.
71597+
enum:
71598+
- rum_apm_flat_sampling
71599+
- synthetics_sessions
71600+
- forced_replay_sessions
71601+
example: synthetics_sessions
71602+
type: string
71603+
x-enum-varnames: ["RUM_APM_FLAT_SAMPLING", "SYNTHETICS_SESSIONS", "FORCED_REPLAY_SESSIONS"]
71604+
RumPermanentRetentionFilterResponse:
71605+
description: A permanent RUM retention filter object.
71606+
properties:
71607+
data:
71608+
$ref: "#/components/schemas/RumPermanentRetentionFilterData"
71609+
type: object
71610+
RumPermanentRetentionFilterType:
71611+
default: permanent_retention_filters
71612+
description: The type of the resource. The value should always be `permanent_retention_filters`.
71613+
enum:
71614+
- permanent_retention_filters
71615+
example: permanent_retention_filters
71616+
type: string
71617+
x-enum-varnames: ["PERMANENT_RETENTION_FILTERS"]
71618+
RumPermanentRetentionFilterUpdateAttributes:
71619+
description: The configuration to update on a permanent RUM retention filter.
71620+
properties:
71621+
cross_product_sampling:
71622+
$ref: "#/components/schemas/RumCrossProductSamplingUpdate"
71623+
type: object
71624+
RumPermanentRetentionFilterUpdateData:
71625+
description: The new permanent RUM retention filter configuration to update.
71626+
properties:
71627+
attributes:
71628+
$ref: "#/components/schemas/RumPermanentRetentionFilterUpdateAttributes"
71629+
id:
71630+
$ref: "#/components/schemas/RumPermanentRetentionFilterID"
71631+
type:
71632+
$ref: "#/components/schemas/RumPermanentRetentionFilterType"
71633+
required:
71634+
- id
71635+
- type
71636+
- attributes
71637+
type: object
71638+
RumPermanentRetentionFilterUpdateRequest:
71639+
description: The permanent RUM retention filter body to update.
71640+
properties:
71641+
data:
71642+
$ref: "#/components/schemas/RumPermanentRetentionFilterUpdateData"
71643+
required:
71644+
- data
71645+
type: object
71646+
RumPermanentRetentionFiltersResponse:
71647+
description: All permanent RUM retention filters for a RUM application.
71648+
properties:
71649+
data:
71650+
description: A list of permanent RUM retention filters.
71651+
items:
71652+
$ref: "#/components/schemas/RumPermanentRetentionFilterData"
71653+
type: array
71654+
type: object
7155471655
RumRetentionFilterAttributes:
7155571656
description: The object describing attributes of a RUM retention filter.
7155671657
properties:
@@ -146732,6 +146833,159 @@ paths:
146732146833
tags:
146733146834
- Rum Retention Filters
146734146835
x-codegen-request-body-name: body
146836+
/api/v2/rum/applications/{app_id}/retention_filters/permanent:
146837+
get:
146838+
description: |-
146839+
Get the list of permanent RUM retention filters for a RUM application.
146840+
Permanent retention filters are predefined filters that cannot be created or deleted.
146841+
For each filter, the `editability` block indicates which cross-product fields can be updated.
146842+
operationId: ListPermanentRetentionFilters
146843+
parameters:
146844+
- $ref: "#/components/parameters/RumApplicationIDParameter"
146845+
responses:
146846+
"200":
146847+
content:
146848+
application/json:
146849+
examples:
146850+
default:
146851+
value:
146852+
data:
146853+
- attributes:
146854+
cross_product_sampling:
146855+
trace_enabled: true
146856+
trace_sample_rate: 100.0
146857+
description: RUM retains all Synthetics sessions.
146858+
editability:
146859+
trace_editable: true
146860+
name: Synthetics Sessions
146861+
id: synthetics_sessions
146862+
type: permanent_retention_filters
146863+
- attributes:
146864+
cross_product_sampling:
146865+
trace_enabled: true
146866+
trace_sample_rate: 100.0
146867+
description: RUM retains all sessions with forced replays.
146868+
editability:
146869+
trace_editable: true
146870+
name: Forced Replay Sessions
146871+
id: forced_replay_sessions
146872+
type: permanent_retention_filters
146873+
- attributes:
146874+
cross_product_sampling:
146875+
trace_enabled: true
146876+
trace_sample_rate: 100.0
146877+
description: Configures APM trace sampling for RUM sessions using flat sampling.
146878+
editability:
146879+
trace_editable: false
146880+
name: RUM APM Flat Sampling
146881+
id: rum_apm_flat_sampling
146882+
type: permanent_retention_filters
146883+
schema:
146884+
$ref: "#/components/schemas/RumPermanentRetentionFiltersResponse"
146885+
description: OK
146886+
"403":
146887+
$ref: "#/components/responses/NotAuthorizedResponse"
146888+
"429":
146889+
$ref: "#/components/responses/TooManyRequestsResponse"
146890+
summary: Get all permanent RUM retention filters
146891+
tags:
146892+
- Rum Retention Filters
146893+
/api/v2/rum/applications/{app_id}/retention_filters/permanent/{permanent_rf_id}:
146894+
get:
146895+
description: Get a permanent RUM retention filter for a RUM application by its identifier.
146896+
operationId: GetPermanentRetentionFilter
146897+
parameters:
146898+
- $ref: "#/components/parameters/RumApplicationIDParameter"
146899+
- $ref: "#/components/parameters/RumPermanentRetentionFilterIDParameter"
146900+
responses:
146901+
"200":
146902+
content:
146903+
application/json:
146904+
examples:
146905+
default:
146906+
value:
146907+
data:
146908+
attributes:
146909+
cross_product_sampling:
146910+
trace_enabled: true
146911+
trace_sample_rate: 75.0
146912+
description: RUM retains all Synthetics sessions.
146913+
editability:
146914+
trace_editable: true
146915+
name: Synthetics Sessions
146916+
id: synthetics_sessions
146917+
type: permanent_retention_filters
146918+
schema:
146919+
$ref: "#/components/schemas/RumPermanentRetentionFilterResponse"
146920+
description: OK
146921+
"403":
146922+
$ref: "#/components/responses/NotAuthorizedResponse"
146923+
"404":
146924+
$ref: "#/components/responses/NotFoundResponse"
146925+
"429":
146926+
$ref: "#/components/responses/TooManyRequestsResponse"
146927+
summary: Get a permanent RUM retention filter
146928+
tags:
146929+
- Rum Retention Filters
146930+
patch:
146931+
description: |-
146932+
Update the cross-product sampling configuration of a permanent RUM retention filter for a RUM application.
146933+
Only fields marked as editable in the `editability` block of the filter can be updated.
146934+
Updating a non-editable field returns a `400` response.
146935+
operationId: UpdatePermanentRetentionFilter
146936+
parameters:
146937+
- $ref: "#/components/parameters/RumApplicationIDParameter"
146938+
- $ref: "#/components/parameters/RumPermanentRetentionFilterIDParameter"
146939+
requestBody:
146940+
content:
146941+
application/json:
146942+
examples:
146943+
default:
146944+
value:
146945+
data:
146946+
attributes:
146947+
cross_product_sampling:
146948+
trace_enabled: true
146949+
trace_sample_rate: 50.0
146950+
id: synthetics_sessions
146951+
type: permanent_retention_filters
146952+
schema:
146953+
$ref: "#/components/schemas/RumPermanentRetentionFilterUpdateRequest"
146954+
description: New configuration of the permanent RUM retention filter.
146955+
required: true
146956+
responses:
146957+
"200":
146958+
content:
146959+
application/json:
146960+
examples:
146961+
default:
146962+
value:
146963+
data:
146964+
attributes:
146965+
cross_product_sampling:
146966+
trace_enabled: true
146967+
trace_sample_rate: 50.0
146968+
description: RUM retains all Synthetics sessions.
146969+
editability:
146970+
trace_editable: true
146971+
name: Synthetics Sessions
146972+
id: synthetics_sessions
146973+
type: permanent_retention_filters
146974+
schema:
146975+
$ref: "#/components/schemas/RumPermanentRetentionFilterResponse"
146976+
description: Updated
146977+
"400":
146978+
$ref: "#/components/responses/BadRequestResponse"
146979+
"403":
146980+
$ref: "#/components/responses/NotAuthorizedResponse"
146981+
"404":
146982+
$ref: "#/components/responses/NotFoundResponse"
146983+
"429":
146984+
$ref: "#/components/responses/TooManyRequestsResponse"
146985+
summary: Update a permanent RUM retention filter
146986+
tags:
146987+
- Rum Retention Filters
146988+
x-codegen-request-body-name: body
146735146989
/api/v2/rum/applications/{app_id}/retention_filters/{rf_id}:
146736146990
delete:
146737146991
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
@@ -31007,6 +31007,76 @@ datadog\_api\_client.v2.model.rum\_metrics\_response module
3100731007
:members:
3100831008
:show-inheritance:
3100931009

31010+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_attributes module
31011+
----------------------------------------------------------------------------------
31012+
31013+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_attributes
31014+
:members:
31015+
:show-inheritance:
31016+
31017+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_data module
31018+
----------------------------------------------------------------------------
31019+
31020+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_data
31021+
:members:
31022+
:show-inheritance:
31023+
31024+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_editability module
31025+
-----------------------------------------------------------------------------------
31026+
31027+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_editability
31028+
:members:
31029+
:show-inheritance:
31030+
31031+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_id module
31032+
--------------------------------------------------------------------------
31033+
31034+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_id
31035+
:members:
31036+
:show-inheritance:
31037+
31038+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_response module
31039+
--------------------------------------------------------------------------------
31040+
31041+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_response
31042+
:members:
31043+
:show-inheritance:
31044+
31045+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_type module
31046+
----------------------------------------------------------------------------
31047+
31048+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_type
31049+
:members:
31050+
:show-inheritance:
31051+
31052+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_update\_attributes module
31053+
------------------------------------------------------------------------------------------
31054+
31055+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_update_attributes
31056+
:members:
31057+
:show-inheritance:
31058+
31059+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_update\_data module
31060+
------------------------------------------------------------------------------------
31061+
31062+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_update_data
31063+
:members:
31064+
:show-inheritance:
31065+
31066+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_update\_request module
31067+
---------------------------------------------------------------------------------------
31068+
31069+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_update_request
31070+
:members:
31071+
:show-inheritance:
31072+
31073+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filters\_response module
31074+
---------------------------------------------------------------------------------
31075+
31076+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filters_response
31077+
:members:
31078+
:show-inheritance:
31079+
3101031080
datadog\_api\_client.v2.model.rum\_product\_analytics\_retention\_scale module
3101131081
------------------------------------------------------------------------------
3101231082

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)