Skip to content

Commit f76d2af

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a967230 of spec repo
1 parent 602473e commit f76d2af

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
@@ -44962,6 +44962,92 @@ components:
4496244962
type: string
4496344963
x-enum-varnames:
4496444964
- MARKDOWN
44965+
PostmortemTemplateAttributesRequest:
44966+
properties:
44967+
name:
44968+
description: The name of the template
44969+
example: Standard Postmortem Template
44970+
type: string
44971+
required:
44972+
- name
44973+
type: object
44974+
PostmortemTemplateAttributesResponse:
44975+
properties:
44976+
createdAt:
44977+
description: When the template was created
44978+
example: '2026-01-13T17:15:53.208340Z'
44979+
format: date-time
44980+
type: string
44981+
modifiedAt:
44982+
description: When the template was last modified
44983+
example: '2026-01-13T17:15:53.208340Z'
44984+
format: date-time
44985+
type: string
44986+
name:
44987+
description: The name of the template
44988+
example: Standard Postmortem Template
44989+
type: string
44990+
required:
44991+
- name
44992+
- createdAt
44993+
- modifiedAt
44994+
type: object
44995+
PostmortemTemplateDataRequest:
44996+
properties:
44997+
attributes:
44998+
$ref: '#/components/schemas/PostmortemTemplateAttributesRequest'
44999+
type:
45000+
$ref: '#/components/schemas/PostmortemTemplateType'
45001+
required:
45002+
- type
45003+
- attributes
45004+
type: object
45005+
PostmortemTemplateDataResponse:
45006+
properties:
45007+
attributes:
45008+
$ref: '#/components/schemas/PostmortemTemplateAttributesResponse'
45009+
id:
45010+
description: The ID of the template
45011+
example: template-456
45012+
type: string
45013+
type:
45014+
$ref: '#/components/schemas/PostmortemTemplateType'
45015+
required:
45016+
- id
45017+
- type
45018+
- attributes
45019+
type: object
45020+
PostmortemTemplateRequest:
45021+
properties:
45022+
data:
45023+
$ref: '#/components/schemas/PostmortemTemplateDataRequest'
45024+
required:
45025+
- data
45026+
type: object
45027+
PostmortemTemplateResponse:
45028+
properties:
45029+
data:
45030+
$ref: '#/components/schemas/PostmortemTemplateDataResponse'
45031+
required:
45032+
- data
45033+
type: object
45034+
PostmortemTemplateType:
45035+
description: Postmortem template resource type
45036+
enum:
45037+
- postmortem_template
45038+
example: postmortem_template
45039+
type: string
45040+
x-enum-varnames:
45041+
- POSTMORTEM_TEMPLATE
45042+
PostmortemTemplatesResponse:
45043+
properties:
45044+
data:
45045+
items:
45046+
$ref: '#/components/schemas/PostmortemTemplateDataResponse'
45047+
type: array
45048+
required:
45049+
- data
45050+
type: object
4496545051
Powerpack:
4496645052
description: Powerpacks are templated groups of dashboard widgets you can save
4496745053
from an existing dashboard and turn into reusable packs in the widget tray.
@@ -77414,6 +77500,184 @@ paths:
7741477500
- incident_notification_settings_write
7741577501
x-unstable: '**Note**: This endpoint is in Preview.
7741677502

