Skip to content

Commit 79adc81

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 123108ff of spec repo
1 parent c9ebc2d commit 79adc81

File tree

7 files changed

+51
-10
lines changed

7 files changed

+51
-10
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-06-10 19:57:37.784810",
8-
"spec_repo_commit": "593ab828"
7+
"regenerated": "2025-06-11 07:36:51.114231",
8+
"spec_repo_commit": "123108ff"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-10 19:57:37.806273",
13-
"spec_repo_commit": "593ab828"
12+
"regenerated": "2025-06-11 07:36:51.135521",
13+
"spec_repo_commit": "123108ff"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11095,6 +11095,17 @@ components:
1109511095
- version
1109611096
- name
1109711097
type: object
11098+
DORACustomTags:
11099+
description: A list of user-defined tags. The tags must follow the `key:value`
11100+
pattern. Up to 100 may be added per event.
11101+
example:
11102+
- language:java
11103+
- department:engineering
11104+
items:
11105+
description: Tags in the form of `key:value`.
11106+
type: string
11107+
nullable: true
11108+
type: array
1109811109
DORADeploymentRequest:
1109911110
description: Request to create a DORA deployment event.
1110011111
properties:
@@ -11106,6 +11117,8 @@ components:
1110611117
DORADeploymentRequestAttributes:
1110711118
description: Attributes to create a DORA deployment event.
1110811119
properties:
11120+
custom_tags:
11121+
$ref: '#/components/schemas/DORACustomTags'
1110911122
env:
1111011123
description: Environment name to where the service was deployed.
1111111124
example: staging
@@ -11208,6 +11221,8 @@ components:
1120811221
DORAFailureRequestAttributes:
1120911222
description: Attributes to create a DORA failure event.
1121011223
properties:
11224+
custom_tags:
11225+
$ref: '#/components/schemas/DORACustomTags'
1121111226
env:
1121211227
description: Environment name that was impacted by the failure.
1121311228
example: staging

