Skip to content

Commit 8d5112e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f8ad452 of spec repo
1 parent c8c391a commit 8d5112e

18 files changed

+2613
-17
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 264 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44814,6 +44814,92 @@ components:
4481444814
type: string
4481544815
x-enum-varnames:
4481644816
- MARKDOWN
44817+
PostmortemTemplateAttributesRequest:
44818+
properties:
44819+
name:
44820+
description: The name of the template
44821+
example: Standard Postmortem Template
44822+
type: string
44823+
required:
44824+
- name
44825+
type: object
44826+
PostmortemTemplateAttributesResponse:
44827+
properties:
44828+
createdAt:
44829+
description: When the template was created
44830+
example: '2026-01-13T17:15:53.208340Z'
44831+
format: date-time
44832+
type: string
44833+
modifiedAt:
44834+
description: When the template was last modified
44835+
example: '2026-01-13T17:15:53.208340Z'
44836+
format: date-time
44837+
type: string
44838+
name:
44839+
description: The name of the template
44840+
example: Standard Postmortem Template
44841+
type: string
44842+
required:
44843+
- name
44844+
- createdAt
44845+
- modifiedAt
44846+
type: object
44847+
PostmortemTemplateDataRequest:
44848+
properties:
44849+
attributes:
44850+
$ref: '#/components/schemas/PostmortemTemplateAttributesRequest'
44851+
type:
44852+
$ref: '#/components/schemas/PostmortemTemplateType'
44853+
required:
44854+
- type
44855+
- attributes
44856+
type: object
44857+
PostmortemTemplateDataResponse:
44858+
properties:
44859+
attributes:
44860+
$ref: '#/components/schemas/PostmortemTemplateAttributesResponse'
44861+
id:
44862+
description: The ID of the template
44863+
example: template-456
44864+
type: string
44865+
type:
44866+
$ref: '#/components/schemas/PostmortemTemplateType'
44867+
required:
44868+
- id
44869+
- type
44870+
- attributes
44871+
type: object
44872+
PostmortemTemplateRequest:
44873+
properties:
44874+
data:
44875+
$ref: '#/components/schemas/PostmortemTemplateDataRequest'
44876+
required:
44877+
- data
44878+
type: object
44879+
PostmortemTemplateResponse:
44880+
properties:
44881+
data:
44882+
$ref: '#/components/schemas/PostmortemTemplateDataResponse'
44883+
required:
44884+
- data
44885+
type: object
44886+
PostmortemTemplateType:
44887+
description: Postmortem template resource type
44888+
enum:
44889+
- postmortem_template
44890+
example: postmortem_template
44891+
type: string
44892+
x-enum-varnames:
44893+
- POSTMORTEM_TEMPLATE
44894+
PostmortemTemplatesResponse:
44895+
properties:
44896+
data:
44897+
items:
44898+
$ref: '#/components/schemas/PostmortemTemplateDataResponse'
44899+
type: array
44900+
required:
44901+
- data
44902+
type: object
4481744903
Powerpack:
4481844904
description: Powerpacks are templated groups of dashboard widgets you can save
4481944905
from an existing dashboard and turn into reusable packs in the widget tray.
@@ -76852,6 +76938,184 @@ paths:
7685276938
- incident_notification_settings_write
7685376939
x-unstable: '**Note**: This endpoint is in Preview.
7685476940

