Skip to content

Commit 2201b6d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit b2c4e7e of spec repo (#2349)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 9b1a5b1 commit 2201b6d

File tree

4 files changed

+36
-5
lines changed

4 files changed

+36
-5
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11167,6 +11167,17 @@ components:
1116711167
- version
1116811168
- name
1116911169
type: object
11170+
DORACustomTags:
11171+
description: A list of user-defined tags. The tags must follow the `key:value`
11172+
pattern. Up to 100 may be added per event.
11173+
example:
11174+
- language:java
11175+
- department:engineering
11176+
items:
11177+
description: Tags in the form of `key:value`.
11178+
type: string
11179+
nullable: true
11180+
type: array
1117011181
DORADeploymentRequest:
1117111182
description: Request to create a DORA deployment event.
1117211183
properties:
@@ -11178,6 +11189,8 @@ components:
1117811189
DORADeploymentRequestAttributes:
1117911190
description: Attributes to create a DORA deployment event.
1118011191
properties:
11192+
custom_tags:
11193+
$ref: '#/components/schemas/DORACustomTags'
1118111194
env:
1118211195
description: Environment name to where the service was deployed.
1118311196
example: staging
@@ -11280,6 +11293,8 @@ components:
1128011293
DORAFailureRequestAttributes:
1128111294
description: Attributes to create a DORA failure event.
1128211295
properties:
11296+
custom_tags:
11297+
$ref: '#/components/schemas/DORACustomTags'
1128311298
env:
1128411299
description: Environment name that was impacted by the failure.
1128511300
example: staging

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

services/dora_metrics/src/v2/models/DORADeploymentRequestAttributes.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import { DORAGitInfo } from "./DORAGitInfo";
66
* Attributes to create a DORA deployment event.
77
*/
88
export class DORADeploymentRequestAttributes {
9+
/**
10+
* A list of user-defined tags. The tags must follow the `key:value` pattern. Up to 100 may be added per event.
11+
*/
12+
"customTags"?: Array<string>;
913
/**
1014
* Environment name to where the service was deployed.
1115
*/
@@ -53,6 +57,10 @@ export class DORADeploymentRequestAttributes {
5357
* @ignore
5458
*/
5559
static readonly attributeTypeMap: AttributeTypeMap = {
60+
customTags: {
61+
baseName: "custom_tags",
62+
type: "Array<string>",
63+
},
5664
env: {
5765
baseName: "env",
5866
type: "string",

services/dora_metrics/src/v2/models/DORAFailureRequestAttributes.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import { DORAGitInfo } from "./DORAGitInfo";
66
* Attributes to create a DORA failure event.
77
*/
88
export class DORAFailureRequestAttributes {
9+
/**
10+
* A list of user-defined tags. The tags must follow the `key:value` pattern. Up to 100 may be added per event.
11+
*/
12+
"customTags"?: Array<string>;
913
/**
1014
* Environment name that was impacted by the failure.
1115
*/
@@ -61,6 +65,10 @@ export class DORAFailureRequestAttributes {
6165
* @ignore
6266
*/
6367
static readonly attributeTypeMap: AttributeTypeMap = {
68+
customTags: {
69+
baseName: "custom_tags",
70+
type: "Array<string>",
71+
},
6472
env: {
6573
baseName: "env",
6674
type: "string",

0 commit comments

Comments
 (0)