team_notification_rules
Creates, updates, deletes, gets or lists a team_notification_rules resource.
Overview
| Name | team_notification_rules |
| Type | Resource |
| Id | datadog.organization.team_notification_rules |
Fields
The following fields are returned by SELECT queries:
- get_team_notification_rule
- get_team_notification_rules
| Name | Datatype | Description |
|---|---|---|
id | string | The identifier of the team notification rule (example: b8626d7e-cedd-11eb-abf5-da7ad0900001) |
attributes | object | Team notification rule attributes |
type | string | Team notification rule type (team_notification_rules) (default: team_notification_rules, example: team_notification_rules) |
| Name | Datatype | Description |
|---|---|---|
id | string | The identifier of the team notification rule (example: b8626d7e-cedd-11eb-abf5-da7ad0900001) |
attributes | object | Team notification rule attributes |
type | string | Team notification rule type (team_notification_rules) (default: team_notification_rules, example: team_notification_rules) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_team_notification_rule | select | team_id, rule_id | ||
get_team_notification_rules | select | team_id | ||
create_team_notification_rule | insert | team_id, data | ||
update_team_notification_rule | replace | team_id, rule_id, data | ||
delete_team_notification_rule | delete | team_id, rule_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 |
|---|---|---|
rule_id | string | None |
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. |
team_id | string | None |
SELECT examples
- get_team_notification_rule
- get_team_notification_rules
OK
SELECT
id,
attributes,
type
FROM datadog.organization.team_notification_rules
WHERE team_id = '{{ team_id }}' -- required
AND rule_id = '{{ rule_id }}' -- required
;
OK
SELECT
id,
attributes,
type
FROM datadog.organization.team_notification_rules
WHERE team_id = '{{ team_id }}' -- required
;
INSERT examples
- create_team_notification_rule
- Manifest
No description available.
INSERT INTO datadog.organization.team_notification_rules (
data,
team_id
)
SELECT
'{{ data }}' /* required */,
'{{ team_id }}'
RETURNING
data
;
# Description fields are for documentation purposes
- name: team_notification_rules
props:
- name: team_id
value: "{{ team_id }}"
description: Required parameter for the team_notification_rules resource.
- name: data
description: |
Team notification rule
value:
attributes:
email:
enabled: {{ enabled }}
ms_teams:
connector_name: "{{ connector_name }}"
pagerduty:
service_name: "{{ service_name }}"
slack:
channel: "{{ channel }}"
workspace: "{{ workspace }}"
id: "{{ id }}"
type: "{{ type }}"
REPLACE examples
- update_team_notification_rule
No description available.
REPLACE datadog.organization.team_notification_rules
SET
data = '{{ data }}'
WHERE
team_id = '{{ team_id }}' --required
AND rule_id = '{{ rule_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data;
DELETE examples
- delete_team_notification_rule
No description available.
DELETE FROM datadog.organization.team_notification_rules
WHERE team_id = '{{ team_id }}' --required
AND rule_id = '{{ rule_id }}' --required
;