Skip to content

Commit 136c176

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 9fe2b3b of spec repo
1 parent 62fa434 commit 136c176

File tree

6 files changed

+421
-4
lines changed

6 files changed

+421
-4
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 68 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54509,6 +54509,39 @@ paths:
5450954509
permissions:
5451054510
- dora_metrics_read
5451154511
/api/v2/dora/deployments/{deployment_id}:
54512+
delete:
54513+
description: Use this API endpoint to delete a deployment event.
54514+
operationId: DeleteDORADeployment
54515+
parameters:
54516+
- description: The ID of the deployment event to delete.
54517+
in: path
54518+
name: deployment_id
54519+
required: true
54520+
schema:
54521+
type: string
54522+
responses:
54523+
'202':
54524+
description: Accepted
54525+
'400':
54526+
content:
54527+
application/json:
54528+
schema:
54529+
$ref: '#/components/schemas/JSONAPIErrorResponse'
54530+
description: Bad Request
54531+
'403':
54532+
$ref: '#/components/responses/NotAuthorizedResponse'
54533+
'429':
54534+
$ref: '#/components/responses/TooManyRequestsResponse'
54535+
security:
54536+
- apiKeyAuth: []
54537+
- appKeyAuth: []
54538+
summary: Delete a deployment event
54539+
tags:
54540+
- DORA Metrics
54541+
x-permission:
54542+
operator: OR
54543+
permissions:
54544+
- dora_metrics_write
5451254545
get:
5451354546
description: Use this API endpoint to get a deployment event.
5451454547
operationId: GetDORADeployment
@@ -54632,6 +54665,39 @@ paths:
5463254665
permissions:
5463354666
- dora_metrics_read
5463454667
/api/v2/dora/failures/{failure_id}:
54668+
delete:
54669+
description: Use this API endpoint to delete a failure event.
54670+
operationId: DeleteDORAFailure
54671+
parameters:
54672+
- description: The ID of the failure event to delete.
54673+
in: path
54674+
name: failure_id
54675+
required: true
54676+
schema:
54677+
type: string
54678+
responses:
54679+
'202':
54680+
description: Accepted
54681+
'400':
54682+
content:
54683+
application/json:
54684+
schema:
54685+
$ref: '#/components/schemas/JSONAPIErrorResponse'
54686+
description: Bad Request
54687+
'403':
54688+
$ref: '#/components/responses/NotAuthorizedResponse'
54689+
'429':
54690+
$ref: '#/components/responses/TooManyRequestsResponse'
54691+
security:
54692+
- apiKeyAuth: []
54693+
- appKeyAuth: []
54694+
summary: Delete a failure event
54695+
tags:
54696+
- DORA Metrics
54697+
x-permission:
54698+
operator: OR
54699+
permissions:
54700+
- dora_metrics_write
5463554701
get:
5463654702
description: Use this API endpoint to get a failure event.
5463754703
operationId: GetDORAFailure
@@ -72976,8 +73042,8 @@ tags:
7297673042
See the [Container Monitoring page](https://docs.datadoghq.com/containers/) for
7297773043
more information.
7297873044
name: Containers
72979-
- description: 'Search or send events for DORA Metrics to measure and improve your
72980-
software delivery performance. See the [DORA Metrics page](https://docs.datadoghq.com/dora_metrics/)
73045+
- description: 'Search, send, or delete events for DORA Metrics to measure and improve
73046+
your software delivery performance. See the [DORA Metrics page](https://docs.datadoghq.com/dora_metrics/)
7298173047
for more information.
7298273048

7298373049

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("{unique_lower}");
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("{unique_lower}");
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)