datadog_api_client 2.13.0 → 2.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +346 -36
  4. data/.generator/schemas/v2/openapi.yaml +436 -174
  5. data/.generator/src/generator/formatter.py +34 -29
  6. data/.generator/src/generator/openapi.py +3 -1
  7. data/.generator/src/generator/templates/api.j2 +8 -2
  8. data/.generator/src/generator/templates/api_client.j2 +81 -53
  9. data/.generator/src/generator/templates/configuration.j2 +21 -0
  10. data/.pre-commit-config.yaml +2 -2
  11. data/CHANGELOG.md +57 -0
  12. data/README.md +23 -0
  13. data/examples/v1/azure-integration/CreateAzureIntegration.rb +3 -0
  14. data/examples/v1/azure-integration/DeleteAzureIntegration.rb +3 -0
  15. data/examples/v1/azure-integration/UpdateAzureHostFilters.rb +3 -0
  16. data/examples/v1/azure-integration/UpdateAzureIntegration.rb +3 -0
  17. data/examples/v1/dashboards/CreateDashboard_252716965.rb +6 -0
  18. data/examples/v1/dashboards/CreateDashboard_2618036642.rb +36 -0
  19. data/examples/v1/dashboards/CreateDashboard_2705593938.rb +3 -0
  20. data/examples/v1/dashboards/CreateDashboard_3777304439.rb +50 -0
  21. data/examples/v1/dashboards/DeletePublicDashboardInvitation.rb +3 -3
  22. data/examples/v1/dashboards/ListDashboards_1062671515.rb +8 -0
  23. data/examples/v1/monitors/ListMonitors_2966492814.rb +8 -0
  24. data/examples/v1/notebooks/ListNotebooks_788665428.rb +8 -0
  25. data/examples/v1/service-level-objective-corrections/ListSLOCorrection_2647266873.rb +8 -0
  26. data/examples/v1/service-level-objectives/ListSLOs_3036942817.rb +8 -0
  27. data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +2 -0
  28. data/examples/v1/synthetics/ListTests_1938827783.rb +8 -0
  29. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +3 -0
  30. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +3 -0
  31. data/examples/v2/downtimes/CancelDowntime.rb +0 -3
  32. data/examples/v2/downtimes/CreateDowntime.rb +0 -3
  33. data/examples/v2/downtimes/GetDowntime.rb +0 -3
  34. data/examples/v2/downtimes/ListDowntimes.rb +0 -3
  35. data/examples/v2/downtimes/ListDowntimes_805770330.rb +8 -0
  36. data/examples/v2/downtimes/ListMonitorDowntimes.rb +0 -3
  37. data/examples/v2/downtimes/ListMonitorDowntimes_128979780.rb +0 -3
  38. data/examples/v2/downtimes/UpdateDowntime.rb +0 -3
  39. data/examples/v2/logs/AggregateLogs_2955613758.rb +1 -1
  40. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb +1 -1
  41. data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.rb +1 -1
  42. data/examples/v2/teams/CreateTeam.rb +2 -2
  43. data/examples/v2/teams/CreateTeam_252121814.rb +24 -0
  44. data/examples/v2/teams/GetUserMemberships.rb +8 -0
  45. data/examples/v2/teams/ListTeams_3592098458.rb +8 -0
  46. data/examples/v2/teams/UpdateTeam.rb +9 -0
  47. data/examples/v2/users/ListUsers_4075885358.rb +8 -0
  48. data/lib/datadog_api_client/api_client.rb +81 -53
  49. data/lib/datadog_api_client/configuration.rb +22 -6
  50. data/lib/datadog_api_client/inflector.rb +11 -1
  51. data/lib/datadog_api_client/v1/api/dashboards_api.rb +25 -0
  52. data/lib/datadog_api_client/v1/api/monitors_api.rb +22 -0
  53. data/lib/datadog_api_client/v1/api/notebooks_api.rb +21 -0
  54. data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +23 -2
  55. data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +31 -10
  56. data/lib/datadog_api_client/v1/api/synthetics_api.rb +25 -3
  57. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +3 -3
  58. data/lib/datadog_api_client/v1/models/azure_account.rb +32 -1
  59. data/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +13 -1
  60. data/lib/datadog_api_client/v1/models/heat_map_widget_request.rb +35 -1
  61. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +4 -0
  62. data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
  63. data/lib/datadog_api_client/v1/models/monitor.rb +1 -1
  64. data/lib/datadog_api_client/v1/models/monitor_options.rb +1 -1
  65. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +8 -0
  66. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +81 -1
  67. data/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +14 -4
  68. data/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +11 -1
  69. data/lib/datadog_api_client/v1/models/synthetics_assertion_timings_scope.rb +27 -0
  70. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +11 -1
  71. data/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb +12 -1
  72. data/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +12 -1
  73. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +44 -4
  74. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +44 -4
  75. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +44 -4
  76. data/lib/datadog_api_client/v1/models/widget_comparator.rb +1 -0
  77. data/lib/datadog_api_client/v2/api/audit_api.rb +1 -1
  78. data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +11 -7
  79. data/lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb +1 -1
  80. data/lib/datadog_api_client/v2/api/downtimes_api.rb +25 -36
  81. data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
  82. data/lib/datadog_api_client/v2/api/ip_allowlist_api.rb +2 -2
  83. data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
  84. data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -1
  85. data/lib/datadog_api_client/v2/api/processes_api.rb +1 -1
  86. data/lib/datadog_api_client/v2/api/rum_api.rb +1 -1
  87. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +6 -6
  88. data/lib/datadog_api_client/v2/api/service_definition_api.rb +2 -2
  89. data/lib/datadog_api_client/v2/api/spans_api.rb +1 -1
  90. data/lib/datadog_api_client/v2/api/spans_metrics_api.rb +2 -2
  91. data/lib/datadog_api_client/v2/api/teams_api.rb +87 -0
  92. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
  93. data/lib/datadog_api_client/v2/api/users_api.rb +22 -0
  94. data/lib/datadog_api_client/v2/models/application_key_create_attributes.rb +1 -1
  95. data/lib/datadog_api_client/v2/models/application_key_update_attributes.rb +1 -1
  96. data/lib/datadog_api_client/v2/models/audit_logs_event_attributes.rb +11 -1
  97. data/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb +9 -21
  98. data/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb +1 -1
  99. data/lib/datadog_api_client/v2/models/{team_data.rb → ci_app_pipeline_event_attributes.rb} +24 -62
  100. data/lib/datadog_api_client/v2/models/ci_app_pipeline_level.rb +30 -0
  101. data/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb +1 -1
  102. data/lib/datadog_api_client/v2/models/ci_app_test_level.rb +29 -0
  103. data/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb +1 -1
  104. data/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb +1 -1
  105. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb +25 -1
  106. data/lib/datadog_api_client/v2/models/dashboard_list_item.rb +25 -1
  107. data/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb +1 -1
  108. data/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb +19 -1
  109. data/lib/datadog_api_client/v2/models/formula_limit.rb +1 -0
  110. data/lib/datadog_api_client/v2/models/full_application_key_attributes.rb +1 -1
  111. data/lib/datadog_api_client/v2/models/logs_aggregate_request.rb +1 -1
  112. data/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb +1 -1
  113. data/lib/datadog_api_client/v2/models/logs_group_by.rb +3 -2
  114. data/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb +1 -1
  115. data/lib/datadog_api_client/v2/models/logs_list_request.rb +1 -1
  116. data/lib/datadog_api_client/v2/models/logs_query_options.rb +1 -1
  117. data/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb +1 -1
  118. data/lib/datadog_api_client/v2/models/on_demand_concurrency_cap.rb +14 -4
  119. data/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_type.rb +26 -0
  120. data/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb +1 -1
  121. data/lib/datadog_api_client/v2/models/query_formula.rb +1 -0
  122. data/lib/datadog_api_client/v2/models/relationship_to_team_links.rb +14 -4
  123. data/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb +14 -4
  124. data/lib/datadog_api_client/v2/models/security_monitoring_signal_metadata_type.rb +26 -0
  125. data/lib/datadog_api_client/v2/models/security_monitoring_signal_response.rb +80 -0
  126. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response_query.rb +26 -2
  127. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb +24 -4
  128. data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb +24 -4
  129. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +1 -19
  130. data/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb +11 -1
  131. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response_data.rb +11 -1
  132. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb +11 -1
  133. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +11 -1
  134. data/lib/datadog_api_client/v2/models/team_attributes.rb +50 -4
  135. data/lib/datadog_api_client/v2/models/team_create_attributes.rb +57 -4
  136. data/lib/datadog_api_client/v2/models/team_relationships_links.rb +80 -0
  137. data/lib/datadog_api_client/v2/models/team_response.rb +1 -1
  138. data/lib/datadog_api_client/v2/models/team_update_attributes.rb +57 -4
  139. data/lib/datadog_api_client/v2/models/teams_response.rb +24 -4
  140. data/lib/datadog_api_client/v2/models/teams_response_links.rb +129 -0
  141. data/lib/datadog_api_client/v2/models/teams_response_meta.rb +80 -0
  142. data/lib/datadog_api_client/v2/models/teams_response_meta_pagination.rb +150 -0
  143. data/lib/datadog_api_client/v2/models/usage_attributes_object.rb +11 -1
  144. data/lib/datadog_api_client/v2/models/user_teams_response.rb +24 -4
  145. data/lib/datadog_api_client/version.rb +1 -1
  146. data/spec/configuration_spec.rb +17 -0
  147. data/spec/retry_spec.rb +44 -0
  148. metadata +28 -3
