datadog_api_client 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +6 -6
  3. data/.generator/conftest.py +2 -1
  4. data/.generator/schemas/v1/openapi.yaml +284 -902
  5. data/.generator/schemas/v2/openapi.yaml +343 -672
  6. data/.generator/src/generator/formatter.py +1 -1
  7. data/.generator/src/generator/templates/example.j2 +5 -0
  8. data/.github/workflows/test.yml +1 -1
  9. data/.github/workflows/test_integration.yml +5 -0
  10. data/CHANGELOG.md +42 -0
  11. data/README.md +13 -13
  12. data/examples/v1/dashboards/CreateDashboard_1094917386.rb +37 -0
  13. data/examples/v1/dashboards/CreateDashboard_1307120899.rb +61 -0
  14. data/examples/v1/monitors/ValidateExistingMonitor.rb +1 -0
  15. data/examples/v1/monitors/ValidateMonitor.rb +1 -0
  16. data/examples/v1/monitors/ValidateMonitor_4247196452.rb +38 -0
  17. data/examples/v1/pagerduty-integration/DeletePagerDutyIntegrationService.rb +2 -2
  18. data/examples/v1/synthetics/CreateGlobalVariable.rb +1 -0
  19. data/examples/v1/synthetics/CreateGlobalVariable_1068962881.rb +23 -0
  20. data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +10 -0
  21. data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +6 -0
  22. data/examples/v1/synthetics/EditGlobalVariable.rb +1 -0
  23. data/examples/v1/synthetics/UpdateBrowserTest.rb +1 -0
  24. data/examples/v1/usage-metering/GetDailyCustomReports.rb +0 -3
  25. data/examples/v1/usage-metering/GetMonthlyCustomReports.rb +0 -3
  26. data/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.rb +0 -3
  27. data/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb +0 -3
  28. data/examples/v1/usage-metering/GetUsageAttribution.rb +0 -3
  29. data/examples/v2/audit/ListAuditLogs_1275402458.rb +8 -0
  30. data/examples/v2/audit/SearchAuditLogs_3215529662.rb +22 -0
  31. data/examples/v2/events/ListEvents_1527584014.rb +13 -0
  32. data/examples/v2/events/SearchEvents_3856995058.rb +25 -0
  33. data/examples/v2/incidents/ListIncidents_2665616954.rb +11 -0
  34. data/examples/v2/logs/ListLogsGet_738202670.rb +8 -0
  35. data/examples/v2/logs/ListLogs_3138392594.rb +25 -0
  36. data/examples/v2/metrics/SubmitMetrics_1762007427.rb +23 -0
  37. data/examples/v2/processes/ListProcesses_797840471.rb +8 -0
  38. data/examples/v2/roles/UpdateRole.rb +13 -0
  39. data/examples/v2/rum/CreateRUMApplication.rb +15 -0
  40. data/examples/v2/rum/DeleteRUMApplication.rb +8 -0
  41. data/examples/v2/rum/GetRUMApplication.rb +8 -0
  42. data/examples/v2/rum/GetRUMApplications.rb +5 -0
  43. data/examples/v2/rum/ListRUMEvents_2680821282.rb +8 -0
  44. data/examples/v2/rum/SearchRUMEvents_574690310.rb +21 -0
  45. data/examples/v2/rum/UpdateRUMApplication.rb +16 -0
  46. data/examples/v2/security-monitoring/ListSecurityMonitoringSignals_3960412991.rb +8 -0
  47. data/examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb +20 -0
  48. data/examples/v2/usage-metering/GetHourlyUsage.rb +5 -0
  49. data/lib/datadog_api_client/configuration.rb +0 -5
  50. data/lib/datadog_api_client/inflector.rb +16 -0
  51. data/lib/datadog_api_client/v1/api/metrics_api.rb +1 -1
  52. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +42 -62
  53. data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +1 -0
  54. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -0
  55. data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
  56. data/lib/datadog_api_client/v1/models/metric_content_encoding.rb +1 -0
  57. data/lib/datadog_api_client/v1/models/monitor_options.rb +28 -1
  58. data/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb +13 -1
  59. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -0
  60. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +21 -1
  61. data/lib/datadog_api_client/v1/models/on_missing_data_option.rb +33 -0
  62. data/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb +2 -1
  63. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb +155 -0
  64. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest_type.rb +26 -0
  65. data/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb +11 -12
  66. data/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb +1 -0
  67. data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +31 -1
  68. data/lib/datadog_api_client/v1/models/synthetics_test_process_status.rb +0 -1
  69. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +15 -1
  70. data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +2 -0
  71. data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +2 -0
  72. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +21 -1
  73. data/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb +11 -1
  74. data/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb +12 -1
  75. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +11 -1
  76. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +21 -1
  77. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +11 -1
  78. data/lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb +2 -0
  79. data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
  80. data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
  81. data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -1
  82. data/lib/datadog_api_client/v2/api/rum_api.rb +329 -0
  83. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +3 -3
  84. data/lib/datadog_api_client/v2/models/content_encoding.rb +1 -0
  85. data/lib/datadog_api_client/v2/models/metric_content_encoding.rb +2 -0
  86. data/lib/datadog_api_client/v2/models/role_update_data.rb +11 -1
  87. data/lib/datadog_api_client/v2/models/rum_application.rb +166 -0
  88. data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +279 -0
  89. data/lib/datadog_api_client/v2/models/rum_application_create.rb +145 -0
  90. data/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb +132 -0
  91. data/lib/datadog_api_client/v2/models/rum_application_create_request.rb +122 -0
  92. data/lib/datadog_api_client/v2/models/rum_application_create_type.rb +26 -0
  93. data/lib/datadog_api_client/v2/models/rum_application_response.rb +111 -0
  94. data/lib/datadog_api_client/v2/models/rum_application_type.rb +26 -0
  95. data/lib/datadog_api_client/v2/models/rum_application_update.rb +155 -0
  96. data/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb +121 -0
  97. data/lib/datadog_api_client/v2/models/rum_application_update_request.rb +122 -0
  98. data/lib/datadog_api_client/v2/models/rum_application_update_type.rb +26 -0
  99. data/lib/datadog_api_client/v2/models/rum_applications_response.rb +113 -0
  100. data/lib/datadog_api_client/version.rb +1 -1
  101. data/lib/datadog_api_client.rb +6 -4
  102. metadata +41 -3
  103. data/lib/datadog_api_client/v2.rb +0 -595
@@ -73,6 +73,12 @@ module DatadogAPIClient::V1
73
73
  # The estimated indexed spans usage by tag(s). This field is in private beta.
74
74
  attr_accessor :estimated_indexed_spans_usage
75
75
 
76
+ # The percentage of estimated live ingested logs usage by tag(s). This field is in private beta.
77
+ attr_accessor :estimated_ingested_logs_percentage
78
+
79
+ # The estimated live ingested logs usage by tag(s). This field is in private beta.
80
+ attr_accessor :estimated_ingested_logs_usage
81
+
76
82
  # The percentage of estimated ingested spans usage by tag(s). This field is in private beta.
77
83
  attr_accessor :estimated_ingested_spans_percentage
78
84
 
@@ -153,6 +159,8 @@ module DatadogAPIClient::V1
153
159
  :'estimated_indexed_logs_usage' => :'estimated_indexed_logs_usage',
154
160
  :'estimated_indexed_spans_percentage' => :'estimated_indexed_spans_percentage',
155
161
  :'estimated_indexed_spans_usage' => :'estimated_indexed_spans_usage',
162
+ :'estimated_ingested_logs_percentage' => :'estimated_ingested_logs_percentage',
163
+ :'estimated_ingested_logs_usage' => :'estimated_ingested_logs_usage',
156
164
  :'estimated_ingested_spans_percentage' => :'estimated_ingested_spans_percentage',
157
165
  :'estimated_ingested_spans_usage' => :'estimated_ingested_spans_usage',
158
166
  :'fargate_percentage' => :'fargate_percentage',
@@ -202,6 +210,8 @@ module DatadogAPIClient::V1
202
210
  :'estimated_indexed_logs_usage' => :'Float',
203
211
  :'estimated_indexed_spans_percentage' => :'Float',
204
212
  :'estimated_indexed_spans_usage' => :'Float',
213
+ :'estimated_ingested_logs_percentage' => :'Float',
214
+ :'estimated_ingested_logs_usage' => :'Float',
205
215
  :'estimated_ingested_spans_percentage' => :'Float',
206
216
  :'estimated_ingested_spans_usage' => :'Float',
207
217
  :'fargate_percentage' => :'Float',
@@ -312,6 +322,14 @@ module DatadogAPIClient::V1
312
322
  self.estimated_indexed_spans_usage = attributes[:'estimated_indexed_spans_usage']
313
323
  end
314
324
 
325
+ if attributes.key?(:'estimated_ingested_logs_percentage')
326
+ self.estimated_ingested_logs_percentage = attributes[:'estimated_ingested_logs_percentage']
327
+ end
328
+
329
+ if attributes.key?(:'estimated_ingested_logs_usage')
330
+ self.estimated_ingested_logs_usage = attributes[:'estimated_ingested_logs_usage']
331
+ end
332
+
315
333
  if attributes.key?(:'estimated_ingested_spans_percentage')
316
334
  self.estimated_ingested_spans_percentage = attributes[:'estimated_ingested_spans_percentage']
317
335
  end
@@ -422,6 +440,8 @@ module DatadogAPIClient::V1
422
440
  estimated_indexed_logs_usage == o.estimated_indexed_logs_usage &&
423
441
  estimated_indexed_spans_percentage == o.estimated_indexed_spans_percentage &&
424
442
  estimated_indexed_spans_usage == o.estimated_indexed_spans_usage &&
443
+ estimated_ingested_logs_percentage == o.estimated_ingested_logs_percentage &&
444
+ estimated_ingested_logs_usage == o.estimated_ingested_logs_usage &&
425
445
  estimated_ingested_spans_percentage == o.estimated_ingested_spans_percentage &&
426
446
  estimated_ingested_spans_usage == o.estimated_ingested_spans_usage &&
427
447
  fargate_percentage == o.fargate_percentage &&
@@ -455,7 +475,7 @@ module DatadogAPIClient::V1
455
475
  # @return [Integer] Hash code
456
476
  # @!visibility private
457
477
  def hash
458
- [api_percentage, api_usage, apm_host_percentage, apm_host_usage, appsec_percentage, appsec_usage, browser_percentage, browser_usage, container_percentage, container_usage, custom_timeseries_percentage, custom_timeseries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, fargate_percentage, fargate_usage, functions_percentage, functions_usage, indexed_logs_percentage, indexed_logs_usage, infra_host_percentage, infra_host_usage, invocations_percentage, invocations_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_host_percentage, profiled_host_usage, snmp_percentage, snmp_usage].hash
478
+ [api_percentage, api_usage, apm_host_percentage, apm_host_usage, appsec_percentage, appsec_usage, browser_percentage, browser_usage, container_percentage, container_usage, custom_timeseries_percentage, custom_timeseries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_logs_percentage, estimated_ingested_logs_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, fargate_percentage, fargate_usage, functions_percentage, functions_usage, indexed_logs_percentage, indexed_logs_usage, infra_host_percentage, infra_host_usage, invocations_percentage, invocations_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_host_percentage, profiled_host_usage, snmp_percentage, snmp_usage].hash
459
479
  end
460
480
  end
461
481
  end
@@ -0,0 +1,33 @@
1
+ =begin
2
+ #Datadog API V1 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::V1
20
+ # Controls how groups or monitors are treated if an evaluation does not return any data points.
21
+ # The default option results in different behavior depending on the monitor query type.
22
+ # For monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.
23
+ # For monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.
24
+ # This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
25
+ class OnMissingDataOption
26
+ include BaseEnumModel
27
+
28
+ DEFAULT = "default".freeze
29
+ SHOW_NO_DATA = "show_no_data".freeze
30
+ SHOW_AND_NOTIFY_NO_DATA = "show_and_notify_no_data".freeze
31
+ RESOLVE = "resolve".freeze
32
+ end
33
+ end
@@ -28,7 +28,8 @@ module DatadogAPIClient::V1
28
28
  [
29
29
  :'SyntheticsBasicAuthWeb',
30
30
  :'SyntheticsBasicAuthSigv4',
31
- :'SyntheticsBasicAuthNTLM'
31
+ :'SyntheticsBasicAuthNTLM',
32
+ :'SyntheticsBasicAuthDigest'
32
33
  ]
33
34
  end
34
35
  # Builds the object
@@ -0,0 +1,155 @@
1
+ =begin
2
+ #Datadog API V1 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::V1
20
+ # Object to handle digest authentication when performing the test.
21
+ class SyntheticsBasicAuthDigest
22
+ include BaseGenericModel
23
+
24
+ # Whether the object has unparsed attributes
25
+ # @!visibility private
26
+ attr_accessor :_unparsed
27
+
28
+ # Password to use for the digest authentication.
29
+ attr_accessor :password
30
+
31
+ # The type of basic authentication to use when performing the test.
32
+ attr_accessor :type
33
+
34
+ # Username to use for the digest authentication.
35
+ attr_accessor :username
36
+
37
+ # Attribute mapping from ruby-style variable name to JSON key.
38
+ # @!visibility private
39
+ def self.attribute_map
40
+ {
41
+ :'password' => :'password',
42
+ :'type' => :'type',
43
+ :'username' => :'username'
44
+ }
45
+ end
46
+
47
+ # Returns all the JSON keys this model knows about
48
+ # @!visibility private
49
+ def self.acceptable_attributes
50
+ attribute_map.values
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ # @!visibility private
55
+ def self.openapi_types
56
+ {
57
+ :'password' => :'String',
58
+ :'type' => :'SyntheticsBasicAuthDigestType',
59
+ :'username' => :'String'
60
+ }
61
+ end
62
+
63
+ # List of attributes with nullable: true
64
+ # @!visibility private
65
+ def self.openapi_nullable
66
+ Set.new([
67
+ ])
68
+ end
69
+
70
+ # Initializes the object
71
+ # @param attributes [Hash] Model attributes in the form of hash
72
+ # @!visibility private
73
+ def initialize(attributes = {})
74
+ if (!attributes.is_a?(Hash))
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBasicAuthDigest` initialize method"
76
+ end
77
+
78
+ # check to see if the attribute exists and convert string to symbol for hash key
79
+ attributes = attributes.each_with_object({}) { |(k, v), h|
80
+ if (!self.class.attribute_map.key?(k.to_sym))
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBasicAuthDigest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
82
+ end
83
+ h[k.to_sym] = v
84
+ }
85
+
86
+ if attributes.key?(:'password')
87
+ self.password = attributes[:'password']
88
+ end
89
+
90
+ if attributes.key?(:'type')
91
+ self.type = attributes[:'type']
92
+ else
93
+ self.type = 'digest'
94
+ end
95
+
96
+ if attributes.key?(:'username')
97
+ self.username = attributes[:'username']
98
+ end
99
+ end
100
+
101
+ # Check to see if the all the properties in the model are valid
102
+ # @return true if the model is valid
103
+ # @!visibility private
104
+ def valid?
105
+ return false if @password.nil?
106
+ return false if @username.nil?
107
+ true
108
+ end
109
+
110
+ # Custom attribute writer method with validation
111
+ # @param password [Object] Object to be assigned
112
+ # @!visibility private
113
+ def password=(password)
114
+ if password.nil?
115
+ fail ArgumentError, 'invalid value for "password", password cannot be nil.'
116
+ end
117
+ @password = password
118
+ end
119
+
120
+ # Custom attribute writer method with validation
121
+ # @param username [Object] Object to be assigned
122
+ # @!visibility private
123
+ def username=(username)
124
+ if username.nil?
125
+ fail ArgumentError, 'invalid value for "username", username cannot be nil.'
126
+ end
127
+ @username = username
128
+ end
129
+
130
+ # Checks equality by comparing each attribute.
131
+ # @param o [Object] Object to be compared
132
+ # @!visibility private
133
+ def ==(o)
134
+ return true if self.equal?(o)
135
+ self.class == o.class &&
136
+ password == o.password &&
137
+ type == o.type &&
138
+ username == o.username
139
+ end
140
+
141
+ # @see the `==` method
142
+ # @param o [Object] Object to be compared
143
+ # @!visibility private
144
+ def eql?(o)
145
+ self == o
146
+ end
147
+
148
+ # Calculates hash code according to all attributes.
149
+ # @return [Integer] Hash code
150
+ # @!visibility private
151
+ def hash
152
+ [password, type, username].hash
153
+ end
154
+ end
155
+ end
@@ -0,0 +1,26 @@
1
+ =begin
2
+ #Datadog API V1 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::V1
20
+ # The type of basic authentication to use when performing the test.
21
+ class SyntheticsBasicAuthDigestType
22
+ include BaseEnumModel
23
+
24
+ DIGEST = "digest".freeze
25
+ end
26
+ end
@@ -28,6 +28,9 @@ module DatadogAPIClient::V1
28
28
  # When type is `http_header`, name of the header to use to extract the value.
29
29
  attr_accessor :field
30
30
 
31
+ # When type is `local_variable`, name of the local variable to use to extract the value.
32
+ attr_accessor :local_variable_name
33
+
31
34
  # Details of the parser to use for the global variable.
32
35
  attr_accessor :parser
33
36
 
@@ -39,6 +42,7 @@ module DatadogAPIClient::V1
39
42
  def self.attribute_map
40
43
  {
41
44
  :'field' => :'field',
45
+ :'local_variable_name' => :'localVariableName',
42
46
  :'parser' => :'parser',
43
47
  :'type' => :'type'
44
48
  }
@@ -55,6 +59,7 @@ module DatadogAPIClient::V1
55
59
  def self.openapi_types
56
60
  {
57
61
  :'field' => :'String',
62
+ :'local_variable_name' => :'String',
58
63
  :'parser' => :'SyntheticsVariableParser',
59
64
  :'type' => :'SyntheticsGlobalVariableParseTestOptionsType'
60
65
  }
@@ -87,6 +92,10 @@ module DatadogAPIClient::V1
87
92
  self.field = attributes[:'field']
88
93
  end
89
94
 
95
+ if attributes.key?(:'local_variable_name')
96
+ self.local_variable_name = attributes[:'local_variable_name']
97
+ end
98
+
90
99
  if attributes.key?(:'parser')
91
100
  self.parser = attributes[:'parser']
92
101
  end
@@ -100,21 +109,10 @@ module DatadogAPIClient::V1
100
109
  # @return true if the model is valid
101
110
  # @!visibility private
102
111
  def valid?
103
- return false if @parser.nil?
104
112
  return false if @type.nil?
105
113
  true
106
114
  end
107
115
 
108
- # Custom attribute writer method with validation
109
- # @param parser [Object] Object to be assigned
110
- # @!visibility private
111
- def parser=(parser)
112
- if parser.nil?
113
- fail ArgumentError, 'invalid value for "parser", parser cannot be nil.'
114
- end
115
- @parser = parser
116
- end
117
-
118
116
  # Custom attribute writer method with validation
119
117
  # @param type [Object] Object to be assigned
120
118
  # @!visibility private
@@ -132,6 +130,7 @@ module DatadogAPIClient::V1
132
130
  return true if self.equal?(o)
133
131
  self.class == o.class &&
134
132
  field == o.field &&
133
+ local_variable_name == o.local_variable_name &&
135
134
  parser == o.parser &&
136
135
  type == o.type
137
136
  end
@@ -147,7 +146,7 @@ module DatadogAPIClient::V1
147
146
  # @return [Integer] Hash code
148
147
  # @!visibility private
149
148
  def hash
150
- [field, parser, type].hash
149
+ [field, local_variable_name, parser, type].hash
151
150
  end
152
151
  end
153
152
  end
@@ -23,5 +23,6 @@ module DatadogAPIClient::V1
23
23
 
24
24
  HTTP_BODY = "http_body".freeze
25
25
  HTTP_HEADER = "http_header".freeze
26
+ LOCAL_VARIABLE = "local_variable".freeze
26
27
  end
27
28
  end
@@ -44,9 +44,18 @@ module DatadogAPIClient::V1
44
44
  # Whether or not to disable CORS mechanism.
45
45
  attr_accessor :disable_cors
46
46
 
47
+ # Disable Content Security Policy for browser tests.
48
+ attr_accessor :disable_csp
49
+
47
50
  # For API HTTP test, whether or not the test should follow redirects.
48
51
  attr_accessor :follow_redirects
49
52
 
53
+ # Ignore server certificate error.
54
+ attr_accessor :ignore_server_certificate_error
55
+
56
+ # Timeout before declaring the initial step as failed (in seconds) for browser tests.
57
+ attr_accessor :initial_navigation_timeout
58
+
50
59
  # Minimum amount of time in failure required to trigger an alert.
51
60
  attr_accessor :min_failure_duration
52
61
 
@@ -99,7 +108,10 @@ module DatadogAPIClient::V1
99
108
  :'ci' => :'ci',
100
109
  :'device_ids' => :'device_ids',
101
110
  :'disable_cors' => :'disableCors',
111
+ :'disable_csp' => :'disableCsp',
102
112
  :'follow_redirects' => :'follow_redirects',
113
+ :'ignore_server_certificate_error' => :'ignoreServerCertificateError',
114
+ :'initial_navigation_timeout' => :'initialNavigationTimeout',
103
115
  :'min_failure_duration' => :'min_failure_duration',
104
116
  :'min_location_failed' => :'min_location_failed',
105
117
  :'monitor_name' => :'monitor_name',
@@ -129,7 +141,10 @@ module DatadogAPIClient::V1
129
141
  :'ci' => :'SyntheticsTestCiOptions',
130
142
  :'device_ids' => :'Array<SyntheticsDeviceID>',
131
143
  :'disable_cors' => :'Boolean',
144
+ :'disable_csp' => :'Boolean',
132
145
  :'follow_redirects' => :'Boolean',
146
+ :'ignore_server_certificate_error' => :'Boolean',
147
+ :'initial_navigation_timeout' => :'Integer',
133
148
  :'min_failure_duration' => :'Integer',
134
149
  :'min_location_failed' => :'Integer',
135
150
  :'monitor_name' => :'String',
@@ -192,10 +207,22 @@ module DatadogAPIClient::V1
192
207
  self.disable_cors = attributes[:'disable_cors']
193
208
  end
194
209
 
210
+ if attributes.key?(:'disable_csp')
211
+ self.disable_csp = attributes[:'disable_csp']
212
+ end
213
+
195
214
  if attributes.key?(:'follow_redirects')
196
215
  self.follow_redirects = attributes[:'follow_redirects']
197
216
  end
198
217
 
218
+ if attributes.key?(:'ignore_server_certificate_error')
219
+ self.ignore_server_certificate_error = attributes[:'ignore_server_certificate_error']
220
+ end
221
+
222
+ if attributes.key?(:'initial_navigation_timeout')
223
+ self.initial_navigation_timeout = attributes[:'initial_navigation_timeout']
224
+ end
225
+
199
226
  if attributes.key?(:'min_failure_duration')
200
227
  self.min_failure_duration = attributes[:'min_failure_duration']
201
228
  end
@@ -288,7 +315,10 @@ module DatadogAPIClient::V1
288
315
  ci == o.ci &&
289
316
  device_ids == o.device_ids &&
290
317
  disable_cors == o.disable_cors &&
318
+ disable_csp == o.disable_csp &&
291
319
  follow_redirects == o.follow_redirects &&
320
+ ignore_server_certificate_error == o.ignore_server_certificate_error &&
321
+ initial_navigation_timeout == o.initial_navigation_timeout &&
292
322
  min_failure_duration == o.min_failure_duration &&
293
323
  min_location_failed == o.min_location_failed &&
294
324
  monitor_name == o.monitor_name &&
@@ -312,7 +342,7 @@ module DatadogAPIClient::V1
312
342
  # @return [Integer] Hash code
313
343
  # @!visibility private
314
344
  def hash
315
- [accept_self_signed, allow_insecure, check_certificate_revocation, ci, device_ids, disable_cors, follow_redirects, min_failure_duration, min_location_failed, monitor_name, monitor_options, monitor_priority, no_screenshot, restricted_roles, _retry, rum_settings, tick_every].hash
345
+ [accept_self_signed, allow_insecure, check_certificate_revocation, ci, device_ids, disable_cors, disable_csp, follow_redirects, ignore_server_certificate_error, initial_navigation_timeout, min_failure_duration, min_location_failed, monitor_name, monitor_options, monitor_priority, no_screenshot, restricted_roles, _retry, rum_settings, tick_every].hash
316
346
  end
317
347
  end
318
348
  end
@@ -23,7 +23,6 @@ module DatadogAPIClient::V1
23
23
 
24
24
  NOT_SCHEDULED = "not_scheduled".freeze
25
25
  SCHEDULED = "scheduled".freeze
26
- STARTED = "started".freeze
27
26
  FINISHED = "finished".freeze
28
27
  FINISHED_WITH_ERROR = "finished_with_error".freeze
29
28
  end
@@ -37,6 +37,9 @@ module DatadogAPIClient::V1
37
37
  # Client certificate to use when performing the test request.
38
38
  attr_accessor :certificate
39
39
 
40
+ # By default, the client certificate is applied on the domain of the starting URL for browser tests. If you want your client certificate to be applied on other domains instead, add them in `certificateDomains`.
41
+ attr_accessor :certificate_domains
42
+
40
43
  # DNS server to use for DNS tests.
41
44
  attr_accessor :dns_server
42
45
 
@@ -101,6 +104,7 @@ module DatadogAPIClient::V1
101
104
  :'basic_auth' => :'basicAuth',
102
105
  :'body' => :'body',
103
106
  :'certificate' => :'certificate',
107
+ :'certificate_domains' => :'certificateDomains',
104
108
  :'dns_server' => :'dnsServer',
105
109
  :'dns_server_port' => :'dnsServerPort',
106
110
  :'follow_redirects' => :'follow_redirects',
@@ -136,6 +140,7 @@ module DatadogAPIClient::V1
136
140
  :'basic_auth' => :'SyntheticsBasicAuth',
137
141
  :'body' => :'String',
138
142
  :'certificate' => :'SyntheticsTestRequestCertificate',
143
+ :'certificate_domains' => :'Array<String>',
139
144
  :'dns_server' => :'String',
140
145
  :'dns_server_port' => :'Integer',
141
146
  :'follow_redirects' => :'Boolean',
@@ -196,6 +201,14 @@ module DatadogAPIClient::V1
196
201
  self.certificate = attributes[:'certificate']
197
202
  end
198
203
 
204
+ if attributes.key?(:'certificate_domains')
205
+ if (value = attributes[:'certificate_domains']).is_a?(Array)
206
+ self.certificate_domains = value
207
+ end
208
+ else
209
+ self.certificate_domains = []
210
+ end
211
+
199
212
  if attributes.key?(:'dns_server')
200
213
  self.dns_server = attributes[:'dns_server']
201
214
  end
@@ -316,6 +329,7 @@ module DatadogAPIClient::V1
316
329
  basic_auth == o.basic_auth &&
317
330
  body == o.body &&
318
331
  certificate == o.certificate &&
332
+ certificate_domains == o.certificate_domains &&
319
333
  dns_server == o.dns_server &&
320
334
  dns_server_port == o.dns_server_port &&
321
335
  follow_redirects == o.follow_redirects &&
@@ -347,7 +361,7 @@ module DatadogAPIClient::V1
347
361
  # @return [Integer] Hash code
348
362
  # @!visibility private
349
363
  def hash
350
- [allow_insecure, basic_auth, body, certificate, dns_server, dns_server_port, follow_redirects, headers, host, message, metadata, method, no_saving_response_body, number_of_packets, port, proxy, query, servername, service, should_track_hops, timeout, url].hash
364
+ [allow_insecure, basic_auth, body, certificate, certificate_domains, dns_server, dns_server_port, follow_redirects, headers, host, message, metadata, method, no_saving_response_body, number_of_packets, port, proxy, query, servername, service, should_track_hops, timeout, url].hash
351
365
  end
352
366
  end
353
367
  end
@@ -45,6 +45,8 @@ module DatadogAPIClient::V1
45
45
  LAMBDA_INVOCATIONS_PERCENTAGE = "lambda_invocations_percentage".freeze
46
46
  ESTIMATED_INDEXED_LOGS_USAGE = "estimated_indexed_logs_usage".freeze
47
47
  ESTIMATED_INDEXED_LOGS_PERCENTAGE = "estimated_indexed_logs_percentage".freeze
48
+ ESTIMATED_INGESTED_LOGS_USAGE = "estimated_ingested_logs_usage".freeze
49
+ ESTIMATED_INGESTED_LOGS_PERCENTAGE = "estimated_ingested_logs_percentage".freeze
48
50
  ESTIMATED_INDEXED_SPANS_USAGE = "estimated_indexed_spans_usage".freeze
49
51
  ESTIMATED_INDEXED_SPANS_PERCENTAGE = "estimated_indexed_spans_percentage".freeze
50
52
  ESTIMATED_INGESTED_SPANS_USAGE = "estimated_ingested_spans_usage".freeze
@@ -53,6 +53,8 @@ module DatadogAPIClient::V1
53
53
  DBM_QUERIES_PERCENTAGE = "dbm_queries_percentage".freeze
54
54
  ESTIMATED_INDEXED_LOGS_USAGE = "estimated_indexed_logs_usage".freeze
55
55
  ESTIMATED_INDEXED_LOGS_PERCENTAGE = "estimated_indexed_logs_percentage".freeze
56
+ ESTIMATED_INGESTED_LOGS_USAGE = "estimated_ingested_logs_usage".freeze
57
+ ESTIMATED_INGESTED_LOGS_PERCENTAGE = "estimated_ingested_logs_percentage".freeze
56
58
  APPSEC_USAGE = "appsec_usage".freeze
57
59
  APPSEC_PERCENTAGE = "appsec_percentage".freeze
58
60
  ESTIMATED_INDEXED_SPANS_USAGE = "estimated_indexed_spans_usage".freeze
@@ -109,6 +109,12 @@ module DatadogAPIClient::V1
109
109
  # The estimated indexed spans usage by tag(s). Note this field is in private beta.
110
110
  attr_accessor :estimated_indexed_spans_usage
111
111
 
112
+ # The percentage of estimated live ingested logs usage by tag(s). Note this field is in private beta.
113
+ attr_accessor :estimated_ingested_logs_percentage
114
+
115
+ # The estimated live ingested logs usage by tag(s). Note this field is in private beta.
116
+ attr_accessor :estimated_ingested_logs_usage
117
+
112
118
  # The percentage of estimated ingested spans usage by tag(s). Note this field is in private beta.
113
119
  attr_accessor :estimated_ingested_spans_percentage
114
120
 
@@ -189,6 +195,8 @@ module DatadogAPIClient::V1
189
195
  :'estimated_indexed_logs_usage' => :'estimated_indexed_logs_usage',
190
196
  :'estimated_indexed_spans_percentage' => :'estimated_indexed_spans_percentage',
191
197
  :'estimated_indexed_spans_usage' => :'estimated_indexed_spans_usage',
198
+ :'estimated_ingested_logs_percentage' => :'estimated_ingested_logs_percentage',
199
+ :'estimated_ingested_logs_usage' => :'estimated_ingested_logs_usage',
192
200
  :'estimated_ingested_spans_percentage' => :'estimated_ingested_spans_percentage',
193
201
  :'estimated_ingested_spans_usage' => :'estimated_ingested_spans_usage',
194
202
  :'infra_host_percentage' => :'infra_host_percentage',
@@ -246,6 +254,8 @@ module DatadogAPIClient::V1
246
254
  :'estimated_indexed_logs_usage' => :'Float',
247
255
  :'estimated_indexed_spans_percentage' => :'Float',
248
256
  :'estimated_indexed_spans_usage' => :'Float',
257
+ :'estimated_ingested_logs_percentage' => :'Float',
258
+ :'estimated_ingested_logs_usage' => :'Float',
249
259
  :'estimated_ingested_spans_percentage' => :'Float',
250
260
  :'estimated_ingested_spans_usage' => :'Float',
251
261
  :'infra_host_percentage' => :'Float',
@@ -400,6 +410,14 @@ module DatadogAPIClient::V1
400
410
  self.estimated_indexed_spans_usage = attributes[:'estimated_indexed_spans_usage']
401
411
  end
402
412
 
413
+ if attributes.key?(:'estimated_ingested_logs_percentage')
414
+ self.estimated_ingested_logs_percentage = attributes[:'estimated_ingested_logs_percentage']
415
+ end
416
+
417
+ if attributes.key?(:'estimated_ingested_logs_usage')
418
+ self.estimated_ingested_logs_usage = attributes[:'estimated_ingested_logs_usage']
419
+ end
420
+
403
421
  if attributes.key?(:'estimated_ingested_spans_percentage')
404
422
  self.estimated_ingested_spans_percentage = attributes[:'estimated_ingested_spans_percentage']
405
423
  end
@@ -506,6 +524,8 @@ module DatadogAPIClient::V1
506
524
  estimated_indexed_logs_usage == o.estimated_indexed_logs_usage &&
507
525
  estimated_indexed_spans_percentage == o.estimated_indexed_spans_percentage &&
508
526
  estimated_indexed_spans_usage == o.estimated_indexed_spans_usage &&
527
+ estimated_ingested_logs_percentage == o.estimated_ingested_logs_percentage &&
528
+ estimated_ingested_logs_usage == o.estimated_ingested_logs_usage &&
509
529
  estimated_ingested_spans_percentage == o.estimated_ingested_spans_percentage &&
510
530
  estimated_ingested_spans_usage == o.estimated_ingested_spans_usage &&
511
531
  infra_host_percentage == o.infra_host_percentage &&
@@ -535,7 +555,7 @@ module DatadogAPIClient::V1
535
555
  # @return [Integer] Hash code
536
556
  # @!visibility private
537
557
  def hash
538
- [api_percentage, api_usage, apm_host_percentage, apm_host_usage, appsec_percentage, appsec_usage, browser_percentage, browser_usage, container_percentage, container_usage, cspm_container_percentage, cspm_container_usage, cspm_host_percentage, cspm_host_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_container_percentage, cws_container_usage, cws_host_percentage, cws_host_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, infra_host_percentage, infra_host_usage, lambda_functions_percentage, lambda_functions_usage, lambda_invocations_percentage, lambda_invocations_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_hosts_percentage, profiled_hosts_usage, snmp_percentage, snmp_usage].hash
558
+ [api_percentage, api_usage, apm_host_percentage, apm_host_usage, appsec_percentage, appsec_usage, browser_percentage, browser_usage, container_percentage, container_usage, cspm_container_percentage, cspm_container_usage, cspm_host_percentage, cspm_host_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_container_percentage, cws_container_usage, cws_host_percentage, cws_host_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_logs_percentage, estimated_ingested_logs_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, infra_host_percentage, infra_host_usage, lambda_functions_percentage, lambda_functions_usage, lambda_invocations_percentage, lambda_invocations_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_hosts_percentage, profiled_hosts_usage, snmp_percentage, snmp_usage].hash
539
559
  end
540
560
  end
541
561
  end
@@ -43,6 +43,9 @@ module DatadogAPIClient::V1
43
43
  # Shows usage aggregation for a billing period.
44
44
  attr_accessor :ratio_in_month
45
45
 
46
+ # The region of the organization.
47
+ attr_accessor :region
48
+
46
49
  # Shows the first date of usage.
47
50
  attr_accessor :start_date
48
51
 
@@ -59,6 +62,7 @@ module DatadogAPIClient::V1
59
62
  :'org_name' => :'org_name',
60
63
  :'public_id' => :'public_id',
61
64
  :'ratio_in_month' => :'ratio_in_month',
65
+ :'region' => :'region',
62
66
  :'start_date' => :'start_date',
63
67
  :'usage' => :'usage'
64
68
  }
@@ -80,6 +84,7 @@ module DatadogAPIClient::V1
80
84
  :'org_name' => :'String',
81
85
  :'public_id' => :'String',
82
86
  :'ratio_in_month' => :'Float',
87
+ :'region' => :'String',
83
88
  :'start_date' => :'Time',
84
89
  :'usage' => :'UsageBillableSummaryKeys'
85
90
  }
@@ -132,6 +137,10 @@ module DatadogAPIClient::V1
132
137
  self.ratio_in_month = attributes[:'ratio_in_month']
133
138
  end
134
139
 
140
+ if attributes.key?(:'region')
141
+ self.region = attributes[:'region']
142
+ end
143
+
135
144
  if attributes.key?(:'start_date')
136
145
  self.start_date = attributes[:'start_date']
137
146
  end
@@ -160,6 +169,7 @@ module DatadogAPIClient::V1
160
169
  org_name == o.org_name &&
161
170
  public_id == o.public_id &&
162
171
  ratio_in_month == o.ratio_in_month &&
172
+ region == o.region &&
163
173
  start_date == o.start_date &&
164
174
  usage == o.usage
165
175
  end
@@ -175,7 +185,7 @@ module DatadogAPIClient::V1
175
185
  # @return [Integer] Hash code
176
186
  # @!visibility private
177
187
  def hash
178
- [billing_plan, end_date, num_orgs, org_name, public_id, ratio_in_month, start_date, usage].hash
188
+ [billing_plan, end_date, num_orgs, org_name, public_id, ratio_in_month, region, start_date, usage].hash
179
189
  end
180
190
  end
181
191
  end