77503+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
77504+
/api/v2/incidents/config/postmortem-templates:
77505+
get:
77506+
description: Retrieve a list of all postmortem templates for incidents.
77507+
operationId: ListIncidentPostmortemTemplates
77508+
responses:
77509+
'200':
77510+
content:
77511+
application/json:
77512+
schema:
77513+
$ref: '#/components/schemas/PostmortemTemplatesResponse'
77514+
description: OK
77515+
'400':
77516+
content:
77517+
application/json:
77518+
schema:
77519+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77520+
description: Bad Request
77521+
'429':
77522+
$ref: '#/components/responses/TooManyRequestsResponse'
77523+
summary: List postmortem templates
77524+
tags:
77525+
- Incidents
77526+
x-unstable: '**Note**: This endpoint is in preview and is subject to change.
77527+
77528+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
77529+
post:
77530+
description: Create a new postmortem template for incidents.
77531+
operationId: CreateIncidentPostmortemTemplate
77532+
requestBody:
77533+
content:
77534+
application/json:
77535+
schema:
77536+
$ref: '#/components/schemas/PostmortemTemplateRequest'
77537+
required: true
77538+
responses:
77539+
'201':
77540+
content:
77541+
application/json:
77542+
schema:
77543+
$ref: '#/components/schemas/PostmortemTemplateResponse'
77544+
description: Created
77545+
'400':
77546+
content:
77547+
application/json:
77548+
schema:
77549+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77550+
description: Bad Request
77551+
'403':
77552+
content:
77553+
application/json:
77554+
schema:
77555+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77556+
description: Forbidden
77557+
'429':
77558+
$ref: '#/components/responses/TooManyRequestsResponse'
77559+
summary: Create postmortem template
77560+
tags:
77561+
- Incidents
77562+
x-unstable: '**Note**: This endpoint is in preview and is subject to change.
77563+
77564+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
77565+
/api/v2/incidents/config/postmortem-templates/{template_id}:
77566+
delete:
77567+
description: Delete a postmortem template.
77568+
operationId: DeleteIncidentPostmortemTemplate
77569+
parameters:
77570+
- description: The ID of the postmortem template
77571+
in: path
77572+
name: template_id
77573+
required: true
77574+
schema:
77575+
example: template-456
77576+
type: string
77577+
responses:
77578+
'204':
77579+
description: No Content
77580+
'400':
77581+
content:
77582+
application/json:
77583+
schema:
77584+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77585+
description: Bad Request
77586+
'404':
77587+
content:
77588+
application/json:
77589+
schema:
77590+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77591+
description: Not Found
77592+
'429':
77593+
$ref: '#/components/responses/TooManyRequestsResponse'
77594+
summary: Delete postmortem template
77595+
tags:
77596+
- Incidents
77597+
x-unstable: '**Note**: This endpoint is in preview and is subject to change.
77598+
77599+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
77600+
get:
77601+
description: Retrieve details of a specific postmortem template.
77602+
operationId: GetIncidentPostmortemTemplate
77603+
parameters:
77604+
- description: The ID of the postmortem template
77605+
in: path
77606+
name: template_id
77607+
required: true
77608+
schema:
77609+
example: template-456
77610+
type: string
77611+
responses:
77612+
'200':
77613+
content:
77614+
application/json:
77615+
schema:
77616+
$ref: '#/components/schemas/PostmortemTemplateResponse'
77617+
description: OK
77618+
'400':
77619+
content:
77620+
application/json:
77621+
schema:
77622+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77623+
description: Bad Request
77624+
'404':
77625+
content:
77626+
application/json:
77627+
schema:
77628+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77629+
description: Not Found
77630+
'429':
77631+
$ref: '#/components/responses/TooManyRequestsResponse'
77632+
summary: Get postmortem template
77633+
tags:
77634+
- Incidents
77635+
x-unstable: '**Note**: This endpoint is in preview and is subject to change.
77636+
77637+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
77638+
patch:
77639+
description: Update an existing postmortem template.
77640+
operationId: UpdateIncidentPostmortemTemplate
77641+
parameters:
77642+
- description: The ID of the postmortem template
77643+
in: path
77644+
name: template_id
77645+
required: true
77646+
schema:
77647+
example: template-456
77648+
type: string
77649+
requestBody:
77650+
content:
77651+
application/json:
77652+
schema:
77653+
$ref: '#/components/schemas/PostmortemTemplateRequest'
77654+
required: true
77655+
responses:
77656+
'200':
77657+
content:
77658+
application/json:
77659+
schema:
77660+
$ref: '#/components/schemas/PostmortemTemplateResponse'
77661+
description: OK
77662+
'400':
77663+
content:
77664+
application/json:
77665+
schema:
77666+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77667+
description: Bad Request
77668+
'404':
77669+
content:
77670+
application/json:
77671+
schema:
77672+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77673+
description: Not Found
77674+
'429':
77675+
$ref: '#/components/responses/TooManyRequestsResponse'
77676+
summary: Update postmortem template
77677+
tags:
77678+
- Incidents
77679+
x-unstable: '**Note**: This endpoint is in preview and is subject to change.
77680+
7741777681
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
7741877682
/api/v2/incidents/config/types:
7741977683
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)