Skip to content

Commit 384264e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 6ca170c of spec repo
1 parent c18c050 commit 384264e

File tree

7 files changed

+322
-54
lines changed

7 files changed

+322
-54
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 108 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -54470,23 +54470,20 @@ paths:
5447054470
tags:
5447154471
- DORA Metrics
5447254472
x-codegen-request-body-name: body
54473-
/api/v2/dora/deployments:
54474-
post:
54475-
description: Use this API endpoint to get a list of deployment events.
54476-
operationId: ListDORADeployments
54477-
requestBody:
54478-
content:
54479-
application/json:
54480-
schema:
54481-
$ref: '#/components/schemas/DORAListDeploymentsRequest'
54473+
/api/v2/dora/deployment/{deployment_id}:
54474+
delete:
54475+
description: Use this API endpoint to delete a deployment event.
54476+
operationId: DeleteDORADeployment
54477+
parameters:
54478+
- description: The ID of the deployment event to delete.
54479+
in: path
54480+
name: deployment_id
5448254481
required: true
54482+
schema:
54483+
type: string
5448354484
responses:
54484-
'200':
54485-
content:
54486-
application/json:
54487-
schema:
54488-
$ref: '#/components/schemas/DORAListResponse'
54489-
description: OK
54485+
'202':
54486+
description: Accepted
5449054487
'400':
5449154488
content:
5449254489
application/json:
@@ -54499,16 +54496,14 @@ paths:
5449954496
$ref: '#/components/responses/TooManyRequestsResponse'
5450054497
security:
5450154498
- apiKeyAuth: []
54502-
appKeyAuth: []
54503-
summary: Get a list of deployment events
54499+
- appKeyAuth: []
54500+
summary: Delete a deployment event
5450454501
tags:
5450554502
- DORA Metrics
54506-
x-codegen-request-body-name: body
5450754503
x-permission:
5450854504
operator: OR
5450954505
permissions:
54510-
- dora_metrics_read
54511-
/api/v2/dora/deployments/{deployment_id}:
54506+
- dora_metrics_write
5451254507
get:
5451354508
description: Use this API endpoint to get a deployment event.
5451454509
operationId: GetDORADeployment
@@ -54547,6 +54542,44 @@ paths:
5454754542
operator: OR
5454854543
permissions:
5454954544
- dora_metrics_read
54545+
/api/v2/dora/deployments:
54546+
post:
54547+
description: Use this API endpoint to get a list of deployment events.
54548+
operationId: ListDORADeployments
54549+
requestBody:
54550+
content:
54551+
application/json:
54552+
schema:
54553+
$ref: '#/components/schemas/DORAListDeploymentsRequest'
54554+
required: true
54555+
responses:
54556+
'200':
54557+
content:
54558+
application/json:
54559+
schema:
54560+
$ref: '#/components/schemas/DORAListResponse'
54561+
description: OK
54562+
'400':
54563+
content:
54564+
application/json:
54565+
schema:
54566+
$ref: '#/components/schemas/JSONAPIErrorResponse'
54567+
description: Bad Request
54568+
'403':
54569+
$ref: '#/components/responses/NotAuthorizedResponse'
54570+
'429':
54571+
$ref: '#/components/responses/TooManyRequestsResponse'
54572+
security:
54573+
- apiKeyAuth: []
54574+
appKeyAuth: []
54575+
summary: Get a list of deployment events
54576+
tags:
54577+
- DORA Metrics
54578+
x-codegen-request-body-name: body
54579+
x-permission:
54580+
operator: OR
54581+
permissions:
54582+
- dora_metrics_read
5455054583
/api/v2/dora/failure:
5455154584
post:
5455254585
description: 'Use this API endpoint to provide failure data for DORA metrics.
@@ -54593,23 +54626,20 @@ paths:
5459354626
tags:
5459454627
- DORA Metrics
5459554628
x-codegen-request-body-name: body
54596-
/api/v2/dora/failures:
54597-
post:
54598-
description: Use this API endpoint to get a list of failure events.
54599-
operationId: ListDORAFailures
54600-
requestBody:
54601-
content:
54602-
application/json:
54603-
schema:
54604-
$ref: '#/components/schemas/DORAListFailuresRequest'
54629+
/api/v2/dora/failure/{failure_id}:
54630+
delete:
54631+
description: Use this API endpoint to delete a failure event.
54632+
operationId: DeleteDORAFailure
54633+
parameters:
54634+
- description: The ID of the failure event to delete.
54635+
in: path
54636+
name: failure_id
5460554637
required: true
54638+
schema:
54639+
type: string
5460654640
responses:
54607-
'200':
54608-
content:
54609-
application/json:
54610-
schema:
54611-
$ref: '#/components/schemas/DORAListResponse'
54612-
description: OK
54641+
'202':
54642+
description: Accepted
5461354643
'400':
5461454644
content:
5461554645
application/json:
@@ -54622,16 +54652,14 @@ paths:
5462254652
$ref: '#/components/responses/TooManyRequestsResponse'
5462354653
security:
5462454654
- apiKeyAuth: []
54625-
appKeyAuth: []
54626-
summary: Get a list of failure events
54655+
- appKeyAuth: []
54656+
summary: Delete a failure event
5462754657
tags:
5462854658
- DORA Metrics
54629-
x-codegen-request-body-name: body
5463054659
x-permission:
5463154660
operator: OR
5463254661
permissions:
54633-
- dora_metrics_read
54634-
/api/v2/dora/failures/{failure_id}:
54662+
- dora_metrics_write
5463554663
get:
5463654664
description: Use this API endpoint to get a failure event.
5463754665
operationId: GetDORAFailure
@@ -54670,6 +54698,44 @@ paths:
5467054698
operator: OR
5467154699
permissions:
5467254700
- dora_metrics_read
54701+
/api/v2/dora/failures:
54702+
post:
54703+
description: Use this API endpoint to get a list of failure events.
54704+
operationId: ListDORAFailures
54705+
requestBody:
54706+
content:
54707+
application/json:
54708+
schema:
54709+
$ref: '#/components/schemas/DORAListFailuresRequest'
54710+
required: true
54711+
responses:
54712+
'200':
54713+
content:
54714+
application/json:
54715+
schema:
54716+
$ref: '#/components/schemas/DORAListResponse'
54717+
description: OK
54718+
'400':
54719+
content:
54720+
application/json:
54721+
schema:
54722+
$ref: '#/components/schemas/JSONAPIErrorResponse'
54723+
description: Bad Request
54724+
'403':
54725+
$ref: '#/components/responses/NotAuthorizedResponse'
54726+
'429':
54727+
$ref: '#/components/responses/TooManyRequestsResponse'
54728+
security:
54729+
- apiKeyAuth: []
54730+
appKeyAuth: []
54731+
summary: Get a list of failure events
54732+
tags:
54733+
- DORA Metrics
54734+
x-codegen-request-body-name: body
54735+
x-permission:
54736+
operator: OR
54737+
permissions:
54738+
- dora_metrics_read
5467354739
/api/v2/dora/incident:
5467454740
post:
5467554741
deprecated: true
@@ -72976,8 +73042,8 @@ tags:
7297673042
See the [Container Monitoring page](https://docs.datadoghq.com/containers/) for
7297773043
more information.
7297873044
name: Containers
72979-
- description: 'Search or send events for DORA Metrics to measure and improve your
72980-
software delivery performance. See the [DORA Metrics page](https://docs.datadoghq.com/dora_metrics/)
73045+
- description: 'Search, send, or delete events for DORA Metrics to measure and improve
73046+
your software delivery performance. See the [DORA Metrics page](https://docs.datadoghq.com/dora_metrics/)
7298173047
for more information.
7298273048

7298373049

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Delete a deployment event returns "Accepted" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new
5+
p api_instance.delete_dora_deployment("NO_VALUE")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Delete a failure event returns "Accepted" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new
5+
p api_instance.delete_dora_failure("NO_VALUE")

features/scenarios_model_mapping.rb

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,21 +1701,27 @@
17011701
"v2.CreateDORADeployment" => {
17021702
"body" => "DORADeploymentRequest",
17031703
},
1704-
"v2.ListDORADeployments" => {
1705-
"body" => "DORAListDeploymentsRequest",
1704+
"v2.DeleteDORADeployment" => {
1705+
"deployment_id" => "String",
17061706
},
17071707
"v2.GetDORADeployment" => {
17081708
"deployment_id" => "String",
17091709
},
1710+
"v2.ListDORADeployments" => {
1711+
"body" => "DORAListDeploymentsRequest",
1712+
},
17101713
"v2.CreateDORAFailure" => {
17111714
"body" => "DORAFailureRequest",
17121715
},
1713-
"v2.ListDORAFailures" => {
1714-
"body" => "DORAListFailuresRequest",
1716+
"v2.DeleteDORAFailure" => {
1717+
"failure_id" => "String",
17151718
},
17161719
"v2.GetDORAFailure" => {
17171720
"failure_id" => "String",
17181721
},
1722+
"v2.ListDORAFailures" => {
1723+
"body" => "DORAListFailuresRequest",
1724+
},
17191725
"v2.CreateDORAIncident" => {
17201726
"body" => "DORAFailureRequest",
17211727
},

features/v2/dora_metrics.feature

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,58 @@
11
@endpoint(dora-metrics) @endpoint(dora-metrics-v2)
22
Feature: DORA Metrics
3-
Search or send events for DORA Metrics to measure and improve your
4-
software delivery performance. See the [DORA Metrics
3+
Search, send, or delete events for DORA Metrics to measure and improve
4+
your software delivery performance. See the [DORA Metrics
55
page](https://docs.datadoghq.com/dora_metrics/) for more information.
66
**Note**: DORA Metrics are not available in the US1-FED site.
77

88
Background:
99
Given a valid "apiKeyAuth" key in the system
1010
And an instance of "DORAMetrics" API
1111

12+
@team:DataDog/ci-app-backend
13+
Scenario: Delete a deployment event returns "Accepted" response
14+
Given new "DeleteDORADeployment" request
15+
And a valid "appKeyAuth" key in the system
16+
And request contains "deployment_id" parameter with value "NO_VALUE"
17+
When the request is sent
18+
Then the response status is 202 Accepted
19+
20+
@generated @skip @team:DataDog/ci-app-backend
21+
Scenario: Delete a deployment event returns "Bad Request" response
22+
Given new "DeleteDORADeployment" request
23+
And request contains "deployment_id" parameter from "REPLACE.ME"
24+
When the request is sent
25+
Then the response status is 400 Bad Request
26+
27+
@team:DataDog/ci-app-backend
28+
Scenario: Delete a deployment event returns "Not Found" response
29+
Given new "DeleteDORADeployment" request
30+
And a valid "appKeyAuth" key in the system
31+
When the request is sent
32+
Then the response status is 404 Not Found
33+
34+
@team:DataDog/ci-app-backend
35+
Scenario: Delete a failure event returns "Accepted" response
36+
Given new "DeleteDORAFailure" request
37+
And a valid "appKeyAuth" key in the system
38+
And request contains "failure_id" parameter with value "NO_VALUE"
39+
When the request is sent
40+
Then the response status is 202 Accepted
41+
42+
@generated @skip @team:DataDog/ci-app-backend
43+
Scenario: Delete a failure event returns "Bad Request" response
44+
Given new "DeleteDORAFailure" request
45+
And request contains "failure_id" parameter from "REPLACE.ME"
46+
When the request is sent
47+
Then the response status is 400 Bad Request
48+
49+
@team:DataDog/ci-app-backend
50+
Scenario: Delete a failure event returns "Not Found" response
51+
Given new "DeleteDORAFailure" request
52+
And a valid "appKeyAuth" key in the system
53+
When the request is sent
54+
Then the response status is 404 Not Found
55+
1256
@generated @skip @team:DataDog/ci-app-backend
1357
Scenario: Get a deployment event returns "Bad Request" response
1458
Given new "GetDORADeployment" request

features/v2/undo.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,10 +1010,10 @@
10101010
"type": "idempotent"
10111011
}
10121012
},
1013-
"ListDORADeployments": {
1013+
"DeleteDORADeployment": {
10141014
"tag": "DORA Metrics",
10151015
"undo": {
1016-
"type": "safe"
1016+
"type": "idempotent"
10171017
}
10181018
},
10191019
"GetDORADeployment": {
@@ -1022,16 +1022,22 @@
10221022
"type": "safe"
10231023
}
10241024
},
1025+
"ListDORADeployments": {
1026+
"tag": "DORA Metrics",
1027+
"undo": {
1028+
"type": "safe"
1029+
}
1030+
},
10251031
"CreateDORAFailure": {
10261032
"tag": "DORA Metrics",
10271033
"undo": {
10281034
"type": "idempotent"
10291035
}
10301036
},
1031-
"ListDORAFailures": {
1037+
"DeleteDORAFailure": {
10321038
"tag": "DORA Metrics",
10331039
"undo": {
1034-
"type": "safe"
1040+
"type": "idempotent"
10351041
}
10361042
},
10371043
"GetDORAFailure": {
@@ -1040,6 +1046,12 @@
10401046
"type": "safe"
10411047
}
10421048
},
1049+
"ListDORAFailures": {
1050+
"tag": "DORA Metrics",
1051+
"undo": {
1052+
"type": "safe"
1053+
}
1054+
},
10431055
"CreateDORAIncident": {
10441056
"tag": "DORA Metrics",
10451057
"undo": {

0 commit comments

Comments
 (0)