Skip to content

Commit 1f487e0

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e00f4a8 of spec repo
1 parent f8ad149 commit 1f487e0

11 files changed

Lines changed: 368 additions & 10 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 88 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18654,7 +18654,7 @@ components:
1865418654
finished_at: 1693491984000000000
1865518655
git:
1865618656
commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588
18657-
repository_url: https://github.com/organization/example-repository
18657+
repository_id: github.com/organization/example-repository
1865818658
service: shopist
1865918659
started_at: 1693491974000000000
1866018660
team: backend
@@ -18685,7 +18685,7 @@ components:
1868518685
format: int64
1868618686
type: integer
1868718687
git:
18688-
$ref: '#/components/schemas/DORAGitInfo'
18688+
$ref: '#/components/schemas/DORAGitInfoResponse'
1868918689
service:
1869018690
description: Service name.
1869118691
example: shopist
@@ -18896,7 +18896,7 @@ components:
1889618896
finished_at: 1693491984000000000
1889718897
git:
1889818898
commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588
18899-
repository_url: https://github.com/organization/example-repository
18899+
repository_id: github.com/organization/example-repository
1890018900
service: shopist
1890118901
started_at: 1693491974000000000
1890218902
team: backend
@@ -18911,7 +18911,7 @@ components:
1891118911
finished_at: 1693492084000000000
1891218912
git:
1891318913
commit_sha: 77bdc9350f2cc9b250b69abddab733dd55e1a599
18914-
repository_url: https://github.com/organization/api-service
18914+
repository_id: github.com/organization/api-service
1891518915
service: api-service
1891618916
started_at: 1693492074000000000
1891718917
team: backend
@@ -19085,6 +19085,17 @@ components:
1908519085
- repository_url
1908619086
- commit_sha
1908719087
type: object
19088+
DORAGitInfoResponse:
19089+
description: Git info returned by DORA Metrics events.
19090+
properties:
19091+
commit_sha:
19092+
$ref: '#/components/schemas/GitCommitSHA'
19093+
repository_id:
19094+
$ref: '#/components/schemas/GitRepositoryID'
19095+
required:
19096+
- repository_id
19097+
- commit_sha
19098+
type: object
1908819099
DORAIncidentObject:
1908919100
description: A DORA incident event.
1909019101
example:
@@ -28632,6 +28643,10 @@ components:
2863228643
example: 66adc9350f2cc9b250b69abddab733dd55e1a588
2863328644
pattern: ^[a-fA-F0-9]{40,}$
2863428645
type: string
28646+
GitRepositoryID:
28647+
description: Git Repository ID
28648+
example: github.com/organization/example-repository
28649+
type: string
2863528650
GitRepositoryURL:
2863628651
description: Git Repository URL
2863728652
example: https://github.com/organization/example-repository
@@ -54739,6 +54754,69 @@ components:
5473954754
type: string
5474054755
x-enum-varnames:
5474154756
- RULESET
54757+
RumCrossProductSampling:
54758+
description: 'Configuration for additional APM trace data retention for sessions
54759+
that match this retention filter.
54760+
54761+
When a session matches the filter and is retained (based on `sample_rate`),
54762+
you can configure
54763+
54764+
the percentage of retained sessions with ingested traces whose traces are
54765+
indexed.'
54766+
properties:
54767+
trace_enabled:
54768+
description: Indicates whether trace cross-product sampling is enabled.
54769+
If `false`, no traces are indexed regardless of `trace_sample_rate`.
54770+
example: true
54771+
type: boolean
54772+
trace_sample_rate:
54773+
description: 'The percentage (0-100) of retained sessions with ingested
54774+
traces whose traces are indexed.
54775+
54776+
For example, 25.0 means 25% of retained sessions with ingested traces
54777+
have their traces indexed.'
54778+
example: 25.0
54779+
format: double
54780+
maximum: 100
54781+
minimum: 0
54782+
type: number
54783+
type: object
54784+
RumCrossProductSamplingCreate:
54785+
description: Configuration for cross-product sampling when creating a retention
54786+
filter.
54787+
properties:
54788+
trace_enabled:
54789+
description: Indicates whether trace cross-product sampling is enabled.
54790+
example: true
54791+
type: boolean
54792+
trace_sample_rate:
54793+
description: The percentage (0-100) of retained sessions with ingested traces
54794+
whose traces are indexed.
54795+
example: 25.0
54796+
format: double
54797+
maximum: 100
54798+
minimum: 0
54799+
type: number
54800+
required:
54801+
- trace_sample_rate
54802+
type: object
54803+
RumCrossProductSamplingUpdate:
54804+
description: Configuration for cross-product sampling when updating a retention
54805+
filter. All fields are optional for partial updates.
54806+
properties:
54807+
trace_enabled:
54808+
description: Indicates whether trace cross-product sampling is enabled.
54809+
example: true
54810+
type: boolean
54811+
trace_sample_rate:
54812+
description: The percentage (0-100) of retained sessions with ingested traces
54813+
whose traces are indexed.
54814+
example: 25.0
54815+
format: double
54816+
maximum: 100
54817+
minimum: 0
54818+
type: number
54819+
type: object
5474254820
RumMetricCompute:
5474354821
description: The compute rule to compute the rum-based metric.
5474454822
properties:
@@ -55026,6 +55104,8 @@ components:
5502655104
RumRetentionFilterAttributes:
5502755105
description: The object describing attributes of a RUM retention filter.
5502855106
properties:
55107+
cross_product_sampling:
55108+
$ref: '#/components/schemas/RumCrossProductSampling'
5502955109
enabled:
5503055110
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5503155111
event_type:
@@ -55040,6 +55120,8 @@ components:
5504055120
RumRetentionFilterCreateAttributes:
5504155121
description: The object describing attributes of a RUM retention filter to create.
5504255122
properties:
55123+
cross_product_sampling:
55124+
$ref: '#/components/schemas/RumCrossProductSamplingCreate'
5504355125
enabled:
5504455126
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5504555127
event_type:
@@ -55141,6 +55223,8 @@ components:
5514155223
RumRetentionFilterUpdateAttributes:
5514255224
description: The object describing attributes of a RUM retention filter to update.
5514355225
properties:
55226+
cross_product_sampling:
55227+
$ref: '#/components/schemas/RumCrossProductSamplingUpdate'
5514455228
enabled:
5514555229
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5514655230
event_type:

