incident_attachment_postmortems
Creates, updates, deletes, gets or lists an incident_attachment_postmortems resource.
Overview
| Name | incident_attachment_postmortems |
| Type | Resource |
| Id | datadog.service_management.incident_attachment_postmortems |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
create_incident_postmortem_attachment | insert | incident_id, data | Create a postmortem attachment for an incident.<br /><br />The endpoint accepts markdown for notebooks created in Confluence or Google Docs.<br />Postmortems created from notebooks need to be formatted using frontend notebook cells,<br />in addition to markdown format. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
incident_id | string | The ID of the incident |
site | string | The Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both. |
INSERT examples
- create_incident_postmortem_attachment
- Manifest
Create a postmortem attachment for an incident.<br /><br />The endpoint accepts markdown for notebooks created in Confluence or Google Docs.<br />Postmortems created from notebooks need to be formatted using frontend notebook cells,<br />in addition to markdown format.
INSERT INTO datadog.service_management.incident_attachment_postmortems (
data,
incident_id
)
SELECT
'{{ data }}' /* required */,
'{{ incident_id }}'
RETURNING
data,
included
;
# Description fields are for documentation purposes
- name: incident_attachment_postmortems
props:
- name: incident_id
value: "{{ incident_id }}"
description: Required parameter for the incident_attachment_postmortems resource.
- name: data
description: |
Postmortem attachment data
value:
attributes:
cells:
- attributes:
definition:
content: "{{ content }}"
id: "{{ id }}"
type: "{{ type }}"
content: "{{ content }}"
postmortem_template_id: "{{ postmortem_template_id }}"
title: "{{ title }}"
type: "{{ type }}"