signal_notification_rules
Creates, updates, deletes, gets or lists a signal_notification_rules
resource.
Overview
Name | signal_notification_rules |
Type | Resource |
Id | datadog.security.signal_notification_rules |
Fields
The following fields are returned by SELECT
queries:
- get_signal_notification_rule
- get_signal_notification_rules
Notification rule details.
Name | Datatype | Description |
---|---|---|
id | string | The ID of a notification rule. (example: aaa-bbb-ccc) |
attributes | object | Attributes of the notification rule. |
type | string | The rule type associated to notification rules. (example: notification_rules) |
The list of notification rules.
Name | Datatype | Description |
---|---|---|
id | string | The ID of a notification rule. (example: aaa-bbb-ccc) |
attributes | object | Attributes of the notification rule. |
type | string | The rule type associated to notification rules. (example: notification_rules) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_signal_notification_rule | select | id , region | Get the details of a notification rule for security signals. | |
get_signal_notification_rules | select | region | Returns the list of notification rules for security signals. | |
create_signal_notification_rule | insert | region | Create a new notification rule for security signals and return the created rule. | |
patch_signal_notification_rule | update | id , region | Partially update the notification rule. All fields are optional; if a field is not provided, it is not updated. | |
delete_signal_notification_rule | delete | id , region | Delete a notification rule for security signals. |
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 | ID of the notification rule. |
region | string | (default: datadoghq.com) |
SELECT
examples
- get_signal_notification_rule
- get_signal_notification_rules
Get the details of a notification rule for security signals.
SELECT
id,
attributes,
type
FROM datadog.security.signal_notification_rules
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;
Returns the list of notification rules for security signals.
SELECT
id,
attributes,
type
FROM datadog.security.signal_notification_rules
WHERE region = '{{ region }}' -- required
;
INSERT
examples
- create_signal_notification_rule
- Manifest
Create a new notification rule for security signals and return the created rule.
INSERT INTO datadog.security.signal_notification_rules (
data__data,
region
)
SELECT
'{{ data }}',
'{{ region }}'
RETURNING
data
;
# Description fields are for documentation purposes
- name: signal_notification_rules
props:
- name: region
value: string
description: Required parameter for the signal_notification_rules resource.
- name: data
value: object
description: |
Data of the notification rule create request: the rule type, and the rule attributes. All fields are required.
UPDATE
examples
- patch_signal_notification_rule
Partially update the notification rule. All fields are optional; if a field is not provided, it is not updated.
UPDATE datadog.security.signal_notification_rules
SET
data__data = '{{ data }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required
RETURNING
data;
DELETE
examples
- delete_signal_notification_rule
Delete a notification rule for security signals.
DELETE FROM datadog.security.signal_notification_rules
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
;