Skip to content

Commit c01e2f4

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 5780398 of spec repo
1 parent 76578c6 commit c01e2f4

File tree

6 files changed

+428
-4
lines changed

6 files changed

+428
-4
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 70 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56815,6 +56815,40 @@ paths:
5681556815
tags:
5681656816
- DORA Metrics
5681756817
x-codegen-request-body-name: body
56818+
/api/v2/dora/deployment/{deployment_id}:
56819+
delete:
56820+
description: Use this API endpoint to delete a deployment event.
56821+
operationId: DeleteDORADeployment
56822+
parameters:
56823+
- description: The ID of the deployment event to delete.
56824+
in: path
56825+
name: deployment_id
56826+
required: true
56827+
schema:
56828+
type: string
56829+
responses:
56830+
'202':
56831+
description: Accepted
56832+
'400':
56833+
content:
56834+
application/json:
56835+
schema:
56836+
$ref: '#/components/schemas/JSONAPIErrorResponse'
56837+
description: Bad Request
56838+
'403':
56839+
$ref: '#/components/responses/NotAuthorizedResponse'
56840+
'429':
56841+
$ref: '#/components/responses/TooManyRequestsResponse'
56842+
security:
56843+
- apiKeyAuth: []
56844+
- appKeyAuth: []
56845+
summary: Delete a deployment event
56846+
tags:
56847+
- DORA Metrics
56848+
x-permission:
56849+
operator: OR
56850+
permissions:
56851+
- dora_metrics_write
5681856852
/api/v2/dora/deployments:
5681956853
post:
5682056854
description: Use this API endpoint to get a list of deployment events.
@@ -56938,6 +56972,40 @@ paths:
5693856972
tags:
5693956973
- DORA Metrics
5694056974
x-codegen-request-body-name: body
56975+
/api/v2/dora/failure/{failure_id}:
56976+
delete:
56977+
description: Use this API endpoint to delete a failure event.
56978+
operationId: DeleteDORAFailure
56979+
parameters:
56980+
- description: The ID of the failure event to delete.
56981+
in: path
56982+
name: failure_id
56983+
required: true
56984+
schema:
56985+
type: string
56986+
responses:
56987+
'202':
56988+
description: Accepted
56989+
'400':
56990+
content:
56991+
application/json:
56992+
schema:
56993+
$ref: '#/components/schemas/JSONAPIErrorResponse'
56994+
description: Bad Request
56995+
'403':
56996+
$ref: '#/components/responses/NotAuthorizedResponse'
56997+
'429':
56998+
$ref: '#/components/responses/TooManyRequestsResponse'
56999+
security:
57000+
- apiKeyAuth: []
57001+
- appKeyAuth: []
57002+
summary: Delete a failure event
57003+
tags:
57004+
- DORA Metrics
57005+
x-permission:
57006+
operator: OR
57007+
permissions:
57008+
- dora_metrics_write
5694157009
/api/v2/dora/failures:
5694257010
post:
5694357011
description: Use this API endpoint to get a list of failure events.
@@ -75627,8 +75695,8 @@ tags:
7562775695
See the [Container Monitoring page](https://docs.datadoghq.com/containers/) for
7562875696
more information.
7562975697
name: Containers
75630-
- description: 'Search or send events for DORA Metrics to measure and improve your
75631-
software delivery performance. See the [DORA Metrics page](https://docs.datadoghq.com/dora_metrics/)
75698+
- description: 'Search, send, or delete events for DORA Metrics to measure and improve
75699+
your software delivery performance. See the [DORA Metrics page](https://docs.datadoghq.com/dora_metrics/)
7563275700
for more information.
7563375701

7563475702

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Delete a deployment event returns "Accepted" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.DoraMetricsApi;
6+
7+
public class Example {
8+
public static void main(String[] args) {
9+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
10+
DoraMetricsApi apiInstance = new DoraMetricsApi(defaultClient);
11+
12+
try {
13+
apiInstance.deleteDORADeployment("NO_VALUE");
14+
} catch (ApiException e) {
15+
System.err.println("Exception when calling DoraMetricsApi#deleteDORADeployment");
16+
System.err.println("Status code: " + e.getCode());
17+
System.err.println("Reason: " + e.getResponseBody());
18+
System.err.println("Response headers: " + e.getResponseHeaders());
19+
e.printStackTrace();
20+
}
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Delete a failure event returns "Accepted" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.DoraMetricsApi;
6+
7+
public class Example {
8+
public static void main(String[] args) {
9+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
10+
DoraMetricsApi apiInstance = new DoraMetricsApi(defaultClient);
11+
12+
try {
13+
apiInstance.deleteDORAFailure("NO_VALUE");
14+
} catch (ApiException e) {
15+
System.err.println("Exception when calling DoraMetricsApi#deleteDORAFailure");
16+
System.err.println("Status code: " + e.getCode());
17+
System.err.println("Reason: " + e.getResponseBody());
18+
System.err.println("Response headers: " + e.getResponseHeaders());
19+
e.printStackTrace();
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)