incident_notification_templates
Creates, updates, deletes, gets or lists an incident_notification_templates
resource.
Overview
Name | incident_notification_templates |
Type | Resource |
Id | datadog.service_management.incident_notification_templates |
Fields
The following fields are returned by SELECT
queries:
- get_incident_notification_template
- list_incident_notification_templates
Name | Datatype | Description |
---|---|---|
id | string (uuid) | The unique identifier of the notification template. (example: 00000000-0000-0000-0000-000000000001) |
attributes | object | The notification template's attributes. |
relationships | object | The notification template's resource relationships. |
type | string | Notification templates resource type. (example: notification_templates) |
Name | Datatype | Description |
---|---|---|
id | string (uuid) | The unique identifier of the notification template. (example: 00000000-0000-0000-0000-000000000001) |
attributes | object | The notification template's attributes. |
relationships | object | The notification template's resource relationships. |
type | string | Notification templates resource type. (example: notification_templates) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_incident_notification_template | select | id , region | include | Retrieves a specific notification template by its ID. |
list_incident_notification_templates | select | region | filter[incident-type] , include | Lists all notification templates. Optionally filter by incident type. |
create_incident_notification_template | insert | region , data__data | Creates a new notification template. | |
update_incident_notification_template | update | id , region , data__data | include | Updates an existing notification template's attributes. |
delete_incident_notification_template | delete | id , region | include | Deletes a notification template by its ID. |
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 |
---|---|---|
id | string (uuid) | The ID of the notification template. |
region | string | (default: datadoghq.com) |
filter[incident-type] | string (uuid) | Optional incident type ID filter. |
include | string | Comma-separated list of relationships to include. Supported values: created_by_user , last_modified_by_user , incident_type |
SELECT
examples
- get_incident_notification_template
- list_incident_notification_templates
Retrieves a specific notification template by its ID.
SELECT
id,
attributes,
relationships,
type
FROM datadog.service_management.incident_notification_templates
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
AND include = '{{ include }}'
;
Lists all notification templates. Optionally filter by incident type.
SELECT
id,
attributes,
relationships,
type
FROM datadog.service_management.incident_notification_templates
WHERE region = '{{ region }}' -- required
AND filter[incident-type] = '{{ filter[incident-type] }}'
AND include = '{{ include }}'
;
INSERT
examples
- create_incident_notification_template
- Manifest
Creates a new notification template.
INSERT INTO datadog.service_management.incident_notification_templates (
data__data,
region
)
SELECT
'{{ data }}' /* required */,
'{{ region }}'
RETURNING
data,
included
;
# Description fields are for documentation purposes
- name: incident_notification_templates
props:
- name: region
value: string
description: Required parameter for the incident_notification_templates resource.
- name: data
value: object
description: |
Notification template data for a create request.
UPDATE
examples
- update_incident_notification_template
Updates an existing notification template's attributes.
UPDATE datadog.service_management.incident_notification_templates
SET
data__data = '{{ data }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required
AND data__data = '{{ data }}' --required
AND include = '{{ include}}'
RETURNING
data,
included;
DELETE
examples
- delete_incident_notification_template
Deletes a notification template by its ID.
DELETE FROM datadog.service_management.incident_notification_templates
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
AND include = '{{ include }}'
;