Skip to content

Commit 6edd1eb

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 6281434 of spec repo
1 parent eb68d9b commit 6edd1eb

File tree

6 files changed

+422
-3
lines changed

6 files changed

+422
-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: 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("deployment_id");
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("failure_id");
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)