Skip to content

Commit 87e44de

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f2190ae of spec repo
1 parent 2639971 commit 87e44de

9 files changed

+291
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50374,6 +50374,69 @@ components:
5037450374
type: string
5037550375
x-enum-varnames:
5037650376
- RULESET
50377+
RumCrossProductSampling:
50378+
description: 'Configuration for additional APM Trace data retention for sessions
50379+
matching this retention filter.
50380+
50381+
When a session matches the filter and is retained (based on sample_rate),
50382+
you can configure
50383+
50384+
what percentage of retained sessions with ingested traces should have their
50385+
traces indexed.'
50386+
properties:
50387+
trace_enabled:
50388+
description: Whether Trace cross-product sampling is enabled. When false,
50389+
no traces are indexed regardless of trace_sample_rate.
50390+
example: true
50391+
type: boolean
50392+
trace_sample_rate:
50393+
description: 'The percentage (0-100) of retained sessions with ingested
50394+
traces for which traces are indexed.
50395+
50396+
For example, 25.0 means 25% of retained sessions with ingested traces
50397+
will have their traces indexed.'
50398+
example: 25.0
50399+
format: double
50400+
maximum: 100
50401+
minimum: 0
50402+
type: number
50403+
type: object
50404+
RumCrossProductSamplingCreate:
50405+
description: Configuration for cross-product sampling when creating a retention
50406+
filter.
50407+
properties:
50408+
trace_enabled:
50409+
description: Whether Trace cross-product sampling is enabled.
50410+
example: true
50411+
type: boolean
50412+
trace_sample_rate:
50413+
description: The percentage (0-100) of retained sessions with ingested traces
50414+
for which traces are indexed.
50415+
example: 25.0
50416+
format: double
50417+
maximum: 100
50418+
minimum: 0
50419+
type: number
50420+
required:
50421+
- trace_sample_rate
50422+
type: object
50423+
RumCrossProductSamplingUpdate:
50424+
description: Configuration for cross-product sampling when updating a retention
50425+
filter. All fields are optional for partial updates.
50426+
properties:
50427+
trace_enabled:
50428+
description: Whether Trace cross-product sampling is enabled.
50429+
example: true
50430+
type: boolean
50431+
trace_sample_rate:
50432+
description: The percentage (0-100) of retained sessions with ingested traces
50433+
for which traces are indexed.
50434+
example: 25.0
50435+
format: double
50436+
maximum: 100
50437+
minimum: 0
50438+
type: number
50439+
type: object
5037750440
RumMetricCompute:
5037850441
description: The compute rule to compute the rum-based metric.
5037950442
properties:
@@ -50661,6 +50724,8 @@ components:
5066150724
RumRetentionFilterAttributes:
5066250725
description: The object describing attributes of a RUM retention filter.
5066350726
properties:
50727+
cross_product_sampling:
50728+
$ref: '#/components/schemas/RumCrossProductSampling'
5066450729
enabled:
5066550730
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5066650731
event_type:
@@ -50675,6 +50740,8 @@ components:
5067550740
RumRetentionFilterCreateAttributes:
5067650741
description: The object describing attributes of a RUM retention filter to create.
5067750742
properties:
50743+
cross_product_sampling:
50744+
$ref: '#/components/schemas/RumCrossProductSamplingCreate'
5067850745
enabled:
5067950746
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5068050747
event_type:
@@ -50776,6 +50843,8 @@ components:
5077650843
RumRetentionFilterUpdateAttributes:
5077750844
description: The object describing attributes of a RUM retention filter to update.
5077850845
properties:
50846+
cross_product_sampling:
50847+
$ref: '#/components/schemas/RumCrossProductSamplingUpdate'
5077950848
enabled:
5078050849
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5078150850
event_type:

docs/datadog_api_client.v2.model.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22012,6 +22012,27 @@ datadog\_api\_client.v2.model.rum\_compute\_type module
2201222012
:members:
2201322013
:show-inheritance:
2201422014

