Class: DatadogAPIClient::V2::NotificationRuleAttributes
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::NotificationRuleAttributes
- Includes:
- BaseGenericModel
- Defined in:
- lib/datadog_api_client/v2/models/notification_rule_attributes.rb
Overview
Attributes of the notification rule.
Instance Attribute Summary collapse
-
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
-
#created_at ⇒ Object
readonly
Date as Unix timestamp in milliseconds.
-
#created_by ⇒ Object
readonly
User creating or modifying a rule.
-
#enabled ⇒ Object
readonly
Field used to enable or disable the rule.
-
#modified_at ⇒ Object
readonly
Date as Unix timestamp in milliseconds.
-
#modified_by ⇒ Object
readonly
User creating or modifying a rule.
-
#name ⇒ Object
readonly
Name of the notification rule.
-
#selectors ⇒ Object
readonly
Selectors are used to filter security issues for which notifications should be generated.
-
#targets ⇒ Object
readonly
List of recipients to notify when a notification rule is triggered.
-
#time_aggregation ⇒ Object
Time aggregation period (in seconds) is used to aggregate the results of the notification rule evaluation.
-
#version ⇒ Object
readonly
Version of the notification rule.
Method Summary
Methods included from BaseGenericModel
Instance Attribute Details
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
62 63 64 |
# File 'lib/datadog_api_client/v2/models/notification_rule_attributes.rb', line 62 def additional_properties @additional_properties end |
#created_at ⇒ Object
Date as Unix timestamp in milliseconds.
25 26 27 |
# File 'lib/datadog_api_client/v2/models/notification_rule_attributes.rb', line 25 def created_at @created_at end |
#created_by ⇒ Object
User creating or modifying a rule.
28 29 30 |
# File 'lib/datadog_api_client/v2/models/notification_rule_attributes.rb', line 28 def created_by @created_by end |
#enabled ⇒ Object
Field used to enable or disable the rule.
31 32 33 |
# File 'lib/datadog_api_client/v2/models/notification_rule_attributes.rb', line 31 def enabled @enabled end |
#modified_at ⇒ Object
Date as Unix timestamp in milliseconds.
34 35 36 |
# File 'lib/datadog_api_client/v2/models/notification_rule_attributes.rb', line 34 def modified_at @modified_at end |
#modified_by ⇒ Object
User creating or modifying a rule.
37 38 39 |
# File 'lib/datadog_api_client/v2/models/notification_rule_attributes.rb', line 37 def modified_by @modified_by end |
#name ⇒ Object
Name of the notification rule.
40 41 42 |
# File 'lib/datadog_api_client/v2/models/notification_rule_attributes.rb', line 40 def name @name end |
#selectors ⇒ Object
Selectors are used to filter security issues for which notifications should be generated. Users can specify rule severities, rule types, a query to filter security issues on tags and attributes, and the trigger source. Only the trigger_source field is required.
45 46 47 |
# File 'lib/datadog_api_client/v2/models/notification_rule_attributes.rb', line 45 def selectors @selectors end |
#targets ⇒ Object
List of recipients to notify when a notification rule is triggered. Many different target types are supported, such as email addresses, Slack channels, and PagerDuty services. The appropriate integrations need to be properly configured to send notifications to the specified targets.
50 51 52 |
# File 'lib/datadog_api_client/v2/models/notification_rule_attributes.rb', line 50 def targets @targets end |
#time_aggregation ⇒ Object
Time aggregation period (in seconds) is used to aggregate the results of the notification rule evaluation. Results are aggregated over a selected time frame using a rolling window, which updates with each new evaluation. Notifications are only sent for new issues discovered during the window. Time aggregation is only available for vulnerability-based notification rules. When omitted or set to 0, no aggregation is done.
57 58 59 |
# File 'lib/datadog_api_client/v2/models/notification_rule_attributes.rb', line 57 def time_aggregation @time_aggregation end |
#version ⇒ Object
Version of the notification rule. It is updated when the rule is modified.
60 61 62 |
# File 'lib/datadog_api_client/v2/models/notification_rule_attributes.rb', line 60 def version @version end |