Skip to main content

signal_notification_rules

Creates, updates, deletes, gets or lists a signal_notification_rules resource.

Overview

Namesignal_notification_rules
TypeResource
Iddatadog.security.signal_notification_rules

Fields

The following fields are returned by SELECT queries:

Notification rule details.

NameDatatypeDescription
idstringThe ID of a notification rule. (example: aaa-bbb-ccc)
attributesobjectAttributes of the notification rule.
typestringThe rule type associated to notification rules. (notification_rules) (example: notification_rules)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_signal_notification_ruleselectidGet the details of a notification rule for security signals.
get_signal_notification_rulesselectReturns the list of notification rules for security signals.
create_signal_notification_ruleinsertCreate a new notification rule for security signals and return the created rule.
patch_signal_notification_ruleupdateidPartially update the notification rule. All fields are optional; if a field is not provided, it is not updated.
delete_signal_notification_ruledeleteidDelete 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.

NameDatatypeDescription
idstringID of the notification rule.
sitestringThe 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.

SELECT examples

Get the details of a notification rule for security signals.

SELECT
id,
attributes,
type
FROM datadog.security.signal_notification_rules
WHERE id = '{{ id }}' -- required
;

INSERT examples

Create a new notification rule for security signals and return the created rule.

INSERT INTO datadog.security.signal_notification_rules (
data
)
SELECT
'{{ data }}'
RETURNING
data
;

UPDATE examples

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 }}'
WHERE
id = '{{ id }}' --required
RETURNING
data;

DELETE examples

Delete a notification rule for security signals.

DELETE FROM datadog.security.signal_notification_rules
WHERE id = '{{ id }}' --required
;