datadog_api_client 2.34.0 → 2.35.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 (80) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +59 -3
  4. data/.generator/schemas/v2/openapi.yaml +738 -69
  5. data/.generator/src/generator/formatter.py +2 -2
  6. data/.generator/src/generator/openapi.py +1 -1
  7. data/.github/workflows/release.yml +1 -1
  8. data/CHANGELOG.md +19 -0
  9. data/Gemfile +1 -0
  10. data/examples/v1/monitors/CreateMonitor_1539578087.rb +1 -0
  11. data/examples/v1/monitors/CreateMonitor_440013737.rb +1 -0
  12. data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +142 -0
  13. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +32 -0
  14. data/examples/v2/dora-metrics/CreateDORADeployment.rb +0 -3
  15. data/examples/v2/dora-metrics/CreateDORAFailure.rb +30 -0
  16. data/examples/v2/dora-metrics/CreateDORAIncident.rb +11 -9
  17. data/examples/v2/dora-metrics/CreateDORAIncident_1768887482.rb +25 -0
  18. data/examples/v2/on-call/GetTeamOnCallUsers.rb +11 -0
  19. data/examples/v2/security-monitoring/ListFindings_2932019633.rb +11 -0
  20. data/examples/v2/software-catalog/DeleteCatalogKind.rb +5 -0
  21. data/examples/v2/software-catalog/ListCatalogKind.rb +5 -0
  22. data/examples/v2/software-catalog/ListCatalogKind_3806205775.rb +5 -0
  23. data/examples/v2/software-catalog/UpsertCatalogKind.rb +9 -0
  24. data/lib/datadog_api_client/configuration.rb +0 -2
  25. data/lib/datadog_api_client/inflector.rb +34 -6
  26. data/lib/datadog_api_client/v1/api/snapshots_api.rb +2 -1
  27. data/lib/datadog_api_client/v1/models/monitor.rb +17 -1
  28. data/lib/datadog_api_client/v1/models/monitor_draft_status.rb +32 -0
  29. data/lib/datadog_api_client/v1/models/monitor_options.rb +1 -1
  30. data/lib/datadog_api_client/v1/models/monitor_update_request.rb +17 -1
  31. data/lib/datadog_api_client/v1/models/synthetics_api_test_step_subtype.rb +6 -0
  32. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +32 -2
  33. data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +79 -15
  34. data/lib/datadog_api_client/v2/api/on_call_api.rb +67 -0
  35. data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +5 -3
  36. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +13 -0
  37. data/lib/datadog_api_client/v2/api/software_catalog_api.rb +221 -0
  38. data/lib/datadog_api_client/v2/models/action_query_spec_inputs.rb +1 -1
  39. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +23 -3
  40. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_metadata.rb +125 -0
  41. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb +165 -0
  42. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +37 -1
  43. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +57 -1
  44. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb +57 -1
  45. data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +21 -1
  46. data/lib/datadog_api_client/v2/models/{dora_incident_request.rb → dora_failure_request.rb} +4 -4
  47. data/lib/datadog_api_client/v2/models/{dora_incident_request_attributes.rb → dora_failure_request_attributes.rb} +31 -11
  48. data/lib/datadog_api_client/v2/models/{dora_incident_request_data.rb → dora_failure_request_data.rb} +4 -4
  49. data/lib/datadog_api_client/v2/models/{dora_incident_response.rb → dora_failure_response.rb} +5 -5
  50. data/lib/datadog_api_client/v2/models/{dora_incident_response_data.rb → dora_failure_response_data.rb} +6 -6
  51. data/lib/datadog_api_client/v2/models/{dora_incident_type.rb → dora_failure_type.rb} +3 -3
  52. data/lib/datadog_api_client/v2/models/escalation.rb +143 -0
  53. data/lib/datadog_api_client/v2/models/escalation_relationships.rb +105 -0
  54. data/lib/datadog_api_client/v2/models/escalation_relationships_responders.rb +107 -0
  55. data/lib/datadog_api_client/v2/models/escalation_relationships_responders_data_items.rb +144 -0
  56. data/lib/datadog_api_client/v2/models/escalation_relationships_responders_data_items_type.rb +26 -0
  57. data/lib/datadog_api_client/v2/models/escalation_type.rb +26 -0
  58. data/lib/datadog_api_client/v2/models/finding_attributes.rb +31 -1
  59. data/lib/datadog_api_client/v2/models/kind_attributes.rb +143 -0
  60. data/lib/datadog_api_client/v2/models/kind_data.rb +153 -0
  61. data/lib/datadog_api_client/v2/models/kind_metadata.rb +115 -0
  62. data/lib/datadog_api_client/v2/models/kind_obj.rb +143 -0
  63. data/lib/datadog_api_client/v2/models/kind_response_meta.rb +105 -0
  64. data/lib/datadog_api_client/v2/models/list_kind_catalog_response.rb +117 -0
  65. data/lib/datadog_api_client/v2/models/team_on_call_responders.rb +117 -0
  66. data/lib/datadog_api_client/v2/models/team_on_call_responders_data.rb +143 -0
  67. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships.rb +115 -0
  68. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations.rb +107 -0
  69. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations_data_items.rb +144 -0
  70. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations_data_items_type.rb +26 -0
  71. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders.rb +107 -0
  72. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders_data_items.rb +144 -0
  73. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders_data_items_type.rb +26 -0
  74. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_type.rb +26 -0
  75. data/lib/datadog_api_client/v2/models/team_on_call_responders_included.rb +63 -0
  76. data/lib/datadog_api_client/v2/models/upsert_catalog_kind_request.rb +63 -0
  77. data/lib/datadog_api_client/v2/models/upsert_catalog_kind_response.rb +117 -0
  78. data/lib/datadog_api_client/version.rb +1 -1
  79. data/repository.datadog.yaml +8 -0
  80. metadata +44 -7
