Skip to content

Commit 7e394b1

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a81de2e of spec repo
1 parent 1256df1 commit 7e394b1

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
@@ -71198,6 +71205,100 @@ components:
7119871205
$ref: "#/components/schemas/RumMetricResponseData"
7119971206
type: array
7120071207
type: object
71208+
RumPermanentRetentionFilterAttributes:
71209+
description: The attributes of a permanent RUM retention filter.
71210+
properties:
71211+
cross_product_sampling:
71212+
$ref: "#/components/schemas/RumCrossProductSampling"
71213+
description:
71214+
description: A description of what the filter retains.
71215+
example: "All sessions generated by Synthetics are retained at 100%."
71216+
type: string
71217+
editability:
71218+
$ref: "#/components/schemas/RumPermanentRetentionFilterEditability"
71219+
name:
71220+
description: The display name of the permanent retention filter.
71221+
example: "Synthetics Sessions"
71222+
type: string
71223+
type: object
71224+
RumPermanentRetentionFilterData:
71225+
description: A permanent RUM retention filter.
71226+
properties:
71227+
attributes:
71228+
$ref: "#/components/schemas/RumPermanentRetentionFilterAttributes"
71229+
id:
71230+
$ref: "#/components/schemas/RumPermanentRetentionFilterID"
71231+
type:
71232+
$ref: "#/components/schemas/RumPermanentRetentionFilterType"
71233+
type: object
71234+
RumPermanentRetentionFilterEditability:
71235+
description: Indicates which cross-product fields of a permanent RUM retention filter can be updated.
71236+
properties:
71237+
trace_editable:
71238+
description: Whether the APM trace cross-product configuration of the filter can be updated.
71239+
example: true
71240+
type: boolean
71241+
type: object
71242+
RumPermanentRetentionFilterID:
71243+
description: The identifier of a permanent RUM retention filter.
71244+
enum:
71245+
- rum_apm_flat_sampling
71246+
- synthetics_sessions
71247+
- forced_replay_sessions
71248+
example: synthetics_sessions
71249+
type: string
71250+
x-enum-varnames: ["RUM_APM_FLAT_SAMPLING", "SYNTHETICS_SESSIONS", "FORCED_REPLAY_SESSIONS"]
71251+
RumPermanentRetentionFilterResponse:
71252+
description: A permanent RUM retention filter object.
71253+
properties:
71254+
data:
71255+
$ref: "#/components/schemas/RumPermanentRetentionFilterData"
71256+
type: object
71257+
RumPermanentRetentionFilterType:
71258+
default: permanent_retention_filters
71259+
description: The type of the resource. The value should always be `permanent_retention_filters`.
71260+
enum:
71261+
- permanent_retention_filters
71262+
example: permanent_retention_filters
71263+
type: string
71264+
x-enum-varnames: ["PERMANENT_RETENTION_FILTERS"]
71265+
RumPermanentRetentionFilterUpdateAttributes:
71266+
description: The configuration to update on a permanent RUM retention filter.
71267+
properties:
71268+
cross_product_sampling:
71269+
$ref: "#/components/schemas/RumCrossProductSamplingUpdate"
71270+
type: object
71271+
RumPermanentRetentionFilterUpdateData:
71272+
description: The new permanent RUM retention filter configuration to update.
71273+
properties:
71274+
attributes:
71275+
$ref: "#/components/schemas/RumPermanentRetentionFilterUpdateAttributes"
71276+
id:
71277+
$ref: "#/components/schemas/RumPermanentRetentionFilterID"
71278+
type:
71279+
$ref: "#/components/schemas/RumPermanentRetentionFilterType"
71280+
required:
71281+
- id
71282+
- type
71283+
- attributes
71284+
type: object
71285+
RumPermanentRetentionFilterUpdateRequest:
71286+
description: The permanent RUM retention filter body to update.
71287+
properties:
71288+
data:
71289+
$ref: "#/components/schemas/RumPermanentRetentionFilterUpdateData"
71290+
required:
71291+
- data
71292+
type: object
71293+
RumPermanentRetentionFiltersResponse:
71294+
description: All permanent RUM retention filters for a RUM application.
71295+
properties:
71296+
data:
71297+
description: A list of permanent RUM retention filters.
71298+
items:
71299+
$ref: "#/components/schemas/RumPermanentRetentionFilterData"
71300+
type: array
71301+
type: object
7120171302
RumRetentionFilterAttributes:
7120271303
description: The object describing attributes of a RUM retention filter.
7120371304
properties:
@@ -145701,6 +145802,159 @@ paths:
145701145802
tags:
145702145803
- Rum Retention Filters
145703145804
x-codegen-request-body-name: body
145805+
/api/v2/rum/applications/{app_id}/retention_filters/permanent:
145806+
get:
145807+
description: |-
145808+
Get the list of permanent RUM retention filters for a RUM application.
145809+
Permanent retention filters are predefined filters that cannot be created or deleted.
145810+
For each filter, the `editability` block indicates which cross-product fields can be updated.
145811+
operationId: ListPermanentRetentionFilters
145812+
parameters:
145813+
- $ref: "#/components/parameters/RumApplicationIDParameter"
145814+
responses:
145815+
"200":
145816+
content:
145817+
application/json:
145818+
examples:
145819+
default:
145820+
value:
145821+
data:
145822+
- attributes:
145823+
cross_product_sampling:
145824+
trace_enabled: true
145825+
trace_sample_rate: 100.0
145826+
description: RUM retains all Synthetics sessions.
145827+
editability:
145828+
trace_editable: true
145829+
name: Synthetics Sessions
145830+
id: synthetics_sessions
145831+
type: permanent_retention_filters
145832+
- attributes:
145833+
cross_product_sampling:
145834+
trace_enabled: true
145835+
trace_sample_rate: 100.0
145836+
description: RUM retains all sessions with forced replays.
145837+
editability:
145838+
trace_editable: true
145839+
name: Forced Replay Sessions
145840+
id: forced_replay_sessions
145841+
type: permanent_retention_filters
145842+
- attributes:
145843+
cross_product_sampling:
145844+
trace_enabled: true
145845+
trace_sample_rate: 100.0
145846+
description: Configures APM trace sampling for RUM sessions using flat sampling.
145847+
editability:
145848+
trace_editable: false
145849+
name: RUM APM Flat Sampling
145850+
id: rum_apm_flat_sampling
145851+
type: permanent_retention_filters
145852+
schema:
145853+
$ref: "#/components/schemas/RumPermanentRetentionFiltersResponse"
145854+
description: OK
145855+
"403":
145856+
$ref: "#/components/responses/NotAuthorizedResponse"
145857+
"429":
145858+
$ref: "#/components/responses/TooManyRequestsResponse"
145859+
summary: Get all permanent RUM retention filters
145860+
tags:
145861+
- Rum Retention Filters
145862+
/api/v2/rum/applications/{app_id}/retention_filters/permanent/{permanent_rf_id}:
145863+
get:
145864+
description: Get a permanent RUM retention filter for a RUM application by its identifier.
145865+
operationId: GetPermanentRetentionFilter
145866+
parameters:
145867+
- $ref: "#/components/parameters/RumApplicationIDParameter"
145868+
- $ref: "#/components/parameters/RumPermanentRetentionFilterIDParameter"
145869+
responses:
145870+
"200":
145871+
content:
145872+
application/json:
145873+
examples:
145874+
default:
145875+
value:
145876+
data:
145877+
attributes:
145878+
cross_product_sampling:
145879+
trace_enabled: true
145880+
trace_sample_rate: 75.0
145881+
description: RUM retains all Synthetics sessions.
145882+
editability:
145883+
trace_editable: true
145884+
name: Synthetics Sessions
145885+
id: synthetics_sessions
145886+
type: permanent_retention_filters
145887+
schema:
145888+
$ref: "#/components/schemas/RumPermanentRetentionFilterResponse"
145889+
description: OK
145890+
"403":
145891+
$ref: "#/components/responses/NotAuthorizedResponse"
145892+
"404":
145893+
$ref: "#/components/responses/NotFoundResponse"
145894+
"429":
145895+
$ref: "#/components/responses/TooManyRequestsResponse"
145896+
summary: Get a permanent RUM retention filter
145897+
tags:
145898+
- Rum Retention Filters
145899+
patch:
145900+
description: |-
145901+
Update the cross-product sampling configuration of a permanent RUM retention filter for a RUM application.
145902+
Only fields marked as editable in the `editability` block of the filter can be updated.
145903+
Updating a non-editable field returns a `400` response.
145904+
operationId: UpdatePermanentRetentionFilter
145905+
parameters:
145906+
- $ref: "#/components/parameters/RumApplicationIDParameter"
145907+
- $ref: "#/components/parameters/RumPermanentRetentionFilterIDParameter"
145908+
requestBody:
145909+
content:
145910+
application/json:
145911+
examples:
145912+
default:
145913+
value:
145914+
data:
145915+
attributes:
145916+
cross_product_sampling:
145917+
trace_enabled: true
145918+
trace_sample_rate: 50.0
145919+
id: synthetics_sessions
145920+
type: permanent_retention_filters
145921+
schema:
145922+
$ref: "#/components/schemas/RumPermanentRetentionFilterUpdateRequest"
145923+
description: New configuration of the permanent RUM retention filter.
145924+
required: true
145925+
responses:
145926+
"200":
145927+
content:
145928+
application/json:
145929+
examples:
145930+
default:
145931+
value:
145932+
data:
145933+
attributes:
145934+
cross_product_sampling:
145935+
trace_enabled: true
145936+
trace_sample_rate: 50.0
145937+
description: RUM retains all Synthetics sessions.
145938+
editability:
145939+
trace_editable: true
145940+
name: Synthetics Sessions
145941+
id: synthetics_sessions
145942+
type: permanent_retention_filters
145943+
schema:
145944+
$ref: "#/components/schemas/RumPermanentRetentionFilterResponse"
145945+
description: Updated
145946+
"400":
145947+
$ref: "#/components/responses/BadRequestResponse"
145948+
"403":
145949+
$ref: "#/components/responses/NotAuthorizedResponse"
145950+
"404":
145951+
$ref: "#/components/responses/NotFoundResponse"
145952+
"429":
145953+
$ref: "#/components/responses/TooManyRequestsResponse"
145954+
summary: Update a permanent RUM retention filter
145955+
tags:
145956+
- Rum Retention Filters
145957+
x-codegen-request-body-name: body
145704145958
/api/v2/rum/applications/{app_id}/retention_filters/{rf_id}:
145705145959
delete:
145706145960
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
@@ -30832,6 +30832,76 @@ datadog\_api\_client.v2.model.rum\_metrics\_response module
3083230832
:members:
3083330833
:show-inheritance:
3083430834

