Class: DatadogAPIClient::V2::NotificationRuleAttributes

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/notification_rule_attributes.rb

Overview

Attributes of the notification rule.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

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_atObject

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_byObject

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

#enabledObject

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_atObject

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_byObject

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

#nameObject

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

#selectorsObject

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

#targetsObject

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_aggregationObject

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

#versionObject

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