datadog_api_client 2.35.0 → 2.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +3 -3
  4. data/.generator/schemas/v2/openapi.yaml +357 -0
  5. data/CHANGELOG.md +26 -0
  6. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +3 -0
  7. data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1735989579.rb +30 -0
  8. data/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle_1716851881.rb +1 -1
  9. data/examples/v2/teams/AddMemberTeam.rb +15 -0
  10. data/examples/v2/teams/ListMemberTeams.rb +8 -0
  11. data/examples/v2/teams/ListMemberTeams_1662850354.rb +8 -0
  12. data/examples/v2/teams/RemoveMemberTeam.rb +8 -0
  13. data/lib/datadog_api_client/configuration.rb +7 -0
  14. data/lib/datadog_api_client/inflector.rb +8 -0
  15. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb +2 -31
  16. data/lib/datadog_api_client/v2/api/teams_api.rb +254 -0
  17. data/lib/datadog_api_client/v2/models/add_member_team_request.rb +123 -0
  18. data/lib/datadog_api_client/v2/models/change_event_custom_attributes_author_type.rb +2 -0
  19. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb +21 -1
  20. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +11 -1
  21. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination.rb +2 -1
  22. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_microsoft_sentinel.rb +228 -0
  23. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_microsoft_sentinel_type.rb +26 -0
  24. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination.rb +2 -1
  25. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_microsoft_sentinel.rb +228 -0
  26. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_microsoft_sentinel_type.rb +26 -0
  27. data/lib/datadog_api_client/v2/models/member_team.rb +144 -0
  28. data/lib/datadog_api_client/v2/models/member_team_type.rb +26 -0
  29. data/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb +11 -1
  30. data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb +1 -0
  31. data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb +1 -0
  32. data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +21 -1
  33. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb +21 -1
  34. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +21 -1
  35. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +21 -1
  36. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +11 -1
  37. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +21 -1
  38. data/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb +11 -1
  39. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb +15 -3
  40. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_samplings.rb +137 -0
  41. data/lib/datadog_api_client/version.rb +1 -1
  42. metadata +14 -1
