Skip to content

Commit a2e30af

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f9ece58 of spec repo
1 parent 62fa434 commit a2e30af

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
@@ -54470,6 +54470,40 @@ paths:
5447054470
tags:
5447154471
- DORA Metrics
5447254472
x-codegen-request-body-name: body
54473+
/api/v2/dora/deployment/{deployment_id}:
54474+
delete:
54475+
description: Use this API endpoint to delete a deployment event.
54476+
operationId: DeleteDORADeployment
54477+
parameters:
54478+
- description: The ID of the deployment event to delete.
54479+
in: path
54480+
name: deployment_id
54481+
required: true
54482+
schema:
54483+
type: string
54484+
responses:
54485+
'202':
54486+
description: Accepted
54487+
'400':
54488+
content:
54489+
application/json:
54490+
schema:
54491+
$ref: '#/components/schemas/JSONAPIErrorResponse'
54492+
description: Bad Request
54493+
'403':
54494+
$ref: '#/components/responses/NotAuthorizedResponse'
54495+
'429':
54496+
$ref: '#/components/responses/TooManyRequestsResponse'
54497+
security:
54498+
- apiKeyAuth: []
54499+
- appKeyAuth: []
54500+
summary: Delete a deployment event
54501+
tags:
54502+
- DORA Metrics
54503+
x-permission:
54504+
operator: OR
54505+
permissions:
54506+
- dora_metrics_write
5447354507
/api/v2/dora/deployments:
5447454508
post:
5447554509
description: Use this API endpoint to get a list of deployment events.
@@ -54593,6 +54627,40 @@ paths:
5459354627
tags:
5459454628
- DORA Metrics
5459554629
x-codegen-request-body-name: body
54630+
/api/v2/dora/failure/{failure_id}:
54631+
delete:
54632+
description: Use this API endpoint to delete a failure event.
54633+
operationId: DeleteDORAFailure
54634+
parameters:
54635+
- description: The ID of the failure event to delete.
54636+
in: path
54637+
name: failure_id
54638+
required: true
54639+
schema:
54640+
type: string
54641+
responses:
54642+
'202':
54643+
description: Accepted
54644+
'400':
54645+
content:
54646+
application/json:
54647+
schema:
54648+
$ref: '#/components/schemas/JSONAPIErrorResponse'
54649+
description: Bad Request
54650+
'403':
54651+
$ref: '#/components/responses/NotAuthorizedResponse'
54652+
'429':
54653+
$ref: '#/components/responses/TooManyRequestsResponse'
54654+
security:
54655+
- apiKeyAuth: []
54656+
- appKeyAuth: []
54657+
summary: Delete a failure event
54658+
tags:
54659+
- DORA Metrics
54660+
x-permission:
54661+
operator: OR
54662+
permissions:
54663+
- dora_metrics_write
5459654664
/api/v2/dora/failures:
5459754665
post:
5459854666
description: Use this API endpoint to get a list of failure events.
@@ -72976,8 +73044,8 @@ tags:
7297673044
See the [Container Monitoring page](https://docs.datadoghq.com/containers/) for
7297773045
more information.
7297873046
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/)
73047+
- description: 'Search, send, or delete events for DORA Metrics to measure and improve
73048+
your software delivery performance. See the [DORA Metrics page](https://docs.datadoghq.com/dora_metrics/)
7298173049
for more information.
7298273050

7298373051

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)