Class: DatadogAPIClient::V2::SecurityMonitoringRuleCaseCreate
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::SecurityMonitoringRuleCaseCreate
- Defined in:
- lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb
Overview
Case when signal is generated.
Instance Attribute Summary collapse
-
#condition ⇒ Object
A rule case contains logical operations (‘>`,`>=`, `&&`, `||`) to determine if a signal should be generated based on the event counts in the previously defined queries.
-
#name ⇒ Object
Name of the case.
-
#notifications ⇒ Object
Notification targets for each rule case.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SecurityMonitoringRuleCaseCreate
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ SecurityMonitoringRuleCaseCreate
Initializes the object
74 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 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb', line 74 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleCaseCreate` 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::SecurityMonitoringRuleCaseCreate`. 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?(:'condition') self.condition = attributes[:'condition'] end if attributes.key?(:'name') self.name = attributes[:'name'] end if attributes.key?(:'notifications') if (value = attributes[:'notifications']).is_a?(Array) self.notifications = value end end if attributes.key?(:'status') self.status = attributes[:'status'] end end |
Instance Attribute Details
#condition ⇒ Object
A rule case contains logical operations (‘>`,`>=`, `&&`, `||`) to determine if a signal should be generated based on the event counts in the previously defined queries.
27 28 29 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb', line 27 def condition @condition end |
#name ⇒ Object
Name of the case.
30 31 32 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb', line 30 def name @name end |
#notifications ⇒ Object
Notification targets for each rule case.
33 34 35 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb', line 33 def notifications @notifications end |
#status ⇒ Object
Returns the value of attribute status.
35 36 37 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb', line 35 def status @status end |