@@ -569,6 +569,28 @@ module DatadogAPIClient::V1
569
569
  return data, status_code, headers
570
570
  end
571
571
 
572
+ # Get all monitor details.
573
+ #
574
+ # Provide a paginated version of {#list_monitors}, returning all items.
575
+ #
576
+ # To use it you need to use a block: list_monitors_with_pagination { |item| p item }
577
+ #
578
+ # @yield [Monitor] Paginated items
579
+ def list_monitors_with_pagination(opts = {})
580
+ api_version = "V1"
581
+ page_size = @api_client.get_attribute_from_path(opts, "page_size", 100)
582
+ @api_client.set_attribute_from_path(api_version, opts, "page_size", Integer, page_size)
583
+ @api_client.set_attribute_from_path(api_version, opts, "page", Integer, 0)
584
+ while true do
585
+ response = list_monitors(opts)
586
+ @api_client.get_attribute_from_path(response, "").each { |item| yield(item) }
587
+ if @api_client.get_attribute_from_path(response, "").length < page_size
588
+ break
589
+ end
590
+ @api_client.set_attribute_from_path(api_version, opts, "page", Integer, @api_client.get_attribute_from_path(opts, "page", 0) + 1)
591
+ end
592
+ end
593
+
572
594
  # Monitors group search.