76941+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
76942+
/api/v2/incidents/config/postmortem-templates:
76943+
get:
76944+
description: Retrieve a list of all postmortem templates for incidents.
76945+
operationId: ListIncidentPostmortemTemplates
76946+
responses:
76947+
'200':
76948+
content:
76949+
application/json:
76950+
schema:
76951+
$ref: '#/components/schemas/PostmortemTemplatesResponse'
76952+
description: OK
76953+
'400':
76954+
content:
76955+
application/json:
76956+
schema:
76957+
$ref: '#/components/schemas/JSONAPIErrorResponse'
76958+
description: Bad Request
76959+
'429':
76960+
$ref: '#/components/responses/TooManyRequestsResponse'
76961+
summary: List postmortem templates
76962+
tags:
76963+
- Incidents
76964+
x-unstable: '**Note**: This endpoint is in preview and is subject to change.
76965+
76966+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
76967+
post:
76968+
description: Create a new postmortem template for incidents.
76969+
operationId: CreateIncidentPostmortemTemplate
76970+
requestBody:
76971+
content:
76972+
application/json:
76973+
schema:
76974+
$ref: '#/components/schemas/PostmortemTemplateRequest'
76975+
required: true
76976+
responses:
76977+
'201':
76978+
content:
76979+
application/json:
76980+
schema:
76981+
$ref: '#/components/schemas/PostmortemTemplateResponse'
76982+
description: Created
76983+
'400':
76984+
content:
76985+
application/json:
76986+
schema:
76987+
$ref: '#/components/schemas/JSONAPIErrorResponse'
76988+
description: Bad Request
76989+
'403':
76990+
content:
76991+
application/json:
76992+
schema:
76993+
$ref: '#/components/schemas/JSONAPIErrorResponse'
76994+
description: Forbidden
76995+
'429':
76996+
$ref: '#/components/responses/TooManyRequestsResponse'
76997+
summary: Create postmortem template
76998+
tags:
76999+
- Incidents
77000+
x-unstable: '**Note**: This endpoint is in preview and is subject to change.
77001+
77002+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
77003+
/api/v2/incidents/config/postmortem-templates/{template_id}:
77004+
delete:
77005+
description: Delete a postmortem template.
77006+
operationId: DeleteIncidentPostmortemTemplate
77007+
parameters:
77008+
- description: The ID of the postmortem template
77009+
in: path
77010+
name: template_id
77011+
required: true
77012+
schema:
77013+
example: template-456
77014+
type: string
77015+
responses:
77016+
'204':
77017+
description: No Content
77018+
'400':
77019+
content:
77020+
application/json:
77021+
schema:
77022+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77023+
description: Bad Request
77024+
'404':
77025+
content:
77026+
application/json:
77027+
schema:
77028+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77029+
description: Not Found
77030+
'429':
77031+
$ref: '#/components/responses/TooManyRequestsResponse'
77032+
summary: Delete postmortem template
77033+
tags:
77034+
- Incidents
77035+
x-unstable: '**Note**: This endpoint is in preview and is subject to change.
77036+
77037+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
77038+
get:
77039+
description: Retrieve details of a specific postmortem template.
77040+
operationId: GetIncidentPostmortemTemplate
77041+
parameters:
77042+
- description: The ID of the postmortem template
77043+
in: path
77044+
name: template_id
77045+
required: true
77046+
schema:
77047+
example: template-456
77048+
type: string
77049+
responses:
77050+
'200':
77051+
content:
77052+
application/json:
77053+
schema:
77054+
$ref: '#/components/schemas/PostmortemTemplateResponse'
77055+
description: OK
77056+
'400':
77057+
content:
77058+
application/json:
77059+
schema:
77060+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77061+
description: Bad Request
77062+
'404':
77063+
content:
77064+
application/json:
77065+
schema:
77066+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77067+
description: Not Found
77068+
'429':
77069+
$ref: '#/components/responses/TooManyRequestsResponse'
77070+
summary: Get postmortem template
77071+
tags:
77072+
- Incidents
77073+
x-unstable: '**Note**: This endpoint is in preview and is subject to change.
77074+
77075+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
77076+
patch:
77077+
description: Update an existing postmortem template.
77078+
operationId: UpdateIncidentPostmortemTemplate
77079+
parameters:
77080+
- description: The ID of the postmortem template
77081+
in: path
77082+
name: template_id
77083+
required: true
77084+
schema:
77085+
example: template-456
77086+
type: string
77087+
requestBody:
77088+
content:
77089+
application/json:
77090+
schema:
77091+
$ref: '#/components/schemas/PostmortemTemplateRequest'
77092+
required: true
77093+
responses:
77094+
'200':
77095+
content:
77096+
application/json:
77097+
schema:
77098+
$ref: '#/components/schemas/PostmortemTemplateResponse'
77099+
description: OK
77100+
'400':
77101+
content:
77102+
application/json:
77103+
schema:
77104+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77105+
description: Bad Request
77106+
'404':
77107+
content:
77108+
application/json:
77109+
schema:
77110+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77111+
description: Not Found
77112+
'429':
77113+
$ref: '#/components/responses/TooManyRequestsResponse'
77114+
summary: Update postmortem template
77115+
tags:
77116+
- Incidents
77117+
x-unstable: '**Note**: This endpoint is in preview and is subject to change.
77118+
7685577119
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
7685677120
/api/v2/incidents/config/types:
7685777121
get:
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Create postmortem template returns "Created" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.IncidentsApi;
6+
import com.datadog.api.client.v2.model.PostmortemTemplateAttributesRequest;
7+
import com.datadog.api.client.v2.model.PostmortemTemplateDataRequest;
8+
import com.datadog.api.client.v2.model.PostmortemTemplateRequest;
9+
import com.datadog.api.client.v2.model.PostmortemTemplateResponse;
10+
import com.datadog.api.client.v2.model.PostmortemTemplateType;
11+
12+
public class Example {
13+
public static void main(String[] args) {
14+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
15+
defaultClient.setUnstableOperationEnabled("v2.createIncidentPostmortemTemplate", true);
16+
IncidentsApi apiInstance = new IncidentsApi(defaultClient);
17+
18+
PostmortemTemplateRequest body =
19+
new PostmortemTemplateRequest()
20+
.data(
21+
new PostmortemTemplateDataRequest()
22+
.attributes(
23+
new PostmortemTemplateAttributesRequest()
24+
.name("Standard Postmortem Template"))
25+
.type(PostmortemTemplateType.POSTMORTEM_TEMPLATE));
26+
27+
try {
28+
PostmortemTemplateResponse result = apiInstance.createIncidentPostmortemTemplate(body);
29+
System.out.println(result);
30+
} catch (ApiException e) {
31+
System.err.println("Exception when calling IncidentsApi#createIncidentPostmortemTemplate");
32+
System.err.println("Status code: " + e.getCode());
33+
System.err.println("Reason: " + e.getResponseBody());
34+
System.err.println("Response headers: " + e.getResponseHeaders());
35+
e.printStackTrace();
36+
}
37+
}
38+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Delete postmortem template returns "No Content" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.IncidentsApi;
6+
7+
public class Example {
8+
public static void main(String[] args) {
9+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
10+
defaultClient.setUnstableOperationEnabled("v2.deleteIncidentPostmortemTemplate", true);
11+
IncidentsApi apiInstance = new IncidentsApi(defaultClient);
12+
13+
try {
14+
apiInstance.deleteIncidentPostmortemTemplate("template-456");
15+
} catch (ApiException e) {
16+
System.err.println("Exception when calling IncidentsApi#deleteIncidentPostmortemTemplate");
17+
System.err.println("Status code: " + e.getCode());
18+
System.err.println("Reason: " + e.getResponseBody());
19+
System.err.println("Response headers: " + e.getResponseHeaders());
20+
e.printStackTrace();
21+
}
22+
}
23+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Get postmortem template returns "OK" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.IncidentsApi;
6+
import com.datadog.api.client.v2.model.PostmortemTemplateResponse;
7+
8+
public class Example {
9+
public static void main(String[] args) {
10+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
11+
defaultClient.setUnstableOperationEnabled("v2.getIncidentPostmortemTemplate", true);
12+
IncidentsApi apiInstance = new IncidentsApi(defaultClient);
13+
14+
try {
15+
PostmortemTemplateResponse result = apiInstance.getIncidentPostmortemTemplate("template-456");
16+
System.out.println(result);
17+
} catch (ApiException e) {
18+
System.err.println("Exception when calling IncidentsApi#getIncidentPostmortemTemplate");
19+
System.err.println("Status code: " + e.getCode());
20+
System.err.println("Reason: " + e.getResponseBody());
21+
System.err.println("Response headers: " + e.getResponseHeaders());
22+
e.printStackTrace();
23+
}
24+
}
25+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// List postmortem templates returns "OK" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.IncidentsApi;
6+
import com.datadog.api.client.v2.model.PostmortemTemplatesResponse;
7+
8+
public class Example {
9+
public static void main(String[] args) {
10+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
11+
defaultClient.setUnstableOperationEnabled("v2.listIncidentPostmortemTemplates", true);
12+
IncidentsApi apiInstance = new IncidentsApi(defaultClient);
13+
14+
try {
15+
PostmortemTemplatesResponse result = apiInstance.listIncidentPostmortemTemplates();
16+
System.out.println(result);
17+
} catch (ApiException e) {
18+
System.err.println("Exception when calling IncidentsApi#listIncidentPostmortemTemplates");
19+
System.err.println("Status code: " + e.getCode());
20+
System.err.println("Reason: " + e.getResponseBody());
21+
System.err.println("Response headers: " + e.getResponseHeaders());
22+
e.printStackTrace();
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)