Skip to content

Commit 8abf9e2

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit cb8281c of spec repo
1 parent f8ad149 commit 8abf9e2

10 files changed

+305
-1
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49103,6 +49103,11 @@ components:
4910349103
name:
4910449104
description: Name of the permission.
4910549105
type: string
49106+
name_aliases:
49107+
description: List of alias names for the permission.
49108+
items:
49109+
type: string
49110+
type: array
4910649111
restricted:
4910749112
description: Whether or not the permission is restricted.
4910849113
type: boolean
@@ -54739,6 +54744,69 @@ components:
5473954744
type: string
5474054745
x-enum-varnames:
5474154746
- RULESET
54747+
RumCrossProductSampling:
54748+
description: 'Configuration for additional APM trace data retention for sessions
54749+
that match this retention filter.
54750+
54751+
When a session matches the filter and is retained (based on `sample_rate`),
54752+
you can configure
54753+
54754+
the percentage of retained sessions with ingested traces whose traces are
54755+
indexed.'
54756+
properties:
54757+
trace_enabled:
54758+
description: Indicates whether trace cross-product sampling is enabled.
54759+
If `false`, no traces are indexed regardless of `trace_sample_rate`.
54760+
example: true
54761+
type: boolean
54762+
trace_sample_rate:
54763+
description: 'The percentage (0-100) of retained sessions with ingested
54764+
traces whose traces are indexed.
54765+
54766+
For example, 25.0 means 25% of retained sessions with ingested traces
54767+
have their traces indexed.'
54768+
example: 25.0
54769+
format: double
54770+
maximum: 100
54771+
minimum: 0
54772+
type: number
54773+
type: object
54774+
RumCrossProductSamplingCreate:
54775+
description: Configuration for cross-product sampling when creating a retention
54776+
filter.
54777+
properties:
54778+
trace_enabled:
54779+
description: Indicates whether trace cross-product sampling is enabled.
54780+
example: true
54781+
type: boolean
54782+
trace_sample_rate:
54783+
description: The percentage (0-100) of retained sessions with ingested traces
54784+
whose traces are indexed.
54785+
example: 25.0
54786+
format: double
54787+
maximum: 100
54788+
minimum: 0
54789+
type: number
54790+
required:
54791+
- trace_sample_rate
54792+
type: object
54793+
RumCrossProductSamplingUpdate:
54794+
description: Configuration for cross-product sampling when updating a retention
54795+
filter. All fields are optional for partial updates.
54796+
properties:
54797+
trace_enabled:
54798+
description: Indicates whether trace cross-product sampling is enabled.
54799+
example: true
54800+
type: boolean
54801+
trace_sample_rate:
54802+
description: The percentage (0-100) of retained sessions with ingested traces
54803+
whose traces are indexed.
54804+
example: 25.0
54805+
format: double
54806+
maximum: 100
54807+
minimum: 0
54808+
type: number
54809+
type: object
5474254810
RumMetricCompute:
5474354811
description: The compute rule to compute the rum-based metric.
5474454812
properties:
@@ -55026,6 +55094,8 @@ components:
5502655094
RumRetentionFilterAttributes:
5502755095
description: The object describing attributes of a RUM retention filter.
5502855096
properties:
55097+
cross_product_sampling:
55098+
$ref: '#/components/schemas/RumCrossProductSampling'
5502955099
enabled:
5503055100
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5503155101
event_type:
@@ -55040,6 +55110,8 @@ components:
5504055110
RumRetentionFilterCreateAttributes:
5504155111
description: The object describing attributes of a RUM retention filter to create.
5504255112
properties:
55113+
cross_product_sampling:
55114+
$ref: '#/components/schemas/RumCrossProductSamplingCreate'
5504355115
enabled:
5504455116
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5504555117
event_type:
@@ -55141,6 +55213,8 @@ components:
5514155213
RumRetentionFilterUpdateAttributes:
5514255214
description: The object describing attributes of a RUM retention filter to update.
5514355215
properties:
55216+
cross_product_sampling:
55217+
$ref: '#/components/schemas/RumCrossProductSamplingUpdate'
5514455218
enabled:
5514555219
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5514655220
event_type:

docs/datadog_api_client.v2.model.rst

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

23870+
datadog\_api\_client.v2.model.rum\_cross\_product\_sampling module
23871+
------------------------------------------------------------------
23872+
23873+
.. automodule:: datadog_api_client.v2.model.rum_cross_product_sampling
23874+
:members:
23875+
:show-inheritance:
23876+
23877+
datadog\_api\_client.v2.model.rum\_cross\_product\_sampling\_create module
23878+
--------------------------------------------------------------------------
23879+
23880+
.. automodule:: datadog_api_client.v2.model.rum_cross_product_sampling_create
23881+
:members:
23882+
:show-inheritance:
23883+
23884+
datadog\_api\_client.v2.model.rum\_cross\_product\_sampling\_update module
23885+
--------------------------------------------------------------------------
23886+
23887+
.. automodule:: datadog_api_client.v2.model.rum_cross_product_sampling_update
23888+
:members:
23889+
:show-inheritance:
23890+
2387023891
datadog\_api\_client.v2.model.rum\_event module
2387123892
-----------------------------------------------
2387223893

src/datadog_api_client/v2/model/permission_attributes.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union
6+
from typing import List, Union
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
@@ -24,6 +24,7 @@ def openapi_types(_):
2424
"display_type": (str,),
2525
"group_name": (str,),
2626
"name": (str,),
27+
"name_aliases": ([str],),
2728
"restricted": (bool,),
2829
}
2930

@@ -34,6 +35,7 @@ def openapi_types(_):
3435
"display_type": "display_type",
3536
"group_name": "group_name",
3637
"name": "name",
38+
"name_aliases": "name_aliases",
3739
"restricted": "restricted",
3840
}
3941

@@ -45,6 +47,7 @@ def __init__(
4547
display_type: Union[str, UnsetType] = unset,
4648
group_name: Union[str, UnsetType] = unset,
4749
name: Union[str, UnsetType] = unset,
50+
name_aliases: Union[List[str], UnsetType] = unset,
4851
restricted: Union[bool, UnsetType] = unset,
4952
**kwargs,
5053
):
@@ -69,6 +72,9 @@ def __init__(
6972
:param name: Name of the permission.
7073
:type name: str, optional
7174
75+
:param name_aliases: List of alias names for the permission.
76+
:type name_aliases: [str], optional
77+
7278
:param restricted: Whether or not the permission is restricted.
7379
:type restricted: bool, optional
7480
"""
@@ -84,6 +90,8 @@ def __init__(
8490
kwargs["group_name"] = group_name
8591
if name is not unset:
8692
kwargs["name"] = name
93+
if name_aliases is not unset:
94+
kwargs["name_aliases"] = name_aliases
8795
if restricted is not unset:
8896
kwargs["restricted"] = restricted
8997
super().__init__(kwargs)
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)

0 commit comments

Comments
 (0)