Class: DatadogAPIClient::V2::SecurityMonitoringRuleOptions
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::SecurityMonitoringRuleOptions
- Defined in:
- lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb
Overview
Options on rules.
Instance Attribute Summary collapse
-
#detection_method ⇒ Object
Returns the value of attribute detection_method.
-
#evaluation_window ⇒ Object
Returns the value of attribute evaluation_window.
-
#keep_alive ⇒ Object
Returns the value of attribute keep_alive.
-
#max_signal_duration ⇒ Object
Returns the value of attribute max_signal_duration.
-
#new_value_options ⇒ Object
Returns the value of attribute new_value_options.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SecurityMonitoringRuleOptions
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ SecurityMonitoringRuleOptions
Initializes the object
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb', line 75 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleOptions` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringRuleOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'detection_method') self.detection_method = attributes[:'detection_method'] end if attributes.key?(:'evaluation_window') self.evaluation_window = attributes[:'evaluation_window'] end if attributes.key?(:'keep_alive') self.keep_alive = attributes[:'keep_alive'] end if attributes.key?(:'max_signal_duration') self.max_signal_duration = attributes[:'max_signal_duration'] end if attributes.key?(:'new_value_options') self. = attributes[:'new_value_options'] end end |
Instance Attribute Details
#detection_method ⇒ Object
Returns the value of attribute detection_method.
26 27 28 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb', line 26 def detection_method @detection_method end |
#evaluation_window ⇒ Object
Returns the value of attribute evaluation_window.
28 29 30 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb', line 28 def evaluation_window @evaluation_window end |
#keep_alive ⇒ Object
Returns the value of attribute keep_alive.
30 31 32 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb', line 30 def keep_alive @keep_alive end |
#max_signal_duration ⇒ Object
Returns the value of attribute max_signal_duration.
32 33 34 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb', line 32 def max_signal_duration @max_signal_duration end |
#new_value_options ⇒ Object
Returns the value of attribute new_value_options.
34 35 36 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb', line 34 def end |