examples/v2/dora-metrics/CreateDORAFailure.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
body = DORAFailureRequest(
1313
data=DORAFailureRequestData(
1414
attributes=DORAFailureRequestAttributes(
15+
custom_tags=[
16+
"language:java",
17+
"department:engineering",
18+
],
1519
env="staging",
1620
finished_at=1693491984000000000,
1721
git=DORAGitInfo(

examples/v2/dora-metrics/CreateDORAIncident.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
body = DORAFailureRequest(
1313
data=DORAFailureRequestData(
1414
attributes=DORAFailureRequestAttributes(
15+
custom_tags=[
16+
"language:java",
17+
"department:engineering",
18+
],
1519
env="staging",
1620
finished_at=1693491984000000000,
1721
git=DORAGitInfo(

src/datadog_api_client/v2/model/dora_deployment_request_attributes.py

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

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

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
none_type,
1112
unset,
1213
UnsetType,
1314
)
@@ -23,6 +24,7 @@ def openapi_types(_):
2324
from datadog_api_client.v2.model.dora_git_info import DORAGitInfo
2425

2526
return {
27+
"custom_tags": ([str],),
2628
"env": (str,),
2729
"finished_at": (int,),
2830
"git": (DORAGitInfo,),
@@ -34,6 +36,7 @@ def openapi_types(_):
3436
}
3537

3638
attribute_map = {
39+
"custom_tags": "custom_tags",
3740
"env": "env",
3841
"finished_at": "finished_at",
3942
"git": "git",
@@ -49,6 +52,7 @@ def __init__(
4952
finished_at: int,
5053
service: str,
5154
started_at: int,
55+
custom_tags: Union[List[str], none_type, UnsetType] = unset,
5256
env: Union[str, UnsetType] = unset,
5357
git: Union[DORAGitInfo, UnsetType] = unset,
5458
id: Union[str, UnsetType] = unset,
@@ -59,6 +63,9 @@ def __init__(
5963
"""
6064
Attributes to create a DORA deployment event.
6165
66+
:param custom_tags: A list of user-defined tags. The tags must follow the ``key:value`` pattern. Up to 100 may be added per event.
67+
:type custom_tags: [str], none_type, optional
68+
6269
:param env: Environment name to where the service was deployed.
6370
:type env: str, optional
6471
@@ -83,6 +90,8 @@ def __init__(
8390
:param version: Version to correlate with `APM Deployment Tracking <https://docs.datadoghq.com/tracing/services/deployment_tracking/>`_.
8491
:type version: str, optional
8592
"""
93+
if custom_tags is not unset:
94+
kwargs["custom_tags"] = custom_tags
8695
if env is not unset:
8796
kwargs["env"] = env
8897
if git is not unset:

src/datadog_api_client/v2/model/dora_failure_request_attributes.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
none_type,
1112
unset,
1213
UnsetType,
1314
)
@@ -23,6 +24,7 @@ def openapi_types(_):
2324
from datadog_api_client.v2.model.dora_git_info import DORAGitInfo
2425

2526
return {
27+
"custom_tags": ([str],),
2628
"env": (str,),
2729
"finished_at": (int,),
2830
"git": (DORAGitInfo,),
@@ -36,6 +38,7 @@ def openapi_types(_):
3638
}
3739

3840
attribute_map = {
41+
"custom_tags": "custom_tags",
3942
"env": "env",
4043
"finished_at": "finished_at",
4144
"git": "git",
@@ -51,6 +54,7 @@ def openapi_types(_):
5154
def __init__(
5255
self_,
5356
started_at: int,
57+
custom_tags: Union[List[str], none_type, UnsetType] = unset,
5458
env: Union[str, UnsetType] = unset,
5559
finished_at: Union[int, UnsetType] = unset,
5660
git: Union[DORAGitInfo, UnsetType] = unset,
@@ -65,6 +69,9 @@ def __init__(
6569
"""
6670
Attributes to create a DORA failure event.
6771
72+
:param custom_tags: A list of user-defined tags. The tags must follow the ``key:value`` pattern. Up to 100 may be added per event.
73+
:type custom_tags: [str], none_type, optional
74+
6875
:param env: Environment name that was impacted by the failure.
6976
:type env: str, optional
7077
@@ -95,6 +102,8 @@ def __init__(
95102
:param version: Version to correlate with `APM Deployment Tracking <https://docs.datadoghq.com/tracing/services/deployment_tracking/>`_.
96103
:type version: str, optional
97104
"""
105+
if custom_tags is not unset:
106+
kwargs["custom_tags"] = custom_tags
98107
if env is not unset:
99108
kwargs["env"] = env
100109
if finished_at is not unset:

tests/v2/features/dora_metrics.feature

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Feature: DORA Metrics
7979
@generated @skip @team:DataDog/ci-app-backend
8080
Scenario: Send a deployment event for DORA Metrics returns "OK - but delayed due to incident" response
8181
Given new "CreateDORADeployment" request
82-
And body with value {"data": {"attributes": {"env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "service": "shopist", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
82+
And body with value {"data": {"attributes": {"custom_tags": ["language:java", "department:engineering"], "env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "service": "shopist", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
8383
When the request is sent
8484
Then the response status is 202 OK - but delayed due to incident
8585

@@ -100,7 +100,7 @@ Feature: DORA Metrics
100100
@generated @skip @team:DataDog/ci-app-backend
101101
Scenario: Send a failure event for DORA Metrics returns "OK - but delayed due to incident" response
102102
Given new "CreateDORAFailure" request
103-
And body with value {"data": {"attributes": {"env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
103+
And body with value {"data": {"attributes": {"custom_tags": ["language:java", "department:engineering"], "env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
104104
When the request is sent
105105
Then the response status is 202 OK - but delayed due to incident
106106

@@ -114,20 +114,20 @@ Feature: DORA Metrics
114114
@generated @skip @team:DataDog/ci-app-backend
115115
Scenario: Send an incident event for DORA Metrics returns "Bad Request" response
116116
Given new "CreateDORAIncident" request
117-
And body with value {"data": {"attributes": {"env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
117+
And body with value {"data": {"attributes": {"custom_tags": ["language:java", "department:engineering"], "env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
118118
When the request is sent
119119
Then the response status is 400 Bad Request
120120

121121
@generated @skip @team:DataDog/ci-app-backend
122122
Scenario: Send an incident event for DORA Metrics returns "OK - but delayed due to incident" response
123123
Given new "CreateDORAIncident" request
124-
And body with value {"data": {"attributes": {"env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
124+
And body with value {"data": {"attributes": {"custom_tags": ["language:java", "department:engineering"], "env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
125125
When the request is sent
126126
Then the response status is 202 OK - but delayed due to incident
127127

128128
@generated @skip @team:DataDog/ci-app-backend
129129
Scenario: Send an incident event for DORA Metrics returns "OK" response
130130
Given new "CreateDORAIncident" request
131-
And body with value {"data": {"attributes": {"env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
131+
And body with value {"data": {"attributes": {"custom_tags": ["language:java", "department:engineering"], "env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
132132
When the request is sent
133133
Then the response status is 200 OK

0 commit comments

Comments
 (0)