@@ -0,0 +1,144 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # A member team
21
+ class MemberTeam
22
+ include BaseGenericModel
23
+
24
+ # The member team's identifier
25
+ attr_reader :id
26
+
27
+ # Member team type
28
+ attr_reader :type
29
+
30
+ attr_accessor :additional_properties
31
+
32
+ # Attribute mapping from ruby-style variable name to JSON key.
33
+ # @!visibility private
34
+ def self.attribute_map
35
+ {
36
+ :'id' => :'id',
37
+ :'type' => :'type'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ # @!visibility private
43
+ def self.openapi_types
44
+ {
45
+ :'id' => :'String',
46
+ :'type' => :'MemberTeamType'
47
+ }
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param attributes [Hash] Model attributes in the form of hash
52
+ # @!visibility private
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MemberTeam` initialize method"
56
+ end
57
+
58
+ self.additional_properties = {}
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!self.class.attribute_map.key?(k.to_sym))
62
+ self.additional_properties[k.to_sym] = v
63
+ else
64
+ h[k.to_sym] = v
65
+ end
66
+ }
67
+
68
+ if attributes.key?(:'id')
69
+ self.id = attributes[:'id']
70
+ end
71
+
72
+ if attributes.key?(:'type')
73
+ self.type = attributes[:'type']
74
+ end
75
+ end
76
+
77
+ # Check to see if the all the properties in the model are valid
78
+ # @return true if the model is valid
79
+ # @!visibility private
80
+ def valid?
81
+ return false if @id.nil?
82
+ return false if @type.nil?
83
+ true
84
+ end
85
+
86
+ # Custom attribute writer method with validation
87
+ # @param id [Object] Object to be assigned
88
+ # @!visibility private
89
+ def id=(id)
90
+ if id.nil?
91
+ fail ArgumentError, 'invalid value for "id", id cannot be nil.'
92
+ end
93
+ @id = id
94
+ end
95
+
96
+ # Custom attribute writer method with validation
97
+ # @param type [Object] Object to be assigned
98
+ # @!visibility private
99
+ def type=(type)
100
+ if type.nil?
101
+ fail ArgumentError, 'invalid value for "type", type cannot be nil.'
102
+ end
103
+ @type = type
104
+ end
105
+
106
+ # Returns the object in the form of hash, with additionalProperties support.
107
+ # @return [Hash] Returns the object in the form of hash
108
+ # @!visibility private
109
+ def to_hash
110
+ hash = {}
111
+ self.class.attribute_map.each_pair do |attr, param|
112
+ value = self.send(attr)
113
+ if value.nil?
114
+ is_nullable = self.class.openapi_nullable.include?(attr)
115
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
116
+ end
117
+
118
+ hash[param] = _to_hash(value)
119
+ end
120
+ self.additional_properties.each_pair do |attr, value|
121
+ hash[attr] = value
122
+ end
123
+ hash
124
+ end
125
+
126
+ # Checks equality by comparing each attribute.
127
+ # @param o [Object] Object to be compared
128
+ # @!visibility private
129
+ def ==(o)
130
+ return true if self.equal?(o)
131
+ self.class == o.class &&
132
+ id == o.id &&
133
+ type == o.type &&
134
+ additional_properties == o.additional_properties
135
+ end
136
+
137
+ # Calculates hash code according to all attributes.
138
+ # @return [Integer] Hash code
139
+ # @!visibility private
140
+ def hash
141
+ [id, type, additional_properties].hash
142
+ end
143
+ end
144
+ end
@@ -0,0 +1,26 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # Member team type
21
+ class MemberTeamType
22
+ include BaseEnumModel
23
+
24
+ MEMBER_TEAMS = "member_teams".freeze
25
+ end
26
+ end
@@ -28,6 +28,9 @@ module DatadogAPIClient::V2
28
28
  # based on the event counts in the previously defined queries.
29
29
  attr_accessor :condition
30
30
 
31
+ # Severity of the Security Signal.
32
+ attr_accessor :custom_status
33
+
31
34
  # Name of the case.
32
35
  attr_accessor :name
33
36
 
@@ -45,6 +48,7 @@ module DatadogAPIClient::V2
45
48
  {
46
49
  :'actions' => :'actions',
47
50
  :'condition' => :'condition',
51
+ :'custom_status' => :'customStatus',
48
52
  :'name' => :'name',
49
53
  :'notifications' => :'notifications',
50
54
  :'status' => :'status'
@@ -57,6 +61,7 @@ module DatadogAPIClient::V2
57
61
  {
58
62
  :'actions' => :'Array<SecurityMonitoringRuleCaseAction>',
59
63
  :'condition' => :'String',
64
+ :'custom_status' => :'SecurityMonitoringRuleSeverity',
60
65
  :'name' => :'String',
61
66
  :'notifications' => :'Array<String>',
62
67
  :'status' => :'SecurityMonitoringRuleSeverity'
@@ -91,6 +96,10 @@ module DatadogAPIClient::V2
91
96
  self.condition = attributes[:'condition']
92
97
  end
93
98
 
99
+ if attributes.key?(:'custom_status')
100
+ self.custom_status = attributes[:'custom_status']
101
+ end
102
+
94
103
  if attributes.key?(:'name')
95
104
  self.name = attributes[:'name']
96
105
  end
@@ -134,6 +143,7 @@ module DatadogAPIClient::V2
134
143
  self.class == o.class &&
135
144
  actions == o.actions &&
136
145
  condition == o.condition &&
146
+ custom_status == o.custom_status &&
137
147
  name == o.name &&
138
148
  notifications == o.notifications &&
139
149
  status == o.status &&
@@ -144,7 +154,7 @@ module DatadogAPIClient::V2
144
154
  # @return [Integer] Hash code
145
155
  # @!visibility private
146
156
  def hash
147
- [actions, condition, name, notifications, status, additional_properties].hash
157
+ [actions, condition, custom_status, name, notifications, status, additional_properties].hash
148
158
  end
149
159
  end
150
160
  end
@@ -21,6 +21,7 @@ module DatadogAPIClient::V2
21
21
  class SecurityMonitoringRuleTypeCreate
22
22
  include BaseEnumModel
23
23
 
24
+ API_SECURITY = "api_security".freeze
24
25
  APPLICATION_SECURITY = "application_security".freeze
25
26
  LOG_DETECTION = "log_detection".freeze
26
27
  WORKLOAD_SECURITY = "workload_security".freeze
@@ -26,5 +26,6 @@ module DatadogAPIClient::V2
26
26
  WORKLOAD_SECURITY = "workload_security".freeze
27
27
  CLOUD_CONFIGURATION = "cloud_configuration".freeze
28
28
  APPLICATION_SECURITY = "application_security".freeze
29
+ API_SECURITY = "api_security".freeze
29
30
  end
30
31
  end
@@ -27,6 +27,12 @@ module DatadogAPIClient::V2
27
27
  # How to generate compliance signals. Useful for cloud_configuration rules only.
28
28
  attr_accessor :compliance_signal_options
29
29
 
30
+ # Custom/Overridden Message for generated signals (used in case of Default rule update).
31
+ attr_accessor :custom_message
32
+
33
+ # Custom/Overridden name (used in case of Default rule update).
34
+ attr_accessor :custom_name
35
+
30
36
  # Additional queries to filter matched events before they are processed. This field is deprecated for log detection, signal correlation, and workload security rules.
31
37
  attr_accessor :filters
32
38
 
@@ -71,6 +77,8 @@ module DatadogAPIClient::V2
71
77
  {
72
78
  :'cases' => :'cases',
73
79
  :'compliance_signal_options' => :'complianceSignalOptions',
80
+ :'custom_message' => :'customMessage',
81
+ :'custom_name' => :'customName',
74
82
  :'filters' => :'filters',
75
83
  :'group_signals_by' => :'groupSignalsBy',
76
84
  :'has_extended_title' => :'hasExtendedTitle',
@@ -92,6 +100,8 @@ module DatadogAPIClient::V2
92
100
  {
93
101
  :'cases' => :'Array<SecurityMonitoringRuleCase>',
94
102
  :'compliance_signal_options' => :'CloudConfigurationRuleComplianceSignalOptions',
103
+ :'custom_message' => :'String',
104
+ :'custom_name' => :'String',
95
105
  :'filters' => :'Array<SecurityMonitoringFilter>',
96
106
  :'group_signals_by' => :'Array<String>',
97
107
  :'has_extended_title' => :'Boolean',
@@ -135,6 +145,14 @@ module DatadogAPIClient::V2
135
145
  self.compliance_signal_options = attributes[:'compliance_signal_options']
136
146
  end
137
147
 
148
+ if attributes.key?(:'custom_message')
149
+ self.custom_message = attributes[:'custom_message']
150
+ end
151
+
152
+ if attributes.key?(:'custom_name')
153
+ self.custom_name = attributes[:'custom_name']
154
+ end
155
+
138
156
  if attributes.key?(:'filters')
139
157
  if (value = attributes[:'filters']).is_a?(Array)
140
158
  self.filters = value
@@ -242,6 +260,8 @@ module DatadogAPIClient::V2
242
260
  self.class == o.class &&
243
261
  cases == o.cases &&
244
262
  compliance_signal_options == o.compliance_signal_options &&
263
+ custom_message == o.custom_message &&
264
+ custom_name == o.custom_name &&
245
265
  filters == o.filters &&
246
266
  group_signals_by == o.group_signals_by &&
247
267
  has_extended_title == o.has_extended_title &&
@@ -261,7 +281,7 @@ module DatadogAPIClient::V2
261
281
  # @return [Integer] Hash code
262
282
  # @!visibility private
263
283
  def hash
264
- [cases, compliance_signal_options, filters, group_signals_by, has_extended_title, is_enabled, message, name, options, queries, reference_tables, tags, third_party_cases, version, additional_properties].hash
284
+ [cases, compliance_signal_options, custom_message, custom_name, filters, group_signals_by, has_extended_title, is_enabled, message, name, options, queries, reference_tables, tags, third_party_cases, version, additional_properties].hash
265
285
  end
266
286
  end
267
287
  end
@@ -24,6 +24,12 @@ module DatadogAPIClient::V2
24
24
  # Cases for generating signals.
25
25
  attr_reader :cases
26
26
 
27
+ # Custom/Overridden message for generated signals (used in case of Default rule update).
28
+ attr_accessor :custom_message
29
+
30
+ # Custom/Overridden name of the rule (used in case of Default rule update).
31
+ attr_accessor :custom_name
32
+
27
33
  # Additional queries to filter matched events before they are processed. This field is deprecated for log detection, signal correlation, and workload security rules.
28
34
  attr_accessor :filters
29
35
 
@@ -58,6 +64,8 @@ module DatadogAPIClient::V2
58
64
  def self.attribute_map
59
65
  {
60
66
  :'cases' => :'cases',
67
+ :'custom_message' => :'customMessage',
68
+ :'custom_name' => :'customName',
61
69
  :'filters' => :'filters',
62
70
  :'has_extended_title' => :'hasExtendedTitle',
63
71
  :'is_enabled' => :'isEnabled',
@@ -75,6 +83,8 @@ module DatadogAPIClient::V2
75
83
  def self.openapi_types
76
84
  {
77
85
  :'cases' => :'Array<SecurityMonitoringRuleCaseCreate>',
86
+ :'custom_message' => :'String',
87
+ :'custom_name' => :'String',
78
88
  :'filters' => :'Array<SecurityMonitoringFilter>',
79
89
  :'has_extended_title' => :'Boolean',
80
90
  :'is_enabled' => :'Boolean',
@@ -111,6 +121,14 @@ module DatadogAPIClient::V2
111
121
  end
112
122
  end
113
123
 
124
+ if attributes.key?(:'custom_message')
125
+ self.custom_message = attributes[:'custom_message']
126
+ end
127
+
128
+ if attributes.key?(:'custom_name')
129
+ self.custom_name = attributes[:'custom_name']
130
+ end
131
+
114
132
  if attributes.key?(:'filters')
115
133
  if (value = attributes[:'filters']).is_a?(Array)
116
134
  self.filters = value
@@ -254,6 +272,8 @@ module DatadogAPIClient::V2
254
272
  return true if self.equal?(o)
255
273
  self.class == o.class &&
256
274
  cases == o.cases &&
275
+ custom_message == o.custom_message &&
276
+ custom_name == o.custom_name &&
257
277
  filters == o.filters &&
258
278
  has_extended_title == o.has_extended_title &&
259
279
  is_enabled == o.is_enabled &&
@@ -270,7 +290,7 @@ module DatadogAPIClient::V2
270
290
  # @return [Integer] Hash code
271
291
  # @!visibility private
272
292
  def hash
273
- [cases, filters, has_extended_title, is_enabled, message, name, options, queries, tags, type, additional_properties].hash
293
+ [cases, custom_message, custom_name, filters, has_extended_title, is_enabled, message, name, options, queries, tags, type, additional_properties].hash
274
294
  end
275
295
  end
276
296
  end
@@ -30,6 +30,12 @@ module DatadogAPIClient::V2
30
30
  # User ID of the user who created the rule.
31
31
  attr_accessor :creation_author_id
32
32
 
33
+ # Custom/Overridden message for generated signals (used in case of Default rule update).
34
+ attr_accessor :custom_message
35
+
36
+ # Custom/Overridden name of the rule (used in case of Default rule update).
37
+ attr_accessor :custom_name
38
+
33
39
  # When the rule will be deprecated, timestamp in milliseconds.
34
40
  attr_accessor :deprecation_date
35
41
 
@@ -84,6 +90,8 @@ module DatadogAPIClient::V2
84
90
  :'cases' => :'cases',
85
91
  :'created_at' => :'createdAt',
86
92
  :'creation_author_id' => :'creationAuthorId',
93
+ :'custom_message' => :'customMessage',
94
+ :'custom_name' => :'customName',
87
95
  :'deprecation_date' => :'deprecationDate',
88
96
  :'filters' => :'filters',
89
97
  :'has_extended_title' => :'hasExtendedTitle',
@@ -109,6 +117,8 @@ module DatadogAPIClient::V2
109
117
  :'cases' => :'Array<SecurityMonitoringRuleCase>',
110
118
  :'created_at' => :'Integer',
111
119
  :'creation_author_id' => :'Integer',
120
+ :'custom_message' => :'String',
121
+ :'custom_name' => :'String',
112
122
  :'deprecation_date' => :'Integer',
113
123
  :'filters' => :'Array<SecurityMonitoringFilter>',
114
124
  :'has_extended_title' => :'Boolean',
@@ -159,6 +169,14 @@ module DatadogAPIClient::V2
159
169
  self.creation_author_id = attributes[:'creation_author_id']
160
170
  end
161
171
 
172
+ if attributes.key?(:'custom_message')
173
+ self.custom_message = attributes[:'custom_message']
174
+ end
175
+
176
+ if attributes.key?(:'custom_name')
177
+ self.custom_name = attributes[:'custom_name']
178
+ end
179
+
162
180
  if attributes.key?(:'deprecation_date')
163
181
  self.deprecation_date = attributes[:'deprecation_date']
164
182
  end
@@ -255,6 +273,8 @@ module DatadogAPIClient::V2
255
273
  cases == o.cases &&
256
274
  created_at == o.created_at &&
257
275
  creation_author_id == o.creation_author_id &&
276
+ custom_message == o.custom_message &&
277
+ custom_name == o.custom_name &&
258
278
  deprecation_date == o.deprecation_date &&
259
279
  filters == o.filters &&
260
280
  has_extended_title == o.has_extended_title &&
@@ -277,7 +297,7 @@ module DatadogAPIClient::V2
277
297
  # @return [Integer] Hash code
278
298
  # @!visibility private
279
299
  def hash
280
- [cases, created_at, creation_author_id, deprecation_date, filters, has_extended_title, id, is_default, is_deleted, is_enabled, message, name, options, queries, tags, type, update_author_id, version, additional_properties].hash
300
+ [cases, created_at, creation_author_id, custom_message, custom_name, deprecation_date, filters, has_extended_title, id, is_default, is_deleted, is_enabled, message, name, options, queries, tags, type, update_author_id, version, additional_properties].hash
281
301
  end
282
302
  end
283
303
  end
@@ -24,6 +24,12 @@ module DatadogAPIClient::V2
24
24
  # Cases for generating signals.
25
25
  attr_reader :cases
26
26
 
27
+ # Custom/Overridden message for generated signals (used in case of Default rule update).
28
+ attr_accessor :custom_message
29
+
30
+ # Custom/Overridden name of the rule (used in case of Default rule update).
31
+ attr_accessor :custom_name
32
+
27
33
  # Additional queries to filter matched events before they are processed. This field is deprecated for log detection, signal correlation, and workload security rules.
28
34
  attr_accessor :filters
29
35
 
@@ -67,6 +73,8 @@ module DatadogAPIClient::V2
67
73
  def self.attribute_map
68
74
  {
69
75
  :'cases' => :'cases',
76
+ :'custom_message' => :'customMessage',
77
+ :'custom_name' => :'customName',
70
78
  :'filters' => :'filters',
71
79
  :'group_signals_by' => :'groupSignalsBy',
72
80
  :'has_extended_title' => :'hasExtendedTitle',
@@ -87,6 +95,8 @@ module DatadogAPIClient::V2
87
95
  def self.openapi_types
88
96
  {
89
97
  :'cases' => :'Array<SecurityMonitoringRuleCaseCreate>',
98
+ :'custom_message' => :'String',
99
+ :'custom_name' => :'String',
90
100
  :'filters' => :'Array<SecurityMonitoringFilter>',
91
101
  :'group_signals_by' => :'Array<String>',
92
102
  :'has_extended_title' => :'Boolean',
@@ -126,6 +136,14 @@ module DatadogAPIClient::V2
126
136
  end
127
137
  end
128
138
 
139
+ if attributes.key?(:'custom_message')
140
+ self.custom_message = attributes[:'custom_message']
141
+ end
142
+
143
+ if attributes.key?(:'custom_name')
144
+ self.custom_name = attributes[:'custom_name']
145
+ end
146
+
129
147
  if attributes.key?(:'filters')
130
148
  if (value = attributes[:'filters']).is_a?(Array)
131
149
  self.filters = value
@@ -287,6 +305,8 @@ module DatadogAPIClient::V2
287
305
  return true if self.equal?(o)
288
306
  self.class == o.class &&
289
307
  cases == o.cases &&
308
+ custom_message == o.custom_message &&
309
+ custom_name == o.custom_name &&
290
310
  filters == o.filters &&
291
311
  group_signals_by == o.group_signals_by &&
292
312
  has_extended_title == o.has_extended_title &&
@@ -306,7 +326,7 @@ module DatadogAPIClient::V2
306
326
  # @return [Integer] Hash code
307
327
  # @!visibility private
308
328
  def hash
309
- [cases, filters, group_signals_by, has_extended_title, is_enabled, message, name, options, queries, reference_tables, tags, third_party_cases, type, additional_properties].hash
329
+ [cases, custom_message, custom_name, filters, group_signals_by, has_extended_title, is_enabled, message, name, options, queries, reference_tables, tags, third_party_cases, type, additional_properties].hash
310
330
  end
311
331
  end
312
332
  end
@@ -24,6 +24,9 @@ module DatadogAPIClient::V2
24
24
  # The aggregation type.
25
25
  attr_accessor :aggregation
26
26
 
27
+ # Query extension to append to the logs query.
28
+ attr_accessor :custom_query_extension
29
+
27
30
  # Source of events, either logs, audit trail, or Datadog events.
28
31
  attr_accessor :data_source
29
32
 
@@ -56,6 +59,7 @@ module DatadogAPIClient::V2
56
59
  def self.attribute_map
57
60
  {
58
61
  :'aggregation' => :'aggregation',
62
+ :'custom_query_extension' => :'customQueryExtension',
59
63
  :'data_source' => :'dataSource',
60
64
  :'distinct_fields' => :'distinctFields',
61
65
  :'group_by_fields' => :'groupByFields',
@@ -72,6 +76,7 @@ module DatadogAPIClient::V2
72
76
  def self.openapi_types
73
77
  {
74
78
  :'aggregation' => :'SecurityMonitoringRuleQueryAggregation',
79
+ :'custom_query_extension' => :'String',
75
80
  :'data_source' => :'SecurityMonitoringStandardDataSource',
76
81
  :'distinct_fields' => :'Array<String>',
77
82
  :'group_by_fields' => :'Array<String>',
@@ -105,6 +110,10 @@ module DatadogAPIClient::V2
105
110
  self.aggregation = attributes[:'aggregation']
106
111
  end
107
112
 
113
+ if attributes.key?(:'custom_query_extension')
114
+ self.custom_query_extension = attributes[:'custom_query_extension']
115
+ end
116
+
108
117
  if attributes.key?(:'data_source')
109
118
  self.data_source = attributes[:'data_source']
110
119
  end
@@ -171,6 +180,7 @@ module DatadogAPIClient::V2
171
180
  return true if self.equal?(o)
172
181
  self.class == o.class &&
173
182
  aggregation == o.aggregation &&
183
+ custom_query_extension == o.custom_query_extension &&
174
184
  data_source == o.data_source &&
175
185
  distinct_fields == o.distinct_fields &&
176
186
  group_by_fields == o.group_by_fields &&
@@ -186,7 +196,7 @@ module DatadogAPIClient::V2
186
196
  # @return [Integer] Hash code
187
197
  # @!visibility private
188
198
  def hash
189
- [aggregation, data_source, distinct_fields, group_by_fields, has_optional_group_by_fields, metric, metrics, name, query, additional_properties].hash
199
+ [aggregation, custom_query_extension, data_source, distinct_fields, group_by_fields, has_optional_group_by_fields, metric, metrics, name, query, additional_properties].hash
190
200
  end
191
201
  end
192
202
  end
@@ -33,6 +33,12 @@ module DatadogAPIClient::V2
33
33
  # User ID of the user who created the rule.
34
34
  attr_accessor :creation_author_id
35
35
 
36
+ # Custom/Overridden message for generated signals (used in case of Default rule update).
37
+ attr_accessor :custom_message
38
+
39
+ # Custom/Overridden name of the rule (used in case of Default rule update).
40
+ attr_accessor :custom_name
41
+
36
42
  # Default Tags for default rules (included in tags)
37
43
  attr_accessor :default_tags
38
44
 
@@ -103,6 +109,8 @@ module DatadogAPIClient::V2
103
109
  :'compliance_signal_options' => :'complianceSignalOptions',
104
110
  :'created_at' => :'createdAt',
105
111
  :'creation_author_id' => :'creationAuthorId',
112
+ :'custom_message' => :'customMessage',
113
+ :'custom_name' => :'customName',
106
114
  :'default_tags' => :'defaultTags',
107
115
  :'deprecation_date' => :'deprecationDate',
108
116
  :'filters' => :'filters',
@@ -134,6 +142,8 @@ module DatadogAPIClient::V2
134
142
  :'compliance_signal_options' => :'CloudConfigurationRuleComplianceSignalOptions',
135
143
  :'created_at' => :'Integer',
136
144
  :'creation_author_id' => :'Integer',
145
+ :'custom_message' => :'String',
146
+ :'custom_name' => :'String',
137
147
  :'default_tags' => :'Array<String>',
138
148
  :'deprecation_date' => :'Integer',
139
149
  :'filters' => :'Array<SecurityMonitoringFilter>',
@@ -193,6 +203,14 @@ module DatadogAPIClient::V2
193
203
  self.creation_author_id = attributes[:'creation_author_id']
194
204
  end
195
205
 
206
+ if attributes.key?(:'custom_message')
207
+ self.custom_message = attributes[:'custom_message']
208
+ end
209
+
210
+ if attributes.key?(:'custom_name')
211
+ self.custom_name = attributes[:'custom_name']
212
+ end
213
+
196
214
  if attributes.key?(:'default_tags')
197
215
  if (value = attributes[:'default_tags']).is_a?(Array)
198
216
  self.default_tags = value
@@ -318,6 +336,8 @@ module DatadogAPIClient::V2
318
336
  compliance_signal_options == o.compliance_signal_options &&
319
337
  created_at == o.created_at &&
320
338
  creation_author_id == o.creation_author_id &&
339
+ custom_message == o.custom_message &&
340
+ custom_name == o.custom_name &&
321
341
  default_tags == o.default_tags &&
322
342
  deprecation_date == o.deprecation_date &&
323
343
  filters == o.filters &&
@@ -345,7 +365,7 @@ module DatadogAPIClient::V2
345
365
  # @return [Integer] Hash code
346
366
  # @!visibility private
347
367
  def hash
348
- [cases, compliance_signal_options, created_at, creation_author_id, default_tags, deprecation_date, filters, group_signals_by, has_extended_title, id, is_default, is_deleted, is_enabled, message, name, options, queries, reference_tables, tags, third_party_cases, type, update_author_id, updated_at, version, additional_properties].hash
368
+ [cases, compliance_signal_options, created_at, creation_author_id, custom_message, custom_name, default_tags, deprecation_date, filters, group_signals_by, has_extended_title, id, is_default, is_deleted, is_enabled, message, name, options, queries, reference_tables, tags, third_party_cases, type, update_author_id, updated_at, version, additional_properties].hash
349
369
  end
350
370
  end
351
371
  end
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
21
21
  class SecurityMonitoringThirdPartyRuleCase
22
22
  include BaseGenericModel
23
23
 
24
+ # Severity of the Security Signal.
25
+ attr_accessor :custom_status
26
+
24
27
  # Name of the case.
25
28
  attr_accessor :name
26
29
 
@@ -39,6 +42,7 @@ module DatadogAPIClient::V2
39
42
  # @!visibility private
40
43
  def self.attribute_map
41
44
  {
45
+ :'custom_status' => :'customStatus',
42
46
  :'name' => :'name',
43
47
  :'notifications' => :'notifications',
44
48
  :'query' => :'query',
@@ -50,6 +54,7 @@ module DatadogAPIClient::V2
50
54
  # @!visibility private
51
55
  def self.openapi_types
52
56
  {
57
+ :'custom_status' => :'SecurityMonitoringRuleSeverity',
53
58
  :'name' => :'String',
54
59
  :'notifications' => :'Array<String>',
55
60
  :'query' => :'String',
@@ -75,6 +80,10 @@ module DatadogAPIClient::V2
75
80
  end
76
81
  }
77
82
 
83
+ if attributes.key?(:'custom_status')
84
+ self.custom_status = attributes[:'custom_status']
85
+ end
86
+
78
87
  if attributes.key?(:'name')
79
88
  self.name = attributes[:'name']
80
89
  end
@@ -120,6 +129,7 @@ module DatadogAPIClient::V2
120
129
  def ==(o)
121
130
  return true if self.equal?(o)
122
131
  self.class == o.class &&
132
+ custom_status == o.custom_status &&
123
133
  name == o.name &&
124
134
  notifications == o.notifications &&
125
135
  query == o.query &&
@@ -131,7 +141,7 @@ module DatadogAPIClient::V2
131
141
  # @return [Integer] Hash code
132
142
  # @!visibility private
133
143
  def hash
134
- [name, notifications, query, status, additional_properties].hash
144
+ [custom_status, name, notifications, query, status, additional_properties].hash
135
145
  end
136
146
  end
137
147
  end