Skip to content

Commit 787a638

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c9f5505 of spec repo
1 parent ec82e91 commit 787a638

File tree

8 files changed

+22
-24
lines changed

8 files changed

+22
-24
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13717,8 +13717,7 @@ components:
1371713717
type: string
1371813718
finished_at:
1371913719
description: Unix timestamp when the deployment finished. It must be in
13720-
nanoseconds, milliseconds, or seconds, and it should not be older than
13721-
1 hour.
13720+
nanoseconds, milliseconds, or seconds.
1372213721
example: 1693491984000000000
1372313722
format: int64
1372413723
type: integer
@@ -57625,8 +57624,7 @@ paths:
5762557624
- manage_log_reports
5762657625
/api/v2/dora/deployment:
5762757626
post:
57628-
description: 'Use this API endpoint to provide data about deployments for DORA
57629-
metrics.
57627+
description: 'Use this API endpoint to provide deployment data.
5763057628

5763157629

5763257630
This is necessary for:
@@ -57668,7 +57666,7 @@ paths:
5766857666
$ref: '#/components/responses/TooManyRequestsResponse'
5766957667
security:
5767057668
- apiKeyAuth: []
57671-
summary: Send a deployment event for DORA Metrics
57669+
summary: Send a deployment event
5767257670
tags:
5767357671
- DORA Metrics
5767457672
x-codegen-request-body-name: body
@@ -57785,7 +57783,7 @@ paths:
5778557783
- dora_metrics_read
5778657784
/api/v2/dora/failure:
5778757785
post:
57788-
description: 'Use this API endpoint to provide failure data for DORA metrics.
57786+
description: 'Use this API endpoint to provide failure data.
5778957787

5779057788

5779157789
This is necessary for:
@@ -57825,7 +57823,7 @@ paths:
5782557823
$ref: '#/components/responses/TooManyRequestsResponse'
5782657824
security:
5782757825
- apiKeyAuth: []
57828-
summary: Send a failure event for DORA Metrics
57826+
summary: Send a failure event
5782957827
tags:
5783057828
- DORA Metrics
5783157829
x-codegen-request-body-name: body
@@ -57947,7 +57945,7 @@ paths:
5794757945
instead.
5794857946

5794957947

57950-
Use this API endpoint to provide failure data for DORA metrics.
57948+
Use this API endpoint to provide failure data.
5795157949

5795257950

