Skip to content

Commit 8dda213

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit b2c4e7e8 of spec repo (#2319)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 48460d8 commit 8dda213

File tree

7 files changed

+42
-9
lines changed

7 files changed

+42
-9
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-13 19:38:20.922353",
8-
"spec_repo_commit": "6eb36f2b"
7+
"regenerated": "2025-06-16 08:24:51.425950",
8+
"spec_repo_commit": "b2c4e7e8"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-13 19:38:20.939768",
13-
"spec_repo_commit": "6eb36f2b"
12+
"regenerated": "2025-06-16 08:24:51.442050",
13+
"spec_repo_commit": "b2c4e7e8"
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.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const params: v2.DORAMetricsApiCreateDORAFailureRequest = {
1111
body: {
1212
data: {
1313
attributes: {
14+
customTags: ["language:java", "department:engineering"],
1415
env: "staging",
1516
finishedAt: 1693491984000000000,
1617
git: {

examples/v2/dora-metrics/CreateDORAIncident.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const params: v2.DORAMetricsApiCreateDORAIncidentRequest = {
1111
body: {
1212
data: {
1313
attributes: {
14+
customTags: ["language:java", "department:engineering"],
1415
env: "staging",
1516
finishedAt: 1693491984000000000,
1617
git: {

features/v2/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

packages/datadog-api-client-v2/models/DORADeploymentRequestAttributes.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1111
* Attributes to create a DORA deployment event.
1212
*/
1313
export class DORADeploymentRequestAttributes {
14+
/**
15+
* A list of user-defined tags. The tags must follow the `key:value` pattern. Up to 100 may be added per event.
16+
*/
17+
"customTags"?: Array<string>;
1418
/**
1519
* Environment name to where the service was deployed.
1620
*/
@@ -60,6 +64,10 @@ export class DORADeploymentRequestAttributes {
6064
* @ignore
6165
*/
6266
static readonly attributeTypeMap: AttributeTypeMap = {
67+
customTags: {
68+
baseName: "custom_tags",
69+
type: "Array<string>",
70+
},
6371
env: {
6472
baseName: "env",
6573
type: "string",

packages/datadog-api-client-v2/models/DORAFailureRequestAttributes.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1111
* Attributes to create a DORA failure event.
1212
*/
1313
export class DORAFailureRequestAttributes {
14+
/**
15+
* A list of user-defined tags. The tags must follow the `key:value` pattern. Up to 100 may be added per event.
16+
*/
17+
"customTags"?: Array<string>;
1418
/**
1519
* Environment name that was impacted by the failure.
1620
*/
@@ -68,6 +72,10 @@ export class DORAFailureRequestAttributes {
6872
* @ignore
6973
*/
7074
static readonly attributeTypeMap: AttributeTypeMap = {
75+
customTags: {
76+
baseName: "custom_tags",
77+
type: "Array<string>",
78+
},
7179
env: {
7280
baseName: "env",
7381
type: "string",

0 commit comments

Comments
 (0)