Skip to content

Commit e581681

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0dc614a of spec repo
1 parent 364508a commit e581681

File tree

8 files changed

+437
-4
lines changed

8 files changed

+437
-4
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 70 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54693,6 +54693,40 @@ paths:
5469354693
tags:
5469454694
- DORA Metrics
5469554695
x-codegen-request-body-name: body
54696+
/api/v2/dora/deployment/{deployment_id}:
54697+
delete:
54698+
description: Use this API endpoint to delete a deployment event.
54699+
operationId: DeleteDORADeployment
54700+
parameters:
54701+
- description: The ID of the deployment event to delete.
54702+
in: path
54703+
name: deployment_id
54704+
required: true
54705+
schema:
54706+
type: string
54707+
responses:
54708+
'202':
54709+
description: Accepted
54710+
'400':
54711+
content:
54712+
application/json:
54713+
schema:
54714+
$ref: '#/components/schemas/JSONAPIErrorResponse'
54715+
description: Bad Request
54716+
'403':
54717+
$ref: '#/components/responses/NotAuthorizedResponse'
54718+
'429':
54719+
$ref: '#/components/responses/TooManyRequestsResponse'
54720+
security:
54721+
- apiKeyAuth: []
54722+
- appKeyAuth: []
54723+
summary: Delete a deployment event
54724+
tags:
54725+
- DORA Metrics
54726+
x-permission:
54727+
operator: OR
54728+
permissions:
54729+
- dora_metrics_write
5469654730
/api/v2/dora/deployments:
5469754731
post:
5469854732
description: Use this API endpoint to get a list of deployment events.
@@ -54816,6 +54850,40 @@ paths:
5481654850
tags:
5481754851
- DORA Metrics
5481854852
x-codegen-request-body-name: body
54853+
/api/v2/dora/failure/{failure_id}:
54854+
delete:
54855+
description: Use this API endpoint to delete a failure event.
54856+
operationId: DeleteDORAFailure
54857+
parameters:
54858+
- description: The ID of the failure event to delete.
54859+
in: path
54860+
name: failure_id
54861+
required: true
54862+
schema:
54863+
type: string
54864+
responses:
54865+
'202':
54866+
description: Accepted
54867+
'400':
54868+
content:
54869+
application/json:
54870+
schema:
54871+
$ref: '#/components/schemas/JSONAPIErrorResponse'
54872+
description: Bad Request
54873+
'403':
54874+
$ref: '#/components/responses/NotAuthorizedResponse'
54875+
'429':
54876+
$ref: '#/components/responses/TooManyRequestsResponse'
54877+
security:
54878+
- apiKeyAuth: []
54879+
- appKeyAuth: []
54880+
summary: Delete a failure event
54881+
tags:
54882+
- DORA Metrics
54883+
x-permission:
54884+
operator: OR
54885+
permissions:
54886+
- dora_metrics_write
5481954887
/api/v2/dora/failures:
5482054888
post:
5482154889
description: Use this API endpoint to get a list of failure events.
@@ -73317,8 +73385,8 @@ tags:
7331773385
See the [Container Monitoring page](https://docs.datadoghq.com/containers/) for
7331873386
more information.
7331973387
name: Containers
73320-
- description: 'Search or send events for DORA Metrics to measure and improve your
73321-
software delivery performance. See the [DORA Metrics page](https://docs.datadoghq.com/dora_metrics/)
73388+
- description: 'Search, send, or delete events for DORA Metrics to measure and improve
73389+
your software delivery performance. See the [DORA Metrics page](https://docs.datadoghq.com/dora_metrics/)
7332273390
for more information.
7332373391

7332473392

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* Delete a deployment event returns "Accepted" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.DORAMetricsApi(configuration);
9+
10+
const params: v2.DORAMetricsApiDeleteDORADeploymentRequest = {
11+
deploymentId: "NO_VALUE",
12+
};
13+
14+
apiInstance
15+
.deleteDORADeployment(params)
16+
.then((data: any) => {
17+
console.log(
18+
"API called successfully. Returned data: " + JSON.stringify(data)
19+
);
20+
})
21+
.catch((error: any) => console.error(error));
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* Delete a failure event returns "Accepted" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.DORAMetricsApi(configuration);
9+
10+
const params: v2.DORAMetricsApiDeleteDORAFailureRequest = {
11+
failureId: "NO_VALUE",
12+
};
13+
14+
apiInstance
15+
.deleteDORAFailure(params)
16+
.then((data: any) => {
17+
console.log(
18+
"API called successfully. Returned data: " + JSON.stringify(data)
19+
);
20+
})
21+
.catch((error: any) => console.error(error));

features/support/scenarios_model_mapping.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4882,6 +4882,13 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
48824882
},
48834883
"operationResponseType": "DORADeploymentResponse",
48844884
},
4885+
"v2.DeleteDORADeployment": {
4886+
"deploymentId": {
4887+
"type": "string",
4888+
"format": "",
4889+
},
4890+
"operationResponseType": "{}",
4891+
},
48854892
"v2.ListDORADeployments": {
48864893
"body": {
48874894
"type": "DORAListDeploymentsRequest",
@@ -4903,6 +4910,13 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
49034910
},
49044911
"operationResponseType": "DORAFailureResponse",
49054912
},
4913+
"v2.DeleteDORAFailure": {
4914+
"failureId": {
4915+
"type": "string",
4916+
"format": "",
4917+
},
4918+
"operationResponseType": "{}",
4919+
},
49064920
"v2.ListDORAFailures": {
49074921
"body": {
49084922
"type": "DORAListFailuresRequest",

features/v2/dora_metrics.feature

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,45 @@
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+
@skip @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+
@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+
@skip @team:DataDog/ci-app-backend
28+
Scenario: Delete a failure event returns "Accepted" response
29+
Given new "DeleteDORAFailure" request
30+
And a valid "appKeyAuth" key in the system
31+
And request contains "failure_id" parameter with value "NO_VALUE"
32+
When the request is sent
33+
Then the response status is 202 Accepted
34+
35+
@skip @team:DataDog/ci-app-backend
36+
Scenario: Delete a failure event returns "Bad Request" response
37+
Given new "DeleteDORAFailure" request
38+
And a valid "appKeyAuth" key in the system
39+
And request contains "failure_id" parameter from "REPLACE.ME"
40+
When the request is sent
41+
Then the response status is 400 Bad Request
42+
1243
@generated @skip @team:DataDog/ci-app-backend
1344
Scenario: Get a deployment event returns "Bad Request" response
1445
Given new "GetDORADeployment" request

features/v2/undo.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,12 @@
10101010
"type": "idempotent"
10111011
}
10121012
},
1013+
"DeleteDORADeployment": {
1014+
"tag": "DORA Metrics",
1015+
"undo": {
1016+
"type": "idempotent"
1017+
}
1018+
},
10131019
"ListDORADeployments": {
10141020
"tag": "DORA Metrics",
10151021
"undo": {
@@ -1028,6 +1034,12 @@
10281034
"type": "idempotent"
10291035
}
10301036
},
1037+
"DeleteDORAFailure": {
1038+
"tag": "DORA Metrics",
1039+
"undo": {
1040+
"type": "idempotent"
1041+
}
1042+
},
10311043
"ListDORAFailures": {
10321044
"tag": "DORA Metrics",
10331045
"undo": {

0 commit comments

Comments
 (0)