@@ -27,6 +27,9 @@ module DatadogAPIClient::V2
27
27
  # The version of the Agent
28
28
  attr_accessor :agent_constraint
29
29
 
30
+ # The blocking policies that the rule belongs to
31
+ attr_accessor :blocking
32
+
30
33
  # The category of the Agent rule
31
34
  attr_accessor :category
32
35
 
@@ -45,6 +48,9 @@ module DatadogAPIClient::V2
45
48
  # The description of the Agent rule
46
49
  attr_accessor :description
47
50
 
51
+ # The disabled policies that the rule belongs to
52
+ attr_accessor :disabled
53
+
48
54
  # Whether the Agent rule is enabled
49
55
  attr_accessor :enabled
50
56
 
@@ -54,6 +60,9 @@ module DatadogAPIClient::V2
54
60
  # The platforms the Agent rule is supported on
55
61
  attr_accessor :filters
56
62
 
63
+ # The monitoring policies that the rule belongs to
64
+ attr_accessor :monitoring
65
+
57
66
  # The name of the Agent rule
58
67
  attr_accessor :name
59
68
 
@@ -83,15 +92,18 @@ module DatadogAPIClient::V2
83
92
  {
84
93
  :'actions' => :'actions',
85
94
  :'agent_constraint' => :'agentConstraint',
95
+ :'blocking' => :'blocking',
86
96
  :'category' => :'category',
87
97
  :'creation_author_uu_id' => :'creationAuthorUuId',
88
98
  :'creation_date' => :'creationDate',
89
99
  :'creator' => :'creator',
90
100
  :'default_rule' => :'defaultRule',
91
101
  :'description' => :'description',
102
+ :'disabled' => :'disabled',
92
103
  :'enabled' => :'enabled',
93
104
  :'expression' => :'expression',
94
105
  :'filters' => :'filters',
106
+ :'monitoring' => :'monitoring',
95
107
  :'name' => :'name',
96
108
  :'product_tags' => :'product_tags',
97
109
  :'update_author_uu_id' => :'updateAuthorUuId',
@@ -108,15 +120,18 @@ module DatadogAPIClient::V2
108
120
  {
109
121
  :'actions' => :'Array<CloudWorkloadSecurityAgentRuleAction>',
110
122
  :'agent_constraint' => :'String',
123
+ :'blocking' => :'Array<String>',
111
124
  :'category' => :'String',
112
125
  :'creation_author_uu_id' => :'String',
113
126
  :'creation_date' => :'Integer',
114
127
  :'creator' => :'CloudWorkloadSecurityAgentRuleCreatorAttributes',
115
128
  :'default_rule' => :'Boolean',
116
129
  :'description' => :'String',
130
+ :'disabled' => :'Array<String>',
117
131
  :'enabled' => :'Boolean',
118
132
  :'expression' => :'String',
119
133
  :'filters' => :'Array<String>',
134
+ :'monitoring' => :'Array<String>',
120
135
  :'name' => :'String',
121
136
  :'product_tags' => :'Array<String>',
122
137
  :'update_author_uu_id' => :'String',
@@ -163,6 +178,12 @@ module DatadogAPIClient::V2
163
178
  self.agent_constraint = attributes[:'agent_constraint']
164
179
  end
165
180
 
181
+ if attributes.key?(:'blocking')
182
+ if (value = attributes[:'blocking']).is_a?(Array)
183
+ self.blocking = value
184
+ end
185
+ end
186
+
166
187
  if attributes.key?(:'category')
167
188
  self.category = attributes[:'category']
168
189
  end
@@ -187,6 +208,12 @@ module DatadogAPIClient::V2
187
208
  self.description = attributes[:'description']
188
209
  end
189
210
 
211
+ if attributes.key?(:'disabled')
212
+ if (value = attributes[:'disabled']).is_a?(Array)
213
+ self.disabled = value
214
+ end
215
+ end
216
+
190
217
  if attributes.key?(:'enabled')
191
218
  self.enabled = attributes[:'enabled']
192
219
  end
@@ -201,6 +228,12 @@ module DatadogAPIClient::V2
201
228
  end
202
229
  end
203
230
 
231
+ if attributes.key?(:'monitoring')
232
+ if (value = attributes[:'monitoring']).is_a?(Array)
233
+ self.monitoring = value
234
+ end
235
+ end
236
+
204
237
  if attributes.key?(:'name')
205
238
  self.name = attributes[:'name']
206
239
  end
@@ -260,15 +293,18 @@ module DatadogAPIClient::V2
260
293
  self.class == o.class &&
261
294
  actions == o.actions &&
262
295
  agent_constraint == o.agent_constraint &&
296
+ blocking == o.blocking &&
263
297
  category == o.category &&
264
298
  creation_author_uu_id == o.creation_author_uu_id &&
265
299
  creation_date == o.creation_date &&
266
300
  creator == o.creator &&
267
301
  default_rule == o.default_rule &&
268
302
  description == o.description &&
303
+ disabled == o.disabled &&
269
304
  enabled == o.enabled &&
270
305
  expression == o.expression &&
271
306
  filters == o.filters &&
307
+ monitoring == o.monitoring &&
272
308
  name == o.name &&
273
309
  product_tags == o.product_tags &&
274
310
  update_author_uu_id == o.update_author_uu_id &&
@@ -283,7 +319,7 @@ module DatadogAPIClient::V2
283
319
  # @return [Integer] Hash code
284
320
  # @!visibility private
285
321
  def hash
286
- [actions, agent_constraint, category, creation_author_uu_id, creation_date, creator, default_rule, description, enabled, expression, filters, name, product_tags, update_author_uu_id, update_date, updated_at, updater, version, additional_properties].hash
322
+ [actions, agent_constraint, blocking, category, creation_author_uu_id, creation_date, creator, default_rule, description, disabled, enabled, expression, filters, monitoring, name, product_tags, update_author_uu_id, update_date, updated_at, updater, version, additional_properties].hash
287
323
  end
288
324
  end
289
325
  end
@@ -21,9 +21,18 @@ module DatadogAPIClient::V2
21
21
  class CloudWorkloadSecurityAgentRuleCreateAttributes
22
22
  include BaseGenericModel
23
23
 
24
+ # The array of actions the rule can perform if triggered
25
+ attr_accessor :actions
26
+
27
+ # The blocking policies that the rule belongs to
28
+ attr_accessor :blocking
29
+
24
30
  # The description of the Agent rule.
25
31
  attr_accessor :description
26
32
 
33
+ # The disabled policies that the rule belongs to
34
+ attr_accessor :disabled
35
+
27
36
  # Whether the Agent rule is enabled
28
37
  attr_accessor :enabled
29
38
 
@@ -33,6 +42,9 @@ module DatadogAPIClient::V2
33
42
  # The platforms the Agent rule is supported on
34
43
  attr_accessor :filters
35
44
 
45
+ # The monitoring policies that the rule belongs to
46
+ attr_accessor :monitoring
47
+
36
48
  # The name of the Agent rule.
37
49
  attr_reader :name
38
50
 
@@ -48,10 +60,14 @@ module DatadogAPIClient::V2
48
60
  # @!visibility private
49
61
  def self.attribute_map
50
62
  {
63
+ :'actions' => :'actions',
64
+ :'blocking' => :'blocking',
51
65
  :'description' => :'description',
66
+ :'disabled' => :'disabled',
52
67
  :'enabled' => :'enabled',
53
68
  :'expression' => :'expression',
54
69
  :'filters' => :'filters',
70
+ :'monitoring' => :'monitoring',
55
71
  :'name' => :'name',
56
72
  :'policy_id' => :'policy_id',
57
73
  :'product_tags' => :'product_tags'
@@ -62,16 +78,28 @@ module DatadogAPIClient::V2
62
78
  # @!visibility private
63
79
  def self.openapi_types
64
80
  {
81
+ :'actions' => :'Array<CloudWorkloadSecurityAgentRuleAction>',
82
+ :'blocking' => :'Array<String>',
65
83
  :'description' => :'String',
84
+ :'disabled' => :'Array<String>',
66
85
  :'enabled' => :'Boolean',
67
86
  :'expression' => :'String',
68
87
  :'filters' => :'Array<String>',
88
+ :'monitoring' => :'Array<String>',
69
89
  :'name' => :'String',
70
90
  :'policy_id' => :'String',
71
91
  :'product_tags' => :'Array<String>'
72
92
  }
73
93
  end
74
94
 
95
+ # List of attributes with nullable: true
96
+ # @!visibility private
97
+ def self.openapi_nullable
98
+ Set.new([
99
+ :'actions',
100
+ ])
101
+ end
102
+
75
103
  # Initializes the object
76
104
  # @param attributes [Hash] Model attributes in the form of hash
77
105
  # @!visibility private
@@ -90,10 +118,28 @@ module DatadogAPIClient::V2
90
118
  end
91
119
  }
92
120
 
121
+ if attributes.key?(:'actions')
122
+ if (value = attributes[:'actions']).is_a?(Array)
123
+ self.actions = value
124
+ end
125
+ end
126
+
127
+ if attributes.key?(:'blocking')
128
+ if (value = attributes[:'blocking']).is_a?(Array)
129
+ self.blocking = value
130
+ end
131
+ end
132
+
93
133
  if attributes.key?(:'description')
94
134
  self.description = attributes[:'description']
95
135
  end
96
136
 
137
+ if attributes.key?(:'disabled')
138
+ if (value = attributes[:'disabled']).is_a?(Array)
139
+ self.disabled = value
140
+ end
141
+ end
142
+
97
143
  if attributes.key?(:'enabled')
98
144
  self.enabled = attributes[:'enabled']
99
145
  end
@@ -108,6 +154,12 @@ module DatadogAPIClient::V2
108
154
  end
109
155
  end
110
156
 
157
+ if attributes.key?(:'monitoring')
158
+ if (value = attributes[:'monitoring']).is_a?(Array)
159
+ self.monitoring = value
160
+ end
161
+ end
162
+
111
163
  if attributes.key?(:'name')
112
164
  self.name = attributes[:'name']
113
165
  end
@@ -178,10 +230,14 @@ module DatadogAPIClient::V2
178
230
  def ==(o)
179
231
  return true if self.equal?(o)
180
232
  self.class == o.class &&
233
+ actions == o.actions &&
234
+ blocking == o.blocking &&
181
235
  description == o.description &&
236
+ disabled == o.disabled &&
182
237
  enabled == o.enabled &&
183
238
  expression == o.expression &&
184
239
  filters == o.filters &&
240
+ monitoring == o.monitoring &&
185
241
  name == o.name &&
186
242
  policy_id == o.policy_id &&
187
243
  product_tags == o.product_tags &&
@@ -192,7 +248,7 @@ module DatadogAPIClient::V2
192
248
  # @return [Integer] Hash code
193
249
  # @!visibility private
194
250
  def hash
195
- [description, enabled, expression, filters, name, policy_id, product_tags, additional_properties].hash
251
+ [actions, blocking, description, disabled, enabled, expression, filters, monitoring, name, policy_id, product_tags, additional_properties].hash
196
252
  end
197
253
  end
198
254
  end
@@ -21,15 +21,27 @@ module DatadogAPIClient::V2
21
21
  class CloudWorkloadSecurityAgentRuleUpdateAttributes
22
22
  include BaseGenericModel
23
23
 
24
+ # The array of actions the rule can perform if triggered
25
+ attr_accessor :actions
26
+
27
+ # The blocking policies that the rule belongs to
28
+ attr_accessor :blocking
29
+
24
30
  # The description of the Agent rule
25
31
  attr_accessor :description
26
32
 
33
+ # The disabled policies that the rule belongs to
34
+ attr_accessor :disabled
35
+
27
36
  # Whether the Agent rule is enabled
28
37
  attr_accessor :enabled
29
38
 
30
39
  # The SECL expression of the Agent rule
31
40
  attr_accessor :expression
32
41
 
42
+ # The monitoring policies that the rule belongs to
43
+ attr_accessor :monitoring
44
+
33
45
  # The ID of the policy where the Agent rule is saved
34
46
  attr_accessor :policy_id
35
47
 
@@ -42,9 +54,13 @@ module DatadogAPIClient::V2
42
54
  # @!visibility private
43
55
  def self.attribute_map
44
56
  {
57
+ :'actions' => :'actions',
58
+ :'blocking' => :'blocking',
45
59
  :'description' => :'description',
60
+ :'disabled' => :'disabled',
46
61
  :'enabled' => :'enabled',
47
62
  :'expression' => :'expression',
63
+ :'monitoring' => :'monitoring',
48
64
  :'policy_id' => :'policy_id',
49
65
  :'product_tags' => :'product_tags'
50
66
  }
@@ -54,14 +70,26 @@ module DatadogAPIClient::V2
54
70
  # @!visibility private
55
71
  def self.openapi_types
56
72
  {
73
+ :'actions' => :'Array<CloudWorkloadSecurityAgentRuleAction>',
74
+ :'blocking' => :'Array<String>',
57
75
  :'description' => :'String',
76
+ :'disabled' => :'Array<String>',
58
77
  :'enabled' => :'Boolean',
59
78
  :'expression' => :'String',
79
+ :'monitoring' => :'Array<String>',
60
80
  :'policy_id' => :'String',
61
81
  :'product_tags' => :'Array<String>'
62
82
  }
63
83
  end
64
84
 
85
+ # List of attributes with nullable: true
86
+ # @!visibility private
87
+ def self.openapi_nullable
88
+ Set.new([
89
+ :'actions',
90
+ ])
91
+ end
92
+
65
93
  # Initializes the object
66
94
  # @param attributes [Hash] Model attributes in the form of hash
67
95
  # @!visibility private
@@ -80,10 +108,28 @@ module DatadogAPIClient::V2
80
108
  end
81
109
  }
82
110
 
111
+ if attributes.key?(:'actions')
112
+ if (value = attributes[:'actions']).is_a?(Array)
113
+ self.actions = value
114
+ end
115
+ end
116
+
117
+ if attributes.key?(:'blocking')
118
+ if (value = attributes[:'blocking']).is_a?(Array)
119
+ self.blocking = value
120
+ end
121
+ end
122
+
83
123
  if attributes.key?(:'description')
84
124
  self.description = attributes[:'description']
85
125
  end
86
126
 
127
+ if attributes.key?(:'disabled')
128
+ if (value = attributes[:'disabled']).is_a?(Array)
129
+ self.disabled = value
130
+ end
131
+ end
132
+
87
133
  if attributes.key?(:'enabled')
88
134
  self.enabled = attributes[:'enabled']
89
135
  end
@@ -92,6 +138,12 @@ module DatadogAPIClient::V2
92
138
  self.expression = attributes[:'expression']
93
139
  end
94
140
 
141
+ if attributes.key?(:'monitoring')
142
+ if (value = attributes[:'monitoring']).is_a?(Array)
143
+ self.monitoring = value
144
+ end
145
+ end
146
+
95
147
  if attributes.key?(:'policy_id')
96
148
  self.policy_id = attributes[:'policy_id']
97
149
  end
@@ -129,9 +181,13 @@ module DatadogAPIClient::V2
129
181
  def ==(o)
130
182
  return true if self.equal?(o)
131
183
  self.class == o.class &&
184
+ actions == o.actions &&
185
+ blocking == o.blocking &&
132
186
  description == o.description &&
187
+ disabled == o.disabled &&
133
188
  enabled == o.enabled &&
134
189
  expression == o.expression &&
190
+ monitoring == o.monitoring &&
135
191
  policy_id == o.policy_id &&
136
192
  product_tags == o.product_tags &&
137
193
  additional_properties == o.additional_properties
@@ -141,7 +197,7 @@ module DatadogAPIClient::V2
141
197
  # @return [Integer] Hash code
142
198
  # @!visibility private
143
199
  def hash
144
- [description, enabled, expression, policy_id, product_tags, additional_properties].hash
200
+ [actions, blocking, description, disabled, enabled, expression, monitoring, policy_id, product_tags, additional_properties].hash
145
201
  end
146
202
  end
147
203
  end
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
21
21
  class DORADeploymentRequestAttributes
22
22
  include BaseGenericModel
23
23
 
24
+ # A list of user-defined tags. The tags must follow the `key:value` pattern. Up to 100 may be added per event.
25
+ attr_accessor :custom_tags
26
+
24
27
  # Environment name to where the service was deployed.
25
28
  attr_accessor :env
26
29
 
@@ -51,6 +54,7 @@ module DatadogAPIClient::V2
51
54
  # @!visibility private
52
55
  def self.attribute_map
53
56
  {
57
+ :'custom_tags' => :'custom_tags',
54
58
  :'env' => :'env',
55
59
  :'finished_at' => :'finished_at',
56
60
  :'git' => :'git',
@@ -66,6 +70,7 @@ module DatadogAPIClient::V2
66
70
  # @!visibility private
67
71
  def self.openapi_types
68
72
  {
73
+ :'custom_tags' => :'Array<String>',
69
74
  :'env' => :'String',
70
75
  :'finished_at' => :'Integer',
71
76
  :'git' => :'DORAGitInfo',
@@ -77,6 +82,14 @@ module DatadogAPIClient::V2
77
82
  }
78
83
  end
79
84
 
85
+ # List of attributes with nullable: true
86
+ # @!visibility private
87
+ def self.openapi_nullable
88
+ Set.new([
89
+ :'custom_tags',
90
+ ])
91
+ end
92
+
80
93
  # Initializes the object
81
94
  # @param attributes [Hash] Model attributes in the form of hash
82
95
  # @!visibility private
@@ -95,6 +108,12 @@ module DatadogAPIClient::V2
95
108
  end
96
109
  }
97
110
 
111
+ if attributes.key?(:'custom_tags')
112
+ if (value = attributes[:'custom_tags']).is_a?(Array)
113
+ self.custom_tags = value
114
+ end
115
+ end
116
+
98
117
  if attributes.key?(:'env')
99
118
  self.env = attributes[:'env']
100
119
  end
@@ -194,6 +213,7 @@ module DatadogAPIClient::V2
194
213
  def ==(o)
195
214
  return true if self.equal?(o)
196
215
  self.class == o.class &&
216
+ custom_tags == o.custom_tags &&
197
217
  env == o.env &&
198
218
  finished_at == o.finished_at &&
199
219
  git == o.git &&
@@ -209,7 +229,7 @@ module DatadogAPIClient::V2
209
229
  # @return [Integer] Hash code
210
230
  # @!visibility private
211
231
  def hash
212
- [env, finished_at, git, id, service, started_at, team, version, additional_properties].hash
232
+ [custom_tags, env, finished_at, git, id, service, started_at, team, version, additional_properties].hash
213
233
  end
214
234
  end
215
235
  end
@@ -17,8 +17,8 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V2
20
- # Request to create a DORA incident event.
21
- class DORAIncidentRequest
20
+ # Request to create a DORA failure event.
21
+ class DORAFailureRequest
22
22
  include BaseGenericModel
23
23
 
24
24
  # The JSON:API data.
@@ -38,7 +38,7 @@ module DatadogAPIClient::V2
38
38
  # @!visibility private
39
39
  def self.openapi_types
40
40
  {
41
- :'data' => :'DORAIncidentRequestData'
41
+ :'data' => :'DORAFailureRequestData'
42
42
  }
43
43
  end
44
44
 
@@ -47,7 +47,7 @@ module DatadogAPIClient::V2
47
47
  # @!visibility private
48
48
  def initialize(attributes = {})
49
49
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAIncidentRequest` initialize method"
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAFailureRequest` initialize method"
51
51
  end
52
52
 
53
53
  self.additional_properties = {}
@@ -17,32 +17,35 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V2
20
- # Attributes to create a DORA incident event.
21
- class DORAIncidentRequestAttributes
20
+ # Attributes to create a DORA failure event.
21
+ class DORAFailureRequestAttributes
22
22
  include BaseGenericModel
23
23
 
24
- # Environment name that was impacted by the incident.
24
+ # A list of user-defined tags. The tags must follow the `key:value` pattern. Up to 100 may be added per event.
25
+ attr_accessor :custom_tags
26
+
27
+ # Environment name that was impacted by the failure.
25
28
  attr_accessor :env
26
29
 
27
- # Unix timestamp when the incident finished. It must be in nanoseconds, milliseconds, or seconds, and it should not be older than 1 hour.
30
+ # Unix timestamp when the failure finished. It must be in nanoseconds, milliseconds, or seconds, and it should not be older than 1 hour.
28
31
  attr_accessor :finished_at
29
32
 
30
33
  # Git info for DORA Metrics events.
31
34
  attr_accessor :git
32
35
 
33
- # Incident ID. Must have at least 16 characters. Required to update a previously sent incident.
36
+ # Failure ID. Must have at least 16 characters. Required to update a previously sent failure.
34
37
  attr_accessor :id
35
38
 
36
- # Incident name.
39
+ # Failure name.
37
40
  attr_accessor :name
38
41
 
39
- # Service names impacted by the incident. If possible, use names registered in the Service Catalog. Required when the team field is not provided.
42
+ # Service names impacted by the failure. If possible, use names registered in the Service Catalog. Required when the team field is not provided.
40
43
  attr_accessor :services
41
44
 
42
- # Incident severity.
45
+ # Failure severity.
43
46
  attr_accessor :severity
44
47
 
45
- # Unix timestamp when the incident started. It must be in nanoseconds, milliseconds, or seconds.
48
+ # Unix timestamp when the failure started. It must be in nanoseconds, milliseconds, or seconds.
46
49
  attr_reader :started_at
47
50
 
48
51
  # Name of the team owning the services impacted. If possible, use team handles registered in Datadog. Required when the services field is not provided.
@@ -57,6 +60,7 @@ module DatadogAPIClient::V2
57
60
  # @!visibility private
58
61
  def self.attribute_map
59
62
  {
63
+ :'custom_tags' => :'custom_tags',
60
64
  :'env' => :'env',
61
65
  :'finished_at' => :'finished_at',
62
66
  :'git' => :'git',
@@ -74,6 +78,7 @@ module DatadogAPIClient::V2
74
78
  # @!visibility private
75
79
  def self.openapi_types
76
80
  {
81
+ :'custom_tags' => :'Array<String>',
77
82
  :'env' => :'String',
78
83
  :'finished_at' => :'Integer',
79
84
  :'git' => :'DORAGitInfo',
@@ -87,12 +92,20 @@ module DatadogAPIClient::V2
87
92
  }
88
93
  end
89
94
 
95
+ # List of attributes with nullable: true
96
+ # @!visibility private
97
+ def self.openapi_nullable
98
+ Set.new([
99
+ :'custom_tags',
100
+ ])
101
+ end
102
+
90
103
  # Initializes the object
91
104
  # @param attributes [Hash] Model attributes in the form of hash
92
105
  # @!visibility private
93
106
  def initialize(attributes = {})
94
107
  if (!attributes.is_a?(Hash))
95
- fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAIncidentRequestAttributes` initialize method"
108
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAFailureRequestAttributes` initialize method"
96
109
  end
97
110
 
98
111
  self.additional_properties = {}
@@ -105,6 +118,12 @@ module DatadogAPIClient::V2
105
118
  end
106
119
  }
107
120
 
121
+ if attributes.key?(:'custom_tags')
122
+ if (value = attributes[:'custom_tags']).is_a?(Array)
123
+ self.custom_tags = value
124
+ end
125
+ end
126
+
108
127
  if attributes.key?(:'env')
109
128
  self.env = attributes[:'env']
110
129
  end
@@ -192,6 +211,7 @@ module DatadogAPIClient::V2
192
211
  def ==(o)
193
212
  return true if self.equal?(o)
194
213
  self.class == o.class &&
214
+ custom_tags == o.custom_tags &&
195
215
  env == o.env &&
196
216
  finished_at == o.finished_at &&
197
217
  git == o.git &&
@@ -209,7 +229,7 @@ module DatadogAPIClient::V2
209
229
  # @return [Integer] Hash code
210
230
  # @!visibility private
211
231
  def hash
212
- [env, finished_at, git, id, name, services, severity, started_at, team, version, additional_properties].hash
232
+ [custom_tags, env, finished_at, git, id, name, services, severity, started_at, team, version, additional_properties].hash
213
233
  end
214
234
  end
215
235
  end
@@ -18,10 +18,10 @@ require 'time'
18
18
 
19
19
  module DatadogAPIClient::V2
20
20
  # The JSON:API data.
21
- class DORAIncidentRequestData
21
+ class DORAFailureRequestData
22
22
  include BaseGenericModel
23
23
 
24
- # Attributes to create a DORA incident event.
24
+ # Attributes to create a DORA failure event.
25
25
  attr_reader :attributes
26
26
 
27
27
  attr_accessor :additional_properties
@@ -38,7 +38,7 @@ module DatadogAPIClient::V2
38
38
  # @!visibility private
39
39
  def self.openapi_types
40
40
  {
41
- :'attributes' => :'DORAIncidentRequestAttributes'
41
+ :'attributes' => :'DORAFailureRequestAttributes'
42
42
  }
43
43
  end
44
44
 
@@ -47,7 +47,7 @@ module DatadogAPIClient::V2
47
47
  # @!visibility private
48
48
  def initialize(attributes = {})
49
49
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAIncidentRequestData` initialize method"
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAFailureRequestData` initialize method"
51
51
  end
52
52
 
53
53
  self.additional_properties = {}
@@ -17,11 +17,11 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V2
20
- # Response after receiving a DORA incident event.
21
- class DORAIncidentResponse
20
+ # Response after receiving a DORA failure event.
21
+ class DORAFailureResponse
22
22
  include BaseGenericModel
23
23
 
24
- # Response after receiving a DORA incident event.
24
+ # Response after receiving a DORA failure event.
25
25
  attr_reader :data
26
26
 
27
27
  attr_accessor :additional_properties
@@ -38,7 +38,7 @@ module DatadogAPIClient::V2
38
38
  # @!visibility private
39
39
  def self.openapi_types
40
40
  {
41
- :'data' => :'DORAIncidentResponseData'
41
+ :'data' => :'DORAFailureResponseData'
42
42
  }
43
43
  end
44
44
 
@@ -47,7 +47,7 @@ module DatadogAPIClient::V2
47
47
  # @!visibility private
48
48
  def initialize(attributes = {})
49
49
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAIncidentResponse` initialize method"
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAFailureResponse` initialize method"
51
51
  end
52
52
 
53
53
  self.additional_properties = {}