22015+
datadog\_api\_client.v2.model.rum\_cross\_product\_sampling module
22016+
------------------------------------------------------------------
22017+
22018+
.. automodule:: datadog_api_client.v2.model.rum_cross_product_sampling
22019+
:members:
22020+
:show-inheritance:
22021+
22022+
datadog\_api\_client.v2.model.rum\_cross\_product\_sampling\_create module
22023+
--------------------------------------------------------------------------
22024+
22025+
.. automodule:: datadog_api_client.v2.model.rum_cross_product_sampling_create
22026+
:members:
22027+
:show-inheritance:
22028+
22029+
datadog\_api\_client.v2.model.rum\_cross\_product\_sampling\_update module
22030+
--------------------------------------------------------------------------
22031+
22032+
.. automodule:: datadog_api_client.v2.model.rum_cross_product_sampling_update
22033+
:members:
22034+
:show-inheritance:
22035+
2201522036
datadog\_api\_client.v2.model.rum\_event module
2201622037
-----------------------------------------------
2201722038

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import Union
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
class RumCrossProductSampling(ModelNormal):
17+
validations = {
18+
"trace_sample_rate": {
19+
"inclusive_maximum": 100,
20+
"inclusive_minimum": 0,
21+
},
22+
}
23+
24+
@cached_property
25+
def openapi_types(_):
26+
return {
27+
"trace_enabled": (bool,),
28+
"trace_sample_rate": (float,),
29+
}
30+
31+
attribute_map = {
32+
"trace_enabled": "trace_enabled",
33+
"trace_sample_rate": "trace_sample_rate",
34+
}
35+
36+
def __init__(
37+
self_,
38+
trace_enabled: Union[bool, UnsetType] = unset,
39+
trace_sample_rate: Union[float, UnsetType] = unset,
40+
**kwargs,
41+
):
42+
"""
43+
Configuration for additional APM Trace data retention for sessions matching this retention filter.
44+
When a session matches the filter and is retained (based on sample_rate), you can configure
45+
what percentage of retained sessions with ingested traces should have their traces indexed.
46+
47+
:param trace_enabled: Whether Trace cross-product sampling is enabled. When false, no traces are indexed regardless of trace_sample_rate.
48+
:type trace_enabled: bool, optional
49+
50+
:param trace_sample_rate: The percentage (0-100) of retained sessions with ingested traces for which traces are indexed.
51+
For example, 25.0 means 25% of retained sessions with ingested traces will have their traces indexed.
52+
:type trace_sample_rate: float, optional
53+
"""
54+
if trace_enabled is not unset:
55+
kwargs["trace_enabled"] = trace_enabled
56+
if trace_sample_rate is not unset:
57+
kwargs["trace_sample_rate"] = trace_sample_rate
58+
super().__init__(kwargs)
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import Union
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
class RumCrossProductSamplingCreate(ModelNormal):
17+
validations = {
18+
"trace_sample_rate": {
19+
"inclusive_maximum": 100,
20+
"inclusive_minimum": 0,
21+
},
22+
}
23+
24+
@cached_property
25+
def openapi_types(_):
26+
return {
27+
"trace_enabled": (bool,),
28+
"trace_sample_rate": (float,),
29+
}
30+
31+
attribute_map = {
32+
"trace_enabled": "trace_enabled",
33+
"trace_sample_rate": "trace_sample_rate",
34+
}
35+
36+
def __init__(self_, trace_sample_rate: float, trace_enabled: Union[bool, UnsetType] = unset, **kwargs):
37+
"""
38+
Configuration for cross-product sampling when creating a retention filter.
39+
40+
:param trace_enabled: Whether Trace cross-product sampling is enabled.
41+
:type trace_enabled: bool, optional
42+
43+
:param trace_sample_rate: The percentage (0-100) of retained sessions with ingested traces for which traces are indexed.
44+
:type trace_sample_rate: float
45+
"""
46+
if trace_enabled is not unset:
47+
kwargs["trace_enabled"] = trace_enabled
48+
super().__init__(kwargs)
49+
50+
self_.trace_sample_rate = trace_sample_rate
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import Union
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
class RumCrossProductSamplingUpdate(ModelNormal):
17+
validations = {
18+
"trace_sample_rate": {
19+
"inclusive_maximum": 100,
20+
"inclusive_minimum": 0,
21+
},
22+
}
23+
24+
@cached_property
25+
def openapi_types(_):
26+
return {
27+
"trace_enabled": (bool,),
28+
"trace_sample_rate": (float,),
29+
}
30+
31+
attribute_map = {
32+
"trace_enabled": "trace_enabled",
33+
"trace_sample_rate": "trace_sample_rate",
34+
}
35+
36+
def __init__(
37+
self_,
38+
trace_enabled: Union[bool, UnsetType] = unset,
39+
trace_sample_rate: Union[float, UnsetType] = unset,
40+
**kwargs,
41+
):
42+
"""
43+
Configuration for cross-product sampling when updating a retention filter. All fields are optional for partial updates.
44+
45+
:param trace_enabled: Whether Trace cross-product sampling is enabled.
46+
:type trace_enabled: bool, optional
47+
48+
:param trace_sample_rate: The percentage (0-100) of retained sessions with ingested traces for which traces are indexed.
49+
:type trace_sample_rate: float, optional
50+
"""
51+
if trace_enabled is not unset:
52+
kwargs["trace_enabled"] = trace_enabled
53+
if trace_sample_rate is not unset:
54+
kwargs["trace_sample_rate"] = trace_sample_rate
55+
super().__init__(kwargs)

