Class: DatadogAPIClient::V2::SecurityMonitoringRuleResponse
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::SecurityMonitoringRuleResponse
- Defined in:
- lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb
Overview
Rule.
Instance Attribute Summary collapse
-
#cases ⇒ Object
Cases for generating signals.
-
#created_at ⇒ Object
When the rule was created, timestamp in milliseconds.
-
#creation_author_id ⇒ Object
User ID of the user who created the rule.
-
#filters ⇒ Object
Additional queries to filter matched events before they are processed.
-
#has_extended_title ⇒ Object
Whether the notifications include the triggering group-by values in their title.
-
#id ⇒ Object
The ID of the rule.
-
#is_default ⇒ Object
Whether the rule is included by default.
-
#is_deleted ⇒ Object
Whether the rule has been deleted.
-
#is_enabled ⇒ Object
Whether the rule is enabled.
-
#message ⇒ Object
Message for generated signals.
-
#name ⇒ Object
The name of the rule.
-
#options ⇒ Object
Returns the value of attribute options.
-
#queries ⇒ Object
Queries for selecting logs which are part of the rule.
-
#tags ⇒ Object
Tags for generated signals.
-
#type ⇒ Object
Returns the value of attribute type.
-
#update_author_id ⇒ Object
User ID of the user who updated the rule.
-
#version ⇒ Object
The version of the rule.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SecurityMonitoringRuleResponse
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ SecurityMonitoringRuleResponse
Initializes the object
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb', line 138 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleResponse` 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::SecurityMonitoringRuleResponse`. 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?(:'cases') if (value = attributes[:'cases']).is_a?(Array) self.cases = value end end if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] end if attributes.key?(:'creation_author_id') self. = attributes[:'creation_author_id'] end if attributes.key?(:'filters') if (value = attributes[:'filters']).is_a?(Array) self.filters = value end end if attributes.key?(:'has_extended_title') self.has_extended_title = attributes[:'has_extended_title'] end if attributes.key?(:'id') self.id = attributes[:'id'] end if attributes.key?(:'is_default') self.is_default = attributes[:'is_default'] end if attributes.key?(:'is_deleted') self.is_deleted = attributes[:'is_deleted'] end if attributes.key?(:'is_enabled') self.is_enabled = attributes[:'is_enabled'] end if attributes.key?(:'message') self. = attributes[:'message'] end if attributes.key?(:'name') self.name = attributes[:'name'] end if attributes.key?(:'options') self. = attributes[:'options'] end if attributes.key?(:'queries') if (value = attributes[:'queries']).is_a?(Array) self.queries = value end end if attributes.key?(:'tags') if (value = attributes[:'tags']).is_a?(Array) self. = value end end if attributes.key?(:'type') self.type = attributes[:'type'] end if attributes.key?(:'update_author_id') self. = attributes[:'update_author_id'] end if attributes.key?(:'version') self.version = attributes[:'version'] end end |
Instance Attribute Details
#cases ⇒ Object
Cases for generating signals.
27 28 29 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb', line 27 def cases @cases end |
#created_at ⇒ Object
When the rule was created, timestamp in milliseconds.
30 31 32 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb', line 30 def created_at @created_at end |
#creation_author_id ⇒ Object
User ID of the user who created the rule.
33 34 35 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb', line 33 def end |
#filters ⇒ Object
Additional queries to filter matched events before they are processed.
36 37 38 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb', line 36 def filters @filters end |
#has_extended_title ⇒ Object
Whether the notifications include the triggering group-by values in their title.
39 40 41 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb', line 39 def has_extended_title @has_extended_title end |
#id ⇒ Object
The ID of the rule.
42 43 44 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb', line 42 def id @id end |
#is_default ⇒ Object
Whether the rule is included by default.
45 46 47 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb', line 45 def is_default @is_default end |
#is_deleted ⇒ Object
Whether the rule has been deleted.
48 49 50 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb', line 48 def is_deleted @is_deleted end |
#is_enabled ⇒ Object
Whether the rule is enabled.
51 52 53 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb', line 51 def is_enabled @is_enabled end |
#message ⇒ Object
Message for generated signals.
54 55 56 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb', line 54 def end |
#name ⇒ Object
The name of the rule.
57 58 59 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb', line 57 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
59 60 61 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb', line 59 def end |
#queries ⇒ Object
Queries for selecting logs which are part of the rule.
62 63 64 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb', line 62 def queries @queries end |
#tags ⇒ Object
Tags for generated signals.
65 66 67 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb', line 65 def end |
#type ⇒ Object
Returns the value of attribute type.
67 68 69 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb', line 67 def type @type end |
#update_author_id ⇒ Object
User ID of the user who updated the rule.
70 71 72 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb', line 70 def end |
#version ⇒ Object
The version of the rule.
73 74 75 |
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb', line 73 def version @version end |