docs/datadog_api_client.v2.model.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8726,6 +8726,13 @@ datadog\_api\_client.v2.model.dora\_git\_info module
87268726
:members:
87278727
:show-inheritance:
87288728

8729+
datadog\_api\_client.v2.model.dora\_git\_info\_response module
8730+
--------------------------------------------------------------
8731+
8732+
.. automodule:: datadog_api_client.v2.model.dora_git_info_response
8733+
:members:
8734+
:show-inheritance:
8735+
87298736
datadog\_api\_client.v2.model.dora\_incident\_object module
87308737
-----------------------------------------------------------
87318738

@@ -23867,6 +23874,27 @@ datadog\_api\_client.v2.model.rum\_compute\_type module
2386723874
:members:
2386823875
:show-inheritance:
2386923876

23877+
datadog\_api\_client.v2.model.rum\_cross\_product\_sampling module
23878+
------------------------------------------------------------------
23879+
23880+
.. automodule:: datadog_api_client.v2.model.rum_cross_product_sampling
23881+
:members:
23882+
:show-inheritance:
23883+
23884+
datadog\_api\_client.v2.model.rum\_cross\_product\_sampling\_create module
23885+
--------------------------------------------------------------------------
23886+
23887+
.. automodule:: datadog_api_client.v2.model.rum_cross_product_sampling_create
23888+
:members:
23889+
:show-inheritance:
23890+
23891+
datadog\_api\_client.v2.model.rum\_cross\_product\_sampling\_update module
23892+
--------------------------------------------------------------------------
23893+
23894+
.. automodule:: datadog_api_client.v2.model.rum_cross_product_sampling_update
23895+
:members:
23896+
:show-inheritance:
23897+
2387023898
datadog\_api\_client.v2.model.rum\_event module
2387123899
-----------------------------------------------
2387223900

src/datadog_api_client/v2/model/dora_deployment_object_attributes.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515

1616

1717
if TYPE_CHECKING:
18-
from datadog_api_client.v2.model.dora_git_info import DORAGitInfo
18+
from datadog_api_client.v2.model.dora_git_info_response import DORAGitInfoResponse
1919

2020

2121
class DORADeploymentObjectAttributes(ModelNormal):
2222
@cached_property
2323
def openapi_types(_):
24-
from datadog_api_client.v2.model.dora_git_info import DORAGitInfo
24+
from datadog_api_client.v2.model.dora_git_info_response import DORAGitInfoResponse
2525

2626
return {
2727
"custom_tags": ([str],),
2828
"env": (str,),
2929
"finished_at": (int,),
30-
"git": (DORAGitInfo,),
30+
"git": (DORAGitInfoResponse,),
3131
"service": (str,),
3232
"started_at": (int,),
3333
"team": (str,),
@@ -52,7 +52,7 @@ def __init__(
5252
started_at: int,
5353
custom_tags: Union[List[str], none_type, UnsetType] = unset,
5454
env: Union[str, UnsetType] = unset,
55-
git: Union[DORAGitInfo, UnsetType] = unset,
55+
git: Union[DORAGitInfoResponse, UnsetType] = unset,
5656
team: Union[str, UnsetType] = unset,
5757
version: Union[str, UnsetType] = unset,
5858
**kwargs,
@@ -69,8 +69,8 @@ def __init__(
6969
:param finished_at: Unix timestamp when the deployment finished.
7070
:type finished_at: int
7171
72-
:param git: Git info for DORA Metrics events.
73-
:type git: DORAGitInfo, optional
72+
:param git: Git info returned by DORA Metrics events.
73+
:type git: DORAGitInfoResponse, optional
7474
7575
:param service: Service name.
7676
:type service: str
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
7+
from datadog_api_client.model_utils import (
8+
ModelNormal,
9+
cached_property,
10+
)
11+
12+
13+
class DORAGitInfoResponse(ModelNormal):
14+
validations = {
15+
"commit_sha": {},
16+
}
17+
18+
@cached_property
19+
def openapi_types(_):
20+
return {
21+
"commit_sha": (str,),
22+
"repository_id": (str,),
23+
}
24+
25+
attribute_map = {
26+
"commit_sha": "commit_sha",
27+
"repository_id": "repository_id",
28+
}
29+
30+
def __init__(self_, commit_sha: str, repository_id: str, **kwargs):
31+
"""
32+
Git info returned by DORA Metrics events.
33+
34+
:param commit_sha: Git Commit SHA.
35+
:type commit_sha: str
36+
37+
:param repository_id: Git Repository ID
38+
:type repository_id: str
39+
"""
40+
super().__init__(kwargs)
41+
42+
self_.commit_sha = commit_sha
43+
self_.repository_id = repository_id
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)

0 commit comments

Comments
 (0)