src/datadog_api_client/v2/model/rum_retention_filter_attributes.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515

1616
if TYPE_CHECKING:
17+
from datadog_api_client.v2.model.rum_cross_product_sampling import RumCrossProductSampling
1718
from datadog_api_client.v2.model.rum_retention_filter_event_type import RumRetentionFilterEventType
1819

1920

@@ -27,9 +28,11 @@ class RumRetentionFilterAttributes(ModelNormal):
2728

2829
@cached_property
2930
def openapi_types(_):
31+
from datadog_api_client.v2.model.rum_cross_product_sampling import RumCrossProductSampling
3032
from datadog_api_client.v2.model.rum_retention_filter_event_type import RumRetentionFilterEventType
3133

3234
return {
35+
"cross_product_sampling": (RumCrossProductSampling,),
3336
"enabled": (bool,),
3437
"event_type": (RumRetentionFilterEventType,),
3538
"name": (str,),
@@ -38,6 +41,7 @@ def openapi_types(_):
3841
}
3942

4043
attribute_map = {
44+
"cross_product_sampling": "cross_product_sampling",
4145
"enabled": "enabled",
4246
"event_type": "event_type",
4347
"name": "name",
@@ -47,6 +51,7 @@ def openapi_types(_):
4751

4852
def __init__(
4953
self_,
54+
cross_product_sampling: Union[RumCrossProductSampling, UnsetType] = unset,
5055
enabled: Union[bool, UnsetType] = unset,
5156
event_type: Union[RumRetentionFilterEventType, UnsetType] = unset,
5257
name: Union[str, UnsetType] = unset,
@@ -57,6 +62,11 @@ def __init__(
5762
"""
5863
The object describing attributes of a RUM retention filter.
5964
65+
:param cross_product_sampling: Configuration for additional APM Trace data retention for sessions matching this retention filter.
66+
When a session matches the filter and is retained (based on sample_rate), you can configure
67+
what percentage of retained sessions with ingested traces should have their traces indexed.
68+
:type cross_product_sampling: RumCrossProductSampling, optional
69+
6070
:param enabled: Whether the retention filter is enabled.
6171
:type enabled: bool, optional
6272
@@ -72,6 +82,8 @@ def __init__(
7282
:param sample_rate: The sample rate for a RUM retention filter, between 0.1 and 100.
7383
:type sample_rate: float, optional
7484
"""
85+
if cross_product_sampling is not unset:
86+
kwargs["cross_product_sampling"] = cross_product_sampling
7587
if enabled is not unset:
7688
kwargs["enabled"] = enabled
7789
if event_type is not unset:

0 commit comments

Comments
 (0)