Skip to content

Commit 9eeb1c5

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0dc614a of spec repo
1 parent c7d91d7 commit 9eeb1c5

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
@@ -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: 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)