5795357951
This is necessary for:
@@ -57987,7 +57985,7 @@ paths:
5798757985
$ref: '#/components/responses/TooManyRequestsResponse'
5798857986
security:
5798957987
- apiKeyAuth: []
57990-
summary: Send an incident event for DORA Metrics
57988+
summary: Send an incident event
5799157989
tags:
5799257990
- DORA Metrics
5799357991
x-codegen-request-body-name: body
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"log": {
3-
"_recordingName": "DORA Metrics/Send a deployment event for DORA Metrics returns \"OK\" response",
3+
"_recordingName": "DORA Metrics/Send a deployment event returns \"OK\" response",
44
"creator": {
55
"comment": "persister:fs",
66
"name": "Polly.JS",
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"log": {
3-
"_recordingName": "DORA Metrics/Send a failure event for DORA Metrics returns \"OK\" response",
3+
"_recordingName": "DORA Metrics/Send a failure event returns \"OK\" response",
44
"creator": {
55
"comment": "persister:fs",
66
"name": "Polly.JS",

features/v2/dora_metrics.feature

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,63 +105,63 @@ Feature: DORA Metrics
105105
Then the response status is 200 OK
106106

107107
@skip @team:DataDog/ci-app-backend
108-
Scenario: Send a deployment event for DORA Metrics returns "Bad Request" response
108+
Scenario: Send a deployment event returns "Bad Request" response
109109
Given new "CreateDORADeployment" request
110110
And body with value {"data": {"attributes": {}}}
111111
When the request is sent
112112
Then the response status is 400 Bad Request
113113

114114
@generated @skip @team:DataDog/ci-app-backend
115-
Scenario: Send a deployment event for DORA Metrics returns "OK - but delayed due to incident" response
115+
Scenario: Send a deployment event returns "OK - but delayed due to incident" response
116116
Given new "CreateDORADeployment" request
117117
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"}}}
118118
When the request is sent
119119
Then the response status is 202 OK - but delayed due to incident
120120

121121
@replay-only @team:DataDog/ci-app-backend
122-
Scenario: Send a deployment event for DORA Metrics returns "OK" response
122+
Scenario: Send a deployment event returns "OK" response
123123
Given new "CreateDORADeployment" request
124124
And body with value {"data": {"attributes": {"finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "service": "shopist", "started_at": 1693491974000000000, "version": "v1.12.07"}}}
125125
When the request is sent
126126
Then the response status is 200 OK
127127

128128
@skip @team:DataDog/ci-app-backend
129-
Scenario: Send a failure event for DORA Metrics returns "Bad Request" response
129+
Scenario: Send a failure event returns "Bad Request" response
130130
Given new "CreateDORAIncident" request
131131
And body with value {"data": {"attributes": {}}}
132132
When the request is sent
133133
Then the response status is 400 Bad Request
134134

135135
@generated @skip @team:DataDog/ci-app-backend
136-
Scenario: Send a failure event for DORA Metrics returns "OK - but delayed due to incident" response
136+
Scenario: Send a failure event returns "OK - but delayed due to incident" response
137137
Given new "CreateDORAFailure" request
138138
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"}}}
139139
When the request is sent
140140
Then the response status is 202 OK - but delayed due to incident
141141

142142
@replay-only @team:DataDog/ci-app-backend
143-
Scenario: Send a failure event for DORA Metrics returns "OK" response
143+
Scenario: Send a failure event returns "OK" response
144144
Given new "CreateDORAIncident" request
145145
And body with value {"data": {"attributes": {"finished_at": 1707842944600000000, "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": 1707842944500000000, "team": "backend", "version": "v1.12.07"}}}
146146
When the request is sent
147147
Then the response status is 200 OK
148148

149149
@generated @skip @team:DataDog/ci-app-backend
150-
Scenario: Send an incident event for DORA Metrics returns "Bad Request" response
150+
Scenario: Send an incident event returns "Bad Request" response
151151
Given new "CreateDORAIncident" request
152152
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"}}}
153153
When the request is sent
154154
Then the response status is 400 Bad Request
155155

156156
@generated @skip @team:DataDog/ci-app-backend
157-
Scenario: Send an incident event for DORA Metrics returns "OK - but delayed due to incident" response
157+
Scenario: Send an incident event returns "OK - but delayed due to incident" response
158158
Given new "CreateDORAIncident" request
159159
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"}}}
160160
When the request is sent
161161
Then the response status is 202 OK - but delayed due to incident
162162

163163
@generated @skip @team:DataDog/ci-app-backend
164-
Scenario: Send an incident event for DORA Metrics returns "OK" response
164+
Scenario: Send an incident event returns "OK" response
165165
Given new "CreateDORAIncident" request
166166
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"}}}
167167
When the request is sent

services/dora_metrics/src/v2/DORAMetricsApi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ export class DORAMetricsApi {
12171217
}
12181218

12191219
/**
1220-
* Use this API endpoint to provide data about deployments for DORA metrics.
1220+
* Use this API endpoint to provide deployment data.
12211221
*
12221222
* This is necessary for:
12231223
* - Deployment Frequency
@@ -1243,7 +1243,7 @@ export class DORAMetricsApi {
12431243
}
12441244

12451245
/**
1246-
* Use this API endpoint to provide failure data for DORA metrics.
1246+
* Use this API endpoint to provide failure data.
12471247
*
12481248
* This is necessary for:
12491249
* - Change Failure Rate
@@ -1270,7 +1270,7 @@ export class DORAMetricsApi {
12701270
/**
12711271
* **Note**: This endpoint is deprecated. Please use `/api/v2/dora/failure` instead.
12721272
*
1273-
* Use this API endpoint to provide failure data for DORA metrics.
1273+
* Use this API endpoint to provide failure data.
12741274
*
12751275
* This is necessary for:
12761276
* - Change Failure Rate

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class DORADeploymentRequestAttributes {
1515
*/
1616
"env"?: string;
1717
/**
18-
* Unix timestamp when the deployment finished. It must be in nanoseconds, milliseconds, or seconds, and it should not be older than 1 hour.
18+
* Unix timestamp when the deployment finished. It must be in nanoseconds, milliseconds, or seconds.
1919
*/
2020
"finishedAt": number;
2121
/**

0 commit comments

Comments
 (0)