Class: DatadogAPIClient::V2::SecurityMonitoringRuleResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb

Overview

Rule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ SecurityMonitoringRuleResponse

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    attributes Model attributes in the form of hash



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.creation_author_id = 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.message = attributes[:'message']
  end

  if attributes.key?(:'name')
    self.name = attributes[:'name']
  end

  if attributes.key?(:'options')
    self.options = 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.tags = value
    end
  end

  if attributes.key?(:'type')
    self.type = attributes[:'type']
  end

  if attributes.key?(:'update_author_id')
    self.update_author_id = attributes[:'update_author_id']
  end

  if attributes.key?(:'version')
    self.version = attributes[:'version']
  end
end

Instance Attribute Details

#casesObject

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_atObject

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_idObject

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 creation_author_id
  @creation_author_id
end

#filtersObject

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_titleObject

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

#idObject

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_defaultObject

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_deletedObject

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_enabledObject

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

#messageObject

Message for generated signals.



54
55
56
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb', line 54

def message
  @message
end

#nameObject

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

#optionsObject

Returns the value of attribute options.



59
60
61
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb', line 59

def options
  @options
end

#queriesObject

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

#tagsObject

Tags for generated signals.



65
66
67
# File 'lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb', line 65

def tags
  @tags
end

#typeObject

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_idObject

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 update_author_id
  @update_author_id
end

#versionObject

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