573
595
  #
574
596
  # @see #search_monitor_groups_with_http_info
@@ -301,6 +301,27 @@ module DatadogAPIClient::V1
301
301
  return data, status_code, headers
302
302
  end
303
303
 
304
+ # Get all notebooks.
305
+ #
306
+ # Provide a paginated version of {#list_notebooks}, returning all items.
307
+ #
308
+ # To use it you need to use a block: list_notebooks_with_pagination { |item| p item }
309
+ #
310
+ # @yield [NotebooksResponseData] Paginated items
311
+ def list_notebooks_with_pagination(opts = {})
312
+ api_version = "V1"
313
+ page_size = @api_client.get_attribute_from_path(opts, "count", 100)
314
+ @api_client.set_attribute_from_path(api_version, opts, "count", Integer, page_size)
315
+ while true do
316
+ response = list_notebooks(opts)
317
+ @api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
318
+ if @api_client.get_attribute_from_path(response, "data").length < page_size
319
+ break
320
+ end
321
+ @api_client.set_attribute_from_path(api_version, opts, "start", Integer, @api_client.get_attribute_from_path(opts, "start", 0) + page_size)
322
+ end
323
+ end
324
+
304
325
  # Update a notebook.
305
326
  #
306
327
  # @see #update_notebook_with_http_info
@@ -70,7 +70,7 @@ module DatadogAPIClient::V1
70
70
  return_type = opts[:debug_return_type] || 'SLOCorrectionResponse'
71
71
 
72
72
  # auth_names
73
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
73
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
74
74
 