30835+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_attributes module
30836+
----------------------------------------------------------------------------------
30837+
30838+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_attributes
30839+
:members:
30840+
:show-inheritance:
30841+
30842+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_data module
30843+
----------------------------------------------------------------------------
30844+
30845+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_data
30846+
:members:
30847+
:show-inheritance:
30848+
30849+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_editability module
30850+
-----------------------------------------------------------------------------------
30851+
30852+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_editability
30853+
:members:
30854+
:show-inheritance:
30855+
30856+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_id module
30857+
--------------------------------------------------------------------------
30858+
30859+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_id
30860+
:members:
30861+
:show-inheritance:
30862+
30863+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_response module
30864+
--------------------------------------------------------------------------------
30865+
30866+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_response
30867+
:members:
30868+
:show-inheritance:
30869+
30870+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_type module
30871+
----------------------------------------------------------------------------
30872+
30873+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_type
30874+
:members:
30875+
:show-inheritance:
30876+
30877+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_update\_attributes module
30878+
------------------------------------------------------------------------------------------
30879+
30880+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_update_attributes
30881+
:members:
30882+
:show-inheritance:
30883+
30884+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_update\_data module
30885+
------------------------------------------------------------------------------------
30886+
30887+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_update_data
30888+
:members:
30889+
:show-inheritance:
30890+
30891+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filter\_update\_request module
30892+
---------------------------------------------------------------------------------------
30893+
30894+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filter_update_request
30895+
:members:
30896+
:show-inheritance:
30897+
30898+
datadog\_api\_client.v2.model.rum\_permanent\_retention\_filters\_response module
30899+
---------------------------------------------------------------------------------
30900+
30901+
.. automodule:: datadog_api_client.v2.model.rum_permanent_retention_filters_response
30902+
:members:
30903+
:show-inheritance:
30904+
3083530905
datadog\_api\_client.v2.model.rum\_product\_analytics\_retention\_scale module
3083630906
------------------------------------------------------------------------------
3083730907

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)