Skip to content

Commit fe64789

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 6281434 of spec repo
1 parent 28535b6 commit fe64789

File tree

8 files changed

+431
-3
lines changed

8 files changed

+431
-3
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 68 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52524,6 +52524,39 @@ paths:
5252452524
permissions:
5252552525
- dora_metrics_read
5252652526
/api/v2/dora/deployments/{deployment_id}:
52527+
delete:
52528+
description: Use this API endpoint to delete a deployment event.
52529+
operationId: DeleteDORADeployment
52530+
parameters:
52531+
- description: The ID of the deployment event to delete.
52532+
in: path
52533+
name: deployment_id
52534+
required: true
52535+
schema:
52536+
type: string
52537+
responses:
52538+
'202':
52539+
description: Accepted
52540+
'400':
52541+
content:
52542+
application/json:
52543+
schema:
52544+
$ref: '#/components/schemas/JSONAPIErrorResponse'
52545+
description: Bad Request
52546+
'403':
52547+
$ref: '#/components/responses/NotAuthorizedResponse'
52548+
'429':
52549+
$ref: '#/components/responses/TooManyRequestsResponse'
52550+
security:
52551+
- apiKeyAuth: []
52552+
- appKeyAuth: []
52553+
summary: Delete a deployment event
52554+
tags:
52555+
- DORA Metrics
52556+
x-permission:
52557+
operator: OR
52558+
permissions:
52559+
- dora_metrics_write
5252752560
get:
5252852561
description: Use this API endpoint to get a deployment event.
5252952562
operationId: GetDORADeployment
@@ -52647,6 +52680,39 @@ paths:
5264752680
permissions:
5264852681
- dora_metrics_read
5264952682
/api/v2/dora/failures/{failure_id}:
52683+
delete:
52684+
description: Use this API endpoint to delete a failure event.
52685+
operationId: DeleteDORAFailure
52686+
parameters:
52687+
- description: The ID of the failure event to delete.
52688+
in: path
52689+
name: failure_id
52690+
required: true
52691+
schema:
52692+
type: string
52693+
responses:
52694+
'202':
52695+
description: Accepted
52696+
'400':
52697+
content:
52698+
application/json:
52699+
schema:
52700+
$ref: '#/components/schemas/JSONAPIErrorResponse'
52701+
description: Bad Request
52702+
'403':
52703+
$ref: '#/components/responses/NotAuthorizedResponse'
52704+
'429':
52705+
$ref: '#/components/responses/TooManyRequestsResponse'
52706+
security:
52707+
- apiKeyAuth: []
52708+
- appKeyAuth: []
52709+
summary: Delete a failure event
52710+
tags:
52711+
- DORA Metrics
52712+
x-permission:
52713+
operator: OR
52714+
permissions:
52715+
- dora_metrics_write
5265052716
get:
5265152717
description: Use this API endpoint to get a failure event.
5265252718
operationId: GetDORAFailure
@@ -70392,8 +70458,8 @@ tags:
7039270458
See the [Container Monitoring page](https://docs.datadoghq.com/containers/) for
7039370459
more information.
7039470460
name: Containers
70395-
- description: 'Search or send events for DORA Metrics to measure and improve your
70396-
software delivery performance. See the [DORA Metrics page](https://docs.datadoghq.com/dora_metrics/)
70461+
- description: 'Search, send or delete events for DORA Metrics to measure and improve
70462+
your software delivery performance. See the [DORA Metrics page](https://docs.datadoghq.com/dora_metrics/)
7039770463
for more information.
7039870464

7039970465

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: "deployment_id",
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: "failure_id",
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
@@ -4801,6 +4801,13 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
48014801
},
48024802
"operationResponseType": "DORAFetchResponse",
48034803
},
4804+
"v2.DeleteDORADeployment": {
4805+
"deploymentId": {
4806+
"type": "string",
4807+
"format": "",
4808+
},
4809+
"operationResponseType": "{}",
4810+
},
48044811
"v2.CreateDORAFailure": {
48054812
"body": {
48064813
"type": "DORAFailureRequest",
@@ -4822,6 +4829,13 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
48224829
},
48234830
"operationResponseType": "DORAFetchResponse",
48244831
},
4832+
"v2.DeleteDORAFailure": {
4833+
"failureId": {
4834+
"type": "string",
4835+
"format": "",
4836+
},
4837+
"operationResponseType": "{}",
4838+
},
48254839
"v2.CreateDORAIncident": {
48264840
"body": {
48274841
"type": "DORAFailureRequest",

features/v2/dora_metrics.feature

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
3+
Search, send or delete events for DORA Metrics to measure and improve your
44
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.
@@ -9,6 +9,34 @@ Feature: DORA Metrics
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 request contains "deployment_id" parameter from "REPLACE.ME"
16+
When the request is sent
17+
Then the response status is 202 Accepted
18+
19+
@team:DataDog/ci-app-backend
20+
Scenario: Delete a deployment event returns "Bad Request" response
21+
Given new "DeleteDORADeployment" request
22+
And request contains "deployment_id" parameter from "REPLACE.ME"
23+
When the request is sent
24+
Then the response status is 400 Bad Request
25+
26+
@team:DataDog/ci-app-backend
27+
Scenario: Delete a failure event returns "Accepted" response
28+
Given new "DeleteDORAFailure" request
29+
And request contains "failure_id" parameter from "REPLACE.ME"
30+
When the request is sent
31+
Then the response status is 202 Accepted
32+
33+
@team:DataDog/ci-app-backend
34+
Scenario: Delete a failure event returns "Bad Request" response
35+
Given new "DeleteDORAFailure" request
36+
And request contains "failure_id" parameter from "REPLACE.ME"
37+
When the request is sent
38+
Then the response status is 400 Bad Request
39+
1240
@generated @skip @team:DataDog/ci-app-backend
1341
Scenario: Get a deployment event returns "Bad Request" response
1442
Given new "GetDORADeployment" request

features/v2/undo.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -955,6 +955,12 @@
955955
"type": "safe"
956956
}
957957
},
958+
"DeleteDORADeployment": {
959+
"tag": "DORA Metrics",
960+
"undo": {
961+
"type": "idempotent"
962+
}
963+
},
958964
"GetDORADeployment": {
959965
"tag": "DORA Metrics",
960966
"undo": {
@@ -973,6 +979,12 @@
973979
"type": "safe"
974980
}
975981
},
982+
"DeleteDORAFailure": {
983+
"tag": "DORA Metrics",
984+
"undo": {
985+
"type": "idempotent"
986+
}
987+
},
976988
"GetDORAFailure": {
977989
"tag": "DORA Metrics",
978990
"undo": {

0 commit comments

Comments
 (0)