Skip to content

Commit c5b15b5

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 13ef2cd of spec repo
1 parent aa0190d commit c5b15b5

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
@@ -54629,6 +54629,69 @@ components:
5462954629
type: string
5463054630
x-enum-varnames:
5463154631
- RULESET
54632+
RumCrossProductSampling:
54633+
description: 'Configuration for additional APM trace data retention for sessions
54634+
that match this retention filter.
54635+
54636+
When a session matches the filter and is retained (based on `sample_rate`),
54637+
you can configure
54638+
54639+
the percentage of retained sessions with ingested traces whose traces are
54640+
indexed.'
54641+
properties:
54642+
trace_enabled:
54643+
description: Indicates whether trace cross-product sampling is enabled.
54644+
If `false`, no traces are indexed regardless of `trace_sample_rate`.
54645+
example: true
54646+
type: boolean
54647+
trace_sample_rate:
54648+
description: 'The percentage (0-100) of retained sessions with ingested
54649+
traces whose traces are indexed.
54650+
54651+
For example, 25.0 means 25% of retained sessions with ingested traces
54652+
have their traces indexed.'
54653+
example: 25.0
54654+
format: double
54655+
maximum: 100
54656+
minimum: 0
54657+
type: number
54658+
type: object
54659+
RumCrossProductSamplingCreate:
54660+
description: Configuration for cross-product sampling when creating a retention
54661+
filter.
54662+
properties:
54663+
trace_enabled:
54664+
description: Indicates whether trace cross-product sampling is enabled.
54665+
example: true
54666+
type: boolean
54667+
trace_sample_rate:
54668+
description: The percentage (0-100) of retained sessions with ingested traces
54669+
whose traces are indexed.
54670+
example: 25.0
54671+
format: double
54672+
maximum: 100
54673+
minimum: 0
54674+
type: number
54675+
required:
54676+
- trace_sample_rate
54677+
type: object
54678+
RumCrossProductSamplingUpdate:
54679+
description: Configuration for cross-product sampling when updating a retention
54680+
filter. All fields are optional for partial updates.
54681+
properties:
54682+
trace_enabled:
54683+
description: Indicates whether trace cross-product sampling is enabled.
54684+
example: true
54685+
type: boolean
54686+
trace_sample_rate:
54687+
description: The percentage (0-100) of retained sessions with ingested traces
54688+
whose traces are indexed.
54689+
example: 25.0
54690+
format: double
54691+
maximum: 100
54692+
minimum: 0
54693+
type: number
54694+
type: object
5463254695
RumMetricCompute:
5463354696
description: The compute rule to compute the rum-based metric.
5463454697
properties:
@@ -54916,6 +54979,8 @@ components:
5491654979
RumRetentionFilterAttributes:
5491754980
description: The object describing attributes of a RUM retention filter.
5491854981
properties:
54982+
cross_product_sampling:
54983+
$ref: '#/components/schemas/RumCrossProductSampling'
5491954984
enabled:
5492054985
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5492154986
event_type:
@@ -54930,6 +54995,8 @@ components:
5493054995
RumRetentionFilterCreateAttributes:
5493154996
description: The object describing attributes of a RUM retention filter to create.
5493254997
properties:
54998+
cross_product_sampling:
54999+
$ref: '#/components/schemas/RumCrossProductSamplingCreate'
5493355000
enabled:
5493455001
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5493555002
event_type:
@@ -55031,6 +55098,8 @@ components:
5503155098
RumRetentionFilterUpdateAttributes:
5503255099
description: The object describing attributes of a RUM retention filter to update.
5503355100
properties:
55101+
cross_product_sampling:
55102+
$ref: '#/components/schemas/RumCrossProductSamplingUpdate'
5503455103
enabled:
5503555104
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5503655105
event_type:

docs/datadog_api_client.v2.model.rst

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

23807+
datadog\_api\_client.v2.model.rum\_cross\_product\_sampling module
23808+
------------------------------------------------------------------
23809+
23810+
.. automodule:: datadog_api_client.v2.model.rum_cross_product_sampling
23811+
:members:
23812+
:show-inheritance:
23813+
23814+
datadog\_api\_client.v2.model.rum\_cross\_product\_sampling\_create module
23815+
--------------------------------------------------------------------------
23816+
23817+
.. automodule:: datadog_api_client.v2.model.rum_cross_product_sampling_create
23818+
:members:
23819+
:show-inheritance:
23820+
23821+
datadog\_api\_client.v2.model.rum\_cross\_product\_sampling\_update module
23822+
--------------------------------------------------------------------------
23823+
23824+
.. automodule:: datadog_api_client.v2.model.rum_cross_product_sampling_update
23825+
:members:
23826+
:show-inheritance:
23827+
2380723828
datadog\_api\_client.v2.model.rum\_event module
2380823829
-----------------------------------------------
2380923830

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 that match this retention filter.
44+
When a session matches the filter and is retained (based on ``sample_rate`` ), you can configure
45+
the percentage of retained sessions with ingested traces whose traces are indexed.
46+
47+
:param trace_enabled: Indicates whether trace cross-product sampling is enabled. If ``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 whose traces are indexed.
51+
For example, 25.0 means 25% of retained sessions with ingested traces 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: Indicates 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 whose 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: Indicates 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 whose 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 that match this retention filter.
66+
When a session matches the filter and is retained (based on ``sample_rate`` ), you can configure
67+
the percentage of retained sessions with ingested traces whose traces are 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)