75
75
  new_options = opts.merge(
76
76
  :operation => :create_slo_correction,
@@ -264,7 +264,7 @@ module DatadogAPIClient::V1
264
264
  return_type = opts[:debug_return_type] || 'SLOCorrectionListResponse'
265
265
 
266
266
  # auth_names
267
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
267
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
268
268
 
269
269
  new_options = opts.merge(
270
270
  :operation => :list_slo_correction,
@@ -284,6 +284,27 @@ module DatadogAPIClient::V1
284
284
  return data, status_code, headers
285
285
  end
286
286
 
287
+ # Get all SLO corrections.
288
+ #
289
+ # Provide a paginated version of {#list_slo_correction}, returning all items.
290
+ #
291
+ # To use it you need to use a block: list_slo_correction_with_pagination { |item| p item }
292
+ #
293
+ # @yield [SLOCorrection] Paginated items
294
+ def list_slo_correction_with_pagination(opts = {})
295
+ api_version = "V1"
296
+ page_size = @api_client.get_attribute_from_path(opts, "limit", 25)
297
+ @api_client.set_attribute_from_path(api_version, opts, "limit", Integer, page_size)
298
+ while true do
299
+ response = list_slo_correction(opts)
300
+ @api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
301
+ if @api_client.get_attribute_from_path(response, "data").length < page_size
302
+ break
303
+ end
304
+ @api_client.set_attribute_from_path(api_version, opts, "offset", Integer, @api_client.get_attribute_from_path(opts, "offset", 0) + page_size)
305
+ end
306
+ end
307
+
287
308
  # Update an SLO correction.
288
309
  #
289
310
  # @see #update_slo_correction_with_http_info
@@ -70,7 +70,7 @@ module DatadogAPIClient::V1
70
70
  return_type = opts[:debug_return_type] || 'CheckCanDeleteSLOResponse'
71
71
 
72
72
  # auth_names
73
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
73
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
74
74
 
75
75
  new_options = opts.merge(
76
76
  :operation => :check_can_delete_slo,
@@ -137,7 +137,7 @@ module DatadogAPIClient::V1
137
137
  return_type = opts[:debug_return_type] || 'SLOListResponse'
138
138
 
139
139
  # auth_names
140
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
140
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
141
141
 
142
142
  new_options = opts.merge(
143
143
  :operation => :create_slo,
@@ -207,7 +207,7 @@ module DatadogAPIClient::V1
207
207
  return_type = opts[:debug_return_type] || 'SLODeleteResponse'
208
208
 
209
209
  # auth_names
210
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
210
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
211
211
 
212
212
  new_options = opts.merge(
213
213
  :operation => :delete_slo,
@@ -278,7 +278,7 @@ module DatadogAPIClient::V1
278
278
  return_type = opts[:debug_return_type] || 'SLOBulkDeleteResponse'
279
279
 
280
280
  # auth_names
281
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
281
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
282
282
 
283
283
  new_options = opts.merge(
284
284
  :operation => :delete_slo_timeframe_in_bulk,
@@ -345,7 +345,7 @@ module DatadogAPIClient::V1
345
345
  return_type = opts[:debug_return_type] || 'SLOResponse'
346
346
 
347
347
  # auth_names
348
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
348
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
349
349
 
350
350
  new_options = opts.merge(
351
351
  :operation => :get_slo,
@@ -410,7 +410,7 @@ module DatadogAPIClient::V1
410
410
  return_type = opts[:debug_return_type] || 'SLOCorrectionListResponse'
411
411
 
412
412
  # auth_names
413
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
413
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
414
414
 
415
415
  new_options = opts.merge(
416
416
  :operation => :get_slo_corrections,
@@ -504,7 +504,7 @@ module DatadogAPIClient::V1
504
504
  return_type = opts[:debug_return_type] || 'SLOHistoryResponse'
505
505
 
506
506
  # auth_names
507
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
507
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
508
508
 
509
509
  new_options = opts.merge(
510
510
  :operation => :get_slo_history,
@@ -576,7 +576,7 @@ module DatadogAPIClient::V1
576
576
  return_type = opts[:debug_return_type] || 'SLOListResponse'
577
577
 
578
578
  # auth_names
579
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
579
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
580
580
 
581
581
  new_options = opts.merge(
582
582
  :operation => :list_slos,
@@ -596,6 +596,27 @@ module DatadogAPIClient::V1
596
596
  return data, status_code, headers
597
597
  end
598
598
 
599
+ # Get all SLOs.
600
+ #
601
+ # Provide a paginated version of {#list_slos}, returning all items.
602
+ #
603
+ # To use it you need to use a block: list_slos_with_pagination { |item| p item }
604
+ #
605
+ # @yield [ServiceLevelObjective] Paginated items
606
+ def list_slos_with_pagination(opts = {})
607
+ api_version = "V1"
608
+ page_size = @api_client.get_attribute_from_path(opts, "limit", 1000)
609
+ @api_client.set_attribute_from_path(api_version, opts, "limit", Integer, page_size)
610
+ while true do
611
+ response = list_slos(opts)
612
+ @api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
613
+ if @api_client.get_attribute_from_path(response, "data").length < page_size
614
+ break
615
+ end
616
+ @api_client.set_attribute_from_path(api_version, opts, "offset", Integer, @api_client.get_attribute_from_path(opts, "offset", 0) + page_size)
617
+ end
618
+ end
619
+
599
620
  # Search for SLOs.
600
621
  #
601
622
  # @see #search_slo_with_http_info
@@ -644,7 +665,7 @@ module DatadogAPIClient::V1
644
665
  return_type = opts[:debug_return_type] || 'SearchSLOResponse'
645
666
 
646
667
  # auth_names
647
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
668
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
648
669
 
649
670
  new_options = opts.merge(
650
671
  :operation => :search_slo,
@@ -716,7 +737,7 @@ module DatadogAPIClient::V1
716
737
  return_type = opts[:debug_return_type] || 'SLOListResponse'
717
738
 
718
739
  # auth_names
719
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
740
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
720
741
 
721
742
  new_options = opts.merge(
722
743
  :operation => :update_slo,
@@ -1209,7 +1209,7 @@ module DatadogAPIClient::V1
1209
1209
  return_type = opts[:debug_return_type] || 'Array<String>'
1210
1210
 
1211
1211
  # auth_names
1212
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1212
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
1213
1213
 
1214
1214
  new_options = opts.merge(
1215
1215
  :operation => :get_synthetics_default_locations,
@@ -1428,8 +1428,8 @@ module DatadogAPIClient::V1
1428
1428
  # Get the list of all Synthetic tests.
1429
1429
  #
1430
1430
  # @param opts [Hash] the optional parameters
1431
- # @option opts [String] :page_size Used for pagination. The number of tests returned in the page.
1432
- # @option opts [String] :page_number Used for pagination. Which page you want to retrieve. Starts at zero.
1431
+ # @option opts [Integer] :page_size Used for pagination. The number of tests returned in the page.
1432
+ # @option opts [Integer] :page_number Used for pagination. Which page you want to retrieve. Starts at zero.
1433
1433
  # @return [Array<(SyntheticsListTestsResponse, Integer, Hash)>] SyntheticsListTestsResponse data, response status code and response headers
1434
1434
  def list_tests_with_http_info(opts = {})
1435
1435
 
@@ -1479,6 +1479,28 @@ module DatadogAPIClient::V1
1479
1479
  return data, status_code, headers
1480
1480
  end
1481
1481
 
1482
+ # Get the list of all Synthetic tests.
1483
+ #
1484
+ # Provide a paginated version of {#list_tests}, returning all items.
1485
+ #
1486
+ # To use it you need to use a block: list_tests_with_pagination { |item| p item }
1487
+ #
1488
+ # @yield [SyntheticsTestDetails] Paginated items
1489
+ def list_tests_with_pagination(opts = {})
1490
+ api_version = "V1"
1491
+ page_size = @api_client.get_attribute_from_path(opts, "page_size", 100)
1492
+ @api_client.set_attribute_from_path(api_version, opts, "page_size", Integer, page_size)
1493
+ @api_client.set_attribute_from_path(api_version, opts, "page_number", Integer, 0)
1494
+ while true do
1495
+ response = list_tests(opts)
1496
+ @api_client.get_attribute_from_path(response, "tests").each { |item| yield(item) }
1497
+ if @api_client.get_attribute_from_path(response, "tests").length < page_size
1498
+ break
1499
+ end
1500
+ @api_client.set_attribute_from_path(api_version, opts, "page_number", Integer, @api_client.get_attribute_from_path(opts, "page_number", 0) + 1)
1501
+ end
1502
+ end
1503
+
1482
1504
  # Trigger tests from CI/CD pipelines.
1483
1505
  #
1484
1506
  # @see #trigger_ci_tests_with_http_info
@@ -152,7 +152,7 @@ module DatadogAPIClient::V1
152
152
  fail ArgumentError, "Missing the required parameter 'usage_type' when calling UsageMeteringAPI.get_hourly_usage_attribution"
153
153
  end
154
154
  # verify enum value
155
- allowable_values = ['api_usage', 'apm_fargate_usage', 'apm_host_usage', 'appsec_fargate_usage', 'appsec_usage', 'browser_usage', 'container_excl_agent_usage', 'container_usage', 'cspm_containers_usage', 'cspm_hosts_usage', 'custom_ingested_timeseries_usage', 'custom_timeseries_usage', 'cws_containers_usage', 'cws_hosts_usage', 'dbm_hosts_usage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_ingested_logs_usage', 'estimated_indexed_spans_usage', 'estimated_ingested_spans_usage', 'fargate_usage', 'functions_usage', 'infra_host_usage', 'invocations_usage', 'npm_host_usage', 'obs_pipeline_bytes_usage', 'profiled_container_usage', 'profiled_fargate_usage', 'profiled_host_usage', 'snmp_usage', 'estimated_rum_sessions_usage', 'universal_service_monitoring_usage', 'vuln_management_hosts_usage']
155
+ allowable_values = ['api_usage', 'apm_fargate_usage', 'apm_host_usage', 'apm_usm_usage', 'appsec_fargate_usage', 'appsec_usage', 'browser_usage', 'container_excl_agent_usage', 'ci_visibility_itr_usage', 'container_usage', 'cspm_containers_usage', 'cspm_hosts_usage', 'custom_ingested_timeseries_usage', 'custom_timeseries_usage', 'cws_containers_usage', 'cws_hosts_usage', 'dbm_hosts_usage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_ingested_logs_usage', 'estimated_indexed_spans_usage', 'estimated_ingested_spans_usage', 'fargate_usage', 'functions_usage', 'infra_host_usage', 'invocations_usage', 'mobile_app_testing_usage', 'npm_host_usage', 'obs_pipeline_bytes_usage', 'profiled_container_usage', 'profiled_fargate_usage', 'profiled_host_usage', 'snmp_usage', 'estimated_rum_sessions_usage', 'universal_service_monitoring_usage', 'vuln_management_hosts_usage', 'sds_scanned_bytes_usage']
156
156
  if @api_client.config.client_side_validation && !allowable_values.include?(usage_type)
157
157
  fail ArgumentError, "invalid value for \"usage_type\", must be one of #{allowable_values}"
158
158
  end
@@ -472,7 +472,7 @@ module DatadogAPIClient::V1
472
472
  fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_monthly_usage_attribution"
473
473
  end
474
474
  # verify enum value
475
- allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', 'estimated_rum_sessions_usage', 'estimated_rum_sessions_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', '*']
475
+ allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'mobile_app_testing_percentage', 'mobile_app_testing_usage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', 'estimated_rum_sessions_usage', 'estimated_rum_sessions_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', '*']
476
476
  if @api_client.config.client_side_validation && !allowable_values.include?(fields)
477
477
  fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}"
478
478
  end
@@ -480,7 +480,7 @@ module DatadogAPIClient::V1
480
480
  if @api_client.config.client_side_validation && opts[:'sort_direction'] && !allowable_values.include?(opts[:'sort_direction'])
481
481
  fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{allowable_values}"
482
482
  end
483
- allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', 'estimated_rum_sessions_usage', 'estimated_rum_sessions_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', '*']
483
+ allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'mobile_app_testing_percentage', 'mobile_app_testing_usage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', 'estimated_rum_sessions_usage', 'estimated_rum_sessions_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', '*']
484
484
  if @api_client.config.client_side_validation && opts[:'sort_name'] && !allowable_values.include?(opts[:'sort_name'])
485
485
  fail ArgumentError, "invalid value for \"sort_name\", must be one of #{allowable_values}"
486
486
  end
@@ -21,6 +21,10 @@ module DatadogAPIClient::V1
21
21
  class AzureAccount
22
22
  include BaseGenericModel
23
23
 
24
+ # Limit the Azure app service plans that are pulled into Datadog using tags.
25
+ # Only app service plans that match one of the defined tags are imported into Datadog.
26
+ attr_accessor :app_service_plan_filters
27
+
24
28
  # Silence monitors for expected Azure VM shutdowns.
25
29
  attr_accessor :automute
26
30
 
@@ -30,6 +34,12 @@ module DatadogAPIClient::V1
30
34
  # Your Azure web application secret key.
31
35
  attr_accessor :client_secret
32
36
 
37
+ # Enable Cloud Security Management Misconfigurations for your organization.
38
+ attr_accessor :cspm_enabled
39
+
40
+ # Enable custom metrics for your organization.
41
+ attr_accessor :custom_metrics_enabled
42
+
33
43
  # Errors in your configuration.
34
44
  attr_accessor :errors
35
45
 
@@ -50,9 +60,12 @@ module DatadogAPIClient::V1
50
60
  # @!visibility private
51
61
  def self.attribute_map
52
62
  {
63
+ :'app_service_plan_filters' => :'app_service_plan_filters',
53
64
  :'automute' => :'automute',
54
65
  :'client_id' => :'client_id',
55
66
  :'client_secret' => :'client_secret',
67
+ :'cspm_enabled' => :'cspm_enabled',
68
+ :'custom_metrics_enabled' => :'custom_metrics_enabled',
56
69
  :'errors' => :'errors',
57
70
  :'host_filters' => :'host_filters',
58
71
  :'new_client_id' => :'new_client_id',
@@ -65,9 +78,12 @@ module DatadogAPIClient::V1
65
78
  # @!visibility private
66
79
  def self.openapi_types
67
80
  {
81
+ :'app_service_plan_filters' => :'String',
68
82
  :'automute' => :'Boolean',
69
83
  :'client_id' => :'String',
70
84
  :'client_secret' => :'String',
85
+ :'cspm_enabled' => :'Boolean',
86
+ :'custom_metrics_enabled' => :'Boolean',
71
87
  :'errors' => :'Array<String>',
72
88
  :'host_filters' => :'String',
73
89
  :'new_client_id' => :'String',
@@ -92,6 +108,10 @@ module DatadogAPIClient::V1
92
108
  h[k.to_sym] = v
93
109
  }
94
110
 
111
+ if attributes.key?(:'app_service_plan_filters')
112
+ self.app_service_plan_filters = attributes[:'app_service_plan_filters']
113
+ end
114
+
95
115
  if attributes.key?(:'automute')
96
116
  self.automute = attributes[:'automute']
97
117
  end
@@ -104,6 +124,14 @@ module DatadogAPIClient::V1
104
124
  self.client_secret = attributes[:'client_secret']
105
125
  end
106
126
 
127
+ if attributes.key?(:'cspm_enabled')
128
+ self.cspm_enabled = attributes[:'cspm_enabled']
129
+ end
130
+
131
+ if attributes.key?(:'custom_metrics_enabled')
132
+ self.custom_metrics_enabled = attributes[:'custom_metrics_enabled']
133
+ end
134
+
107
135
  if attributes.key?(:'errors')
108
136
  if (value = attributes[:'errors']).is_a?(Array)
109
137
  self.errors = value
@@ -133,9 +161,12 @@ module DatadogAPIClient::V1
133
161
  def ==(o)
134
162
  return true if self.equal?(o)
135
163
  self.class == o.class &&
164
+ app_service_plan_filters == o.app_service_plan_filters &&
136
165
  automute == o.automute &&
137
166
  client_id == o.client_id &&
138
167
  client_secret == o.client_secret &&
168
+ cspm_enabled == o.cspm_enabled &&
169
+ custom_metrics_enabled == o.custom_metrics_enabled &&
139
170
  errors == o.errors &&
140
171
  host_filters == o.host_filters &&
141
172
  new_client_id == o.new_client_id &&
@@ -147,7 +178,7 @@ module DatadogAPIClient::V1
147
178
  # @return [Integer] Hash code
148
179
  # @!visibility private
149
180
  def hash
150
- [automute, client_id, client_secret, errors, host_filters, new_client_id, new_tenant_name, tenant_name].hash
181
+ [app_service_plan_filters, automute, client_id, client_secret, cspm_enabled, custom_metrics_enabled, errors, host_filters, new_client_id, new_tenant_name, tenant_name].hash
151
182
  end
152
183
  end
153
184
  end
@@ -23,6 +23,9 @@ module DatadogAPIClient::V1
23
23
  class DistributionWidgetDefinition
24
24
  include BaseGenericModel
25
25
 
26
+ # A list of custom links.
27
+ attr_accessor :custom_links
28
+
26
29
  # (Deprecated) The widget legend was replaced by a tooltip and sidebar.
27
30
  attr_accessor :legend_size
28
31
 
@@ -63,6 +66,7 @@ module DatadogAPIClient::V1
63
66
  # @!visibility private
64
67
  def self.attribute_map
65
68
  {
69
+ :'custom_links' => :'custom_links',
66
70
  :'legend_size' => :'legend_size',
67
71
  :'markers' => :'markers',
68
72
  :'requests' => :'requests',
@@ -81,6 +85,7 @@ module DatadogAPIClient::V1
81
85
  # @!visibility private
82
86
  def self.openapi_types
83
87
  {
88
+ :'custom_links' => :'Array<WidgetCustomLink>',
84
89
  :'legend_size' => :'String',
85
90
  :'markers' => :'Array<WidgetMarker>',
86
91
  :'requests' => :'Array<DistributionWidgetRequest>',
@@ -111,6 +116,12 @@ module DatadogAPIClient::V1
111
116
  h[k.to_sym] = v
112
117
  }
113
118
 
119
+ if attributes.key?(:'custom_links')
120
+ if (value = attributes[:'custom_links']).is_a?(Array)
121
+ self.custom_links = value
122
+ end
123
+ end
124
+
114
125
  if attributes.key?(:'legend_size')
115
126
  self.legend_size = attributes[:'legend_size']
116
127
  end
@@ -203,6 +214,7 @@ module DatadogAPIClient::V1
203
214
  def ==(o)
204
215
  return true if self.equal?(o)
205
216
  self.class == o.class &&
217
+ custom_links == o.custom_links &&
206
218
  legend_size == o.legend_size &&
207
219
  markers == o.markers &&
208
220
  requests == o.requests &&
@@ -220,7 +232,7 @@ module DatadogAPIClient::V1
220
232
  # @return [Integer] Hash code
221
233
  # @!visibility private
222
234
  def hash
223
- [legend_size, markers, requests, show_legend, time, title, title_align, title_size, type, xaxis, yaxis].hash
235
+ [custom_links, legend_size, markers, requests, show_legend, time, title, title_align, title_size, type, xaxis, yaxis].hash
224
236
  end
225
237
  end
226
238
  end
@@ -27,6 +27,9 @@ module DatadogAPIClient::V1
27
27
  # The event query.
28
28
  attr_accessor :event_query
29
29
 
30
+ # List of formulas that operate on queries.
31
+ attr_accessor :formulas
32
+
30
33
  # The log query.
31
34
  attr_accessor :log_query
32
35
 
@@ -42,6 +45,12 @@ module DatadogAPIClient::V1
42
45
  # Widget query.
43
46
  attr_accessor :q
44
47
 
48
+ # List of queries that can be returned directly or used in formulas.
49
+ attr_accessor :queries
50
+
51
+ # Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets.
52
+ attr_accessor :response_format
53
+
45
54
  # The log query.
46
55
  attr_accessor :rum_query
47
56
 
@@ -57,11 +66,14 @@ module DatadogAPIClient::V1
57
66
  {
58
67
  :'apm_query' => :'apm_query',
59
68
  :'event_query' => :'event_query',
69
+ :'formulas' => :'formulas',
60
70
  :'log_query' => :'log_query',
61
71
  :'network_query' => :'network_query',
62
72
  :'process_query' => :'process_query',
63
73
  :'profile_metrics_query' => :'profile_metrics_query',
64
74
  :'q' => :'q',
75
+ :'queries' => :'queries',
76
+ :'response_format' => :'response_format',
65
77
  :'rum_query' => :'rum_query',
66
78
  :'security_query' => :'security_query',
67
79
  :'style' => :'style'
@@ -74,11 +86,14 @@ module DatadogAPIClient::V1
74
86
  {
75
87
  :'apm_query' => :'LogQueryDefinition',
76
88
  :'event_query' => :'EventQueryDefinition',
89
+ :'formulas' => :'Array<WidgetFormula>',
77
90
  :'log_query' => :'LogQueryDefinition',
78
91
  :'network_query' => :'LogQueryDefinition',
79
92
  :'process_query' => :'ProcessQueryDefinition',
80
93
  :'profile_metrics_query' => :'LogQueryDefinition',
81
94
  :'q' => :'String',
95
+ :'queries' => :'Array<FormulaAndFunctionQueryDefinition>',
96
+ :'response_format' => :'FormulaAndFunctionResponseFormat',
82
97
  :'rum_query' => :'LogQueryDefinition',
83
98
  :'security_query' => :'LogQueryDefinition',
84
99
  :'style' => :'WidgetStyle'
@@ -109,6 +124,12 @@ module DatadogAPIClient::V1
109
124
  self.event_query = attributes[:'event_query']
110
125
  end
111
126
 
127
+ if attributes.key?(:'formulas')
128
+ if (value = attributes[:'formulas']).is_a?(Array)
129
+ self.formulas = value
130
+ end
131
+ end
132
+
112
133
  if attributes.key?(:'log_query')
113
134
  self.log_query = attributes[:'log_query']
114
135
  end
@@ -129,6 +150,16 @@ module DatadogAPIClient::V1
129
150
  self.q = attributes[:'q']
130
151
  end
131
152
 
153
+ if attributes.key?(:'queries')
154
+ if (value = attributes[:'queries']).is_a?(Array)
155
+ self.queries = value
156
+ end
157
+ end
158
+
159
+ if attributes.key?(:'response_format')
160
+ self.response_format = attributes[:'response_format']
161
+ end
162
+
132
163
  if attributes.key?(:'rum_query')
133
164
  self.rum_query = attributes[:'rum_query']
134
165
  end
@@ -150,11 +181,14 @@ module DatadogAPIClient::V1
150
181
  self.class == o.class &&
151
182
  apm_query == o.apm_query &&
152
183
  event_query == o.event_query &&
184
+ formulas == o.formulas &&
153
185
  log_query == o.log_query &&
154
186
  network_query == o.network_query &&
155
187
  process_query == o.process_query &&
156
188
  profile_metrics_query == o.profile_metrics_query &&
157
189
  q == o.q &&
190
+ queries == o.queries &&
191
+ response_format == o.response_format &&
158
192
  rum_query == o.rum_query &&
159
193
  security_query == o.security_query &&
160
194
  style == o.style
@@ -164,7 +198,7 @@ module DatadogAPIClient::V1
164
198
  # @return [Integer] Hash code
165
199
  # @!visibility private
166
200
  def hash
167
- [apm_query, event_query, log_query, network_query, process_query, profile_metrics_query, q, rum_query, security_query, style].hash
201
+ [apm_query, event_query, formulas, log_query, network_query, process_query, profile_metrics_query, q, queries, response_format, rum_query, security_query, style].hash
168
202
  end
169
203
  end
170
204
  end
@@ -24,10 +24,12 @@ module DatadogAPIClient::V1
24
24
  API_USAGE = "api_usage".freeze
25
25
  APM_FARGATE_USAGE = "apm_fargate_usage".freeze
26
26
  APM_HOST_USAGE = "apm_host_usage".freeze
27
+ APM_USM_USAGE = "apm_usm_usage".freeze
27
28
  APPSEC_FARGATE_USAGE = "appsec_fargate_usage".freeze
28
29
  APPSEC_USAGE = "appsec_usage".freeze
29
30
  BROWSER_USAGE = "browser_usage".freeze
30
31
  CONTAINER_EXCL_AGENT_USAGE = "container_excl_agent_usage".freeze
32
+ CI_VISIBILITY_ITR_USAGE = "ci_visibility_itr_usage".freeze
31
33
  CONTAINER_USAGE = "container_usage".freeze
32
34
  CSPM_CONTAINERS_USAGE = "cspm_containers_usage".freeze
33
35
  CSPM_HOSTS_USAGE = "cspm_hosts_usage".freeze
@@ -45,6 +47,7 @@ module DatadogAPIClient::V1
45
47
  FUNCTIONS_USAGE = "functions_usage".freeze
46
48
  INFRA_HOST_USAGE = "infra_host_usage".freeze
47
49
  INVOCATIONS_USAGE = "invocations_usage".freeze
50
+ MOBILE_APP_TESTING_USAGE = "mobile_app_testing_usage".freeze
48
51
  NPM_HOST_USAGE = "npm_host_usage".freeze
49
52
  OBS_PIPELINE_BYTES_USAGE = "obs_pipeline_bytes_usage".freeze
50
53
  PROFILED_CONTAINER_USAGE = "profiled_container_usage".freeze
@@ -54,5 +57,6 @@ module DatadogAPIClient::V1
54
57
  ESTIMATED_RUM_SESSIONS_USAGE = "estimated_rum_sessions_usage".freeze
55
58
  UNIVERSAL_SERVICE_MONITORING_USAGE = "universal_service_monitoring_usage".freeze
56
59
  VULN_MANAGEMENT_HOSTS_USAGE = "vuln_management_hosts_usage".freeze
60
+ SDS_SCANNED_BYTES_USAGE = "sds_scanned_bytes_usage".freeze
57
61
  end
58
62
  end
@@ -27,6 +27,7 @@ module DatadogAPIClient::V1
27
27
  CI_TEST_STREAM = "ci_test_stream".freeze
28
28
  RUM_ISSUE_STREAM = "rum_issue_stream".freeze
29
29
  APM_ISSUE_STREAM = "apm_issue_stream".freeze
30
+ TRACE_STREAM = "trace_stream".freeze
30
31
  LOGS_ISSUE_STREAM = "logs_issue_stream".freeze
31
32
  LOGS_PATTERN_STREAM = "logs_pattern_stream".freeze
32
33
  LOGS_TRANSACTION_STREAM = "logs_transaction_stream".freeze
@@ -33,7 +33,7 @@ module DatadogAPIClient::V1
33
33
  # ID of this monitor.
34
34
  attr_accessor :id
35
35
 
36
- # A list of active downtimes that match this monitor.
36
+ # A list of active v1 downtimes that match this monitor.
37
37
  attr_accessor :matching_downtimes
38
38
 
39
39
  # A message to include with notifications for this monitor.
@@ -132,7 +132,7 @@ module DatadogAPIClient::V1
132
132
  # Configuration options for scheduling.
133
133
  attr_accessor :scheduling_options
134
134
 
135
- # Information about the downtime applied to the monitor.
135
+ # Information about the downtime applied to the monitor. Only shows v1 downtimes.
136
136
  attr_accessor :silenced
137
137
 
138
138
  # ID of the corresponding Synthetic check.