datadog_api_client 2.14.0 → 2.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +165 -20
  4. data/.generator/schemas/v2/openapi.yaml +45 -23
  5. data/.generator/src/generator/openapi.py +3 -1
  6. data/.generator/src/generator/templates/api.j2 +8 -2
  7. data/CHANGELOG.md +26 -0
  8. data/examples/v1/dashboards/CreateDashboard_2618036642.rb +36 -0
  9. data/examples/v1/dashboards/CreateDashboard_2705593938.rb +3 -0
  10. data/examples/v1/dashboards/CreateDashboard_3777304439.rb +50 -0
  11. data/examples/v1/dashboards/ListDashboards_1062671515.rb +8 -0
  12. data/examples/v1/monitors/ListMonitors_2966492814.rb +8 -0
  13. data/examples/v1/notebooks/ListNotebooks_788665428.rb +8 -0
  14. data/examples/v1/service-level-objective-corrections/ListSLOCorrection_2647266873.rb +8 -0
  15. data/examples/v1/service-level-objectives/ListSLOs_3036942817.rb +8 -0
  16. data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +1 -0
  17. data/examples/v1/synthetics/ListTests_1938827783.rb +8 -0
  18. data/examples/v2/downtimes/CancelDowntime.rb +0 -3
  19. data/examples/v2/downtimes/CreateDowntime.rb +0 -3
  20. data/examples/v2/downtimes/GetDowntime.rb +0 -3
  21. data/examples/v2/downtimes/ListDowntimes.rb +0 -3
  22. data/examples/v2/downtimes/ListDowntimes_805770330.rb +8 -0
  23. data/examples/v2/downtimes/ListMonitorDowntimes.rb +0 -3
  24. data/examples/v2/downtimes/ListMonitorDowntimes_128979780.rb +0 -3
  25. data/examples/v2/downtimes/UpdateDowntime.rb +0 -3
  26. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb +1 -1
  27. data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.rb +1 -1
  28. data/examples/v2/teams/ListTeams_3592098458.rb +8 -0
  29. data/examples/v2/users/ListUsers_4075885358.rb +8 -0
  30. data/lib/datadog_api_client/configuration.rb +0 -6
  31. data/lib/datadog_api_client/inflector.rb +1 -0
  32. data/lib/datadog_api_client/v1/api/dashboards_api.rb +25 -0
  33. data/lib/datadog_api_client/v1/api/monitors_api.rb +22 -0
  34. data/lib/datadog_api_client/v1/api/notebooks_api.rb +21 -0
  35. data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +21 -0
  36. data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +21 -0
  37. data/lib/datadog_api_client/v1/api/synthetics_api.rb +25 -3
  38. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +3 -3
  39. data/lib/datadog_api_client/v1/models/heat_map_widget_request.rb +35 -1
  40. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -0
  41. data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
  42. data/lib/datadog_api_client/v1/models/monitor.rb +1 -1
  43. data/lib/datadog_api_client/v1/models/monitor_options.rb +1 -1
  44. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -0
  45. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +21 -1
  46. data/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +14 -4
  47. data/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +11 -1
  48. data/lib/datadog_api_client/v1/models/synthetics_assertion_timings_scope.rb +27 -0
  49. data/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +12 -1
  50. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +21 -1
  51. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +21 -1
  52. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +21 -1
  53. data/lib/datadog_api_client/v2/api/audit_api.rb +1 -1
  54. data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +1 -1
  55. data/lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb +1 -1
  56. data/lib/datadog_api_client/v2/api/downtimes_api.rb +25 -36
  57. data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
  58. data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
  59. data/lib/datadog_api_client/v2/api/processes_api.rb +1 -1
  60. data/lib/datadog_api_client/v2/api/rum_api.rb +1 -1
  61. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +3 -3
  62. data/lib/datadog_api_client/v2/api/service_definition_api.rb +2 -2
  63. data/lib/datadog_api_client/v2/api/spans_api.rb +1 -1
  64. data/lib/datadog_api_client/v2/api/teams_api.rb +22 -0
  65. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
  66. data/lib/datadog_api_client/v2/api/users_api.rb +22 -0
  67. data/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb +1 -1
  68. data/lib/datadog_api_client/version.rb +1 -1
  69. metadata +14 -2
@@ -231,6 +231,9 @@ module DatadogAPIClient::V1
231
231
  # Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current months for all organizations.
232
232
  attr_accessor :opentelemetry_host_top99p_sum
233
233
 
234
+ # Shows the 99th percentile of all profiled Azure app services over all hours in the current months for all organizations.
235
+ attr_accessor :profiling_aas_count_top99p_sum
236
+
234
237
  # Shows the average number of profiled containers over all hours in the current months for all organizations.
235
238
  attr_accessor :profiling_container_agent_count_avg
236
239
 
@@ -279,6 +282,9 @@ module DatadogAPIClient::V1
279
282
  # Shows the sum of all Synthetic API tests over all hours in the current months for all organizations.
280
283
  attr_accessor :synthetics_check_calls_count_agg_sum
281
284
 
285
+ # Shows the sum of Synthetic mobile application tests over all hours in the current months for all organizations.
286
+ attr_accessor :synthetics_mobile_test_runs_agg_sum
287
+
282
288
  # Shows the sum of the high-water marks of used synthetics parallel testing slots over all hours in the current month for all organizations.
283
289
  attr_accessor :synthetics_parallel_testing_max_slots_hwm_sum
284
290
 
@@ -377,6 +383,7 @@ module DatadogAPIClient::V1
377
383
  :'online_archive_events_count_agg_sum' => :'online_archive_events_count_agg_sum',
378
384
  :'opentelemetry_apm_host_top99p_sum' => :'opentelemetry_apm_host_top99p_sum',
379
385
  :'opentelemetry_host_top99p_sum' => :'opentelemetry_host_top99p_sum',
386
+ :'profiling_aas_count_top99p_sum' => :'profiling_aas_count_top99p_sum',
380
387
  :'profiling_container_agent_count_avg' => :'profiling_container_agent_count_avg',
381
388
  :'profiling_host_count_top99p_sum' => :'profiling_host_count_top99p_sum',
382
389
  :'rehydrated_indexed_events_agg_sum' => :'rehydrated_indexed_events_agg_sum',
@@ -393,6 +400,7 @@ module DatadogAPIClient::V1
393
400
  :'start_date' => :'start_date',
394
401
  :'synthetics_browser_check_calls_count_agg_sum' => :'synthetics_browser_check_calls_count_agg_sum',
395
402
  :'synthetics_check_calls_count_agg_sum' => :'synthetics_check_calls_count_agg_sum',
403
+ :'synthetics_mobile_test_runs_agg_sum' => :'synthetics_mobile_test_runs_agg_sum',
396
404
  :'synthetics_parallel_testing_max_slots_hwm_sum' => :'synthetics_parallel_testing_max_slots_hwm_sum',
397
405
  :'trace_search_indexed_events_count_agg_sum' => :'trace_search_indexed_events_count_agg_sum',
398
406
  :'twol_ingested_events_bytes_agg_sum' => :'twol_ingested_events_bytes_agg_sum',
@@ -478,6 +486,7 @@ module DatadogAPIClient::V1
478
486
  :'online_archive_events_count_agg_sum' => :'Integer',
479
487
  :'opentelemetry_apm_host_top99p_sum' => :'Integer',
480
488
  :'opentelemetry_host_top99p_sum' => :'Integer',
489
+ :'profiling_aas_count_top99p_sum' => :'Integer',
481
490
  :'profiling_container_agent_count_avg' => :'Integer',
482
491
  :'profiling_host_count_top99p_sum' => :'Integer',
483
492
  :'rehydrated_indexed_events_agg_sum' => :'Integer',
@@ -494,6 +503,7 @@ module DatadogAPIClient::V1
494
503
  :'start_date' => :'Time',
495
504
  :'synthetics_browser_check_calls_count_agg_sum' => :'Integer',
496
505
  :'synthetics_check_calls_count_agg_sum' => :'Integer',
506
+ :'synthetics_mobile_test_runs_agg_sum' => :'Integer',
497
507
  :'synthetics_parallel_testing_max_slots_hwm_sum' => :'Integer',
498
508
  :'trace_search_indexed_events_count_agg_sum' => :'Integer',
499
509
  :'twol_ingested_events_bytes_agg_sum' => :'Integer',
@@ -801,6 +811,10 @@ module DatadogAPIClient::V1
801
811
  self.opentelemetry_host_top99p_sum = attributes[:'opentelemetry_host_top99p_sum']
802
812
  end
803
813
 
814
+ if attributes.key?(:'profiling_aas_count_top99p_sum')
815
+ self.profiling_aas_count_top99p_sum = attributes[:'profiling_aas_count_top99p_sum']
816
+ end
817
+
804
818
  if attributes.key?(:'profiling_container_agent_count_avg')
805
819
  self.profiling_container_agent_count_avg = attributes[:'profiling_container_agent_count_avg']
806
820
  end
@@ -865,6 +879,10 @@ module DatadogAPIClient::V1
865
879
  self.synthetics_check_calls_count_agg_sum = attributes[:'synthetics_check_calls_count_agg_sum']
866
880
  end
867
881
 
882
+ if attributes.key?(:'synthetics_mobile_test_runs_agg_sum')
883
+ self.synthetics_mobile_test_runs_agg_sum = attributes[:'synthetics_mobile_test_runs_agg_sum']
884
+ end
885
+
868
886
  if attributes.key?(:'synthetics_parallel_testing_max_slots_hwm_sum')
869
887
  self.synthetics_parallel_testing_max_slots_hwm_sum = attributes[:'synthetics_parallel_testing_max_slots_hwm_sum']
870
888
  end
@@ -976,6 +994,7 @@ module DatadogAPIClient::V1
976
994
  online_archive_events_count_agg_sum == o.online_archive_events_count_agg_sum &&
977
995
  opentelemetry_apm_host_top99p_sum == o.opentelemetry_apm_host_top99p_sum &&
978
996
  opentelemetry_host_top99p_sum == o.opentelemetry_host_top99p_sum &&
997
+ profiling_aas_count_top99p_sum == o.profiling_aas_count_top99p_sum &&
979
998
  profiling_container_agent_count_avg == o.profiling_container_agent_count_avg &&
980
999
  profiling_host_count_top99p_sum == o.profiling_host_count_top99p_sum &&
981
1000
  rehydrated_indexed_events_agg_sum == o.rehydrated_indexed_events_agg_sum &&
@@ -992,6 +1011,7 @@ module DatadogAPIClient::V1
992
1011
  start_date == o.start_date &&
993
1012
  synthetics_browser_check_calls_count_agg_sum == o.synthetics_browser_check_calls_count_agg_sum &&
994
1013
  synthetics_check_calls_count_agg_sum == o.synthetics_check_calls_count_agg_sum &&
1014
+ synthetics_mobile_test_runs_agg_sum == o.synthetics_mobile_test_runs_agg_sum &&
995
1015
  synthetics_parallel_testing_max_slots_hwm_sum == o.synthetics_parallel_testing_max_slots_hwm_sum &&
996
1016
  trace_search_indexed_events_count_agg_sum == o.trace_search_indexed_events_count_agg_sum &&
997
1017
  twol_ingested_events_bytes_agg_sum == o.twol_ingested_events_bytes_agg_sum &&
@@ -1006,7 +1026,7 @@ module DatadogAPIClient::V1
1006
1026
  # @return [Integer] Hash code
1007
1027
  # @!visibility private
1008
1028
  def hash
1009
- [agent_host_top99p_sum, apm_azure_app_service_host_top99p_sum, apm_fargate_count_avg_sum, apm_host_top99p_sum, appsec_fargate_count_avg_sum, audit_logs_lines_indexed_agg_sum, audit_trail_enabled_hwm_sum, avg_profiled_fargate_tasks_sum, aws_host_top99p_sum, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p_sum, azure_host_top99p_sum, billable_ingested_bytes_agg_sum, browser_rum_lite_session_count_agg_sum, browser_rum_replay_session_count_agg_sum, browser_rum_units_agg_sum, ci_pipeline_indexed_spans_agg_sum, ci_test_indexed_spans_agg_sum, ci_visibility_itr_committers_hwm_sum, ci_visibility_pipeline_committers_hwm_sum, ci_visibility_test_committers_hwm_sum, cloud_cost_management_aws_host_count_avg_sum, cloud_cost_management_azure_host_count_avg_sum, cloud_cost_management_host_count_avg_sum, container_avg_sum, container_excl_agent_avg_sum, container_hwm_sum, cspm_aas_host_top99p_sum, cspm_aws_host_top99p_sum, cspm_azure_host_top99p_sum, cspm_container_avg_sum, cspm_container_hwm_sum, cspm_gcp_host_top99p_sum, cspm_host_top99p_sum, custom_ts_sum, cws_containers_avg_sum, cws_host_top99p_sum, dbm_host_top99p_sum, dbm_queries_avg_sum, end_date, fargate_tasks_count_avg_sum, fargate_tasks_count_hwm_sum, forwarding_events_bytes_agg_sum, gcp_host_top99p_sum, heroku_host_top99p_sum, incident_management_monthly_active_users_hwm_sum, indexed_events_count_agg_sum, infra_host_top99p_sum, ingested_events_bytes_agg_sum, iot_device_agg_sum, iot_device_top99p_sum, last_updated, live_indexed_events_agg_sum, live_ingested_bytes_agg_sum, logs_by_retention, mobile_rum_lite_session_count_agg_sum, mobile_rum_session_count_agg_sum, mobile_rum_session_count_android_agg_sum, mobile_rum_session_count_flutter_agg_sum, mobile_rum_session_count_ios_agg_sum, mobile_rum_session_count_reactnative_agg_sum, mobile_rum_session_count_roku_agg_sum, mobile_rum_units_agg_sum, netflow_indexed_events_count_agg_sum, npm_host_top99p_sum, observability_pipelines_bytes_processed_agg_sum, online_archive_events_count_agg_sum, opentelemetry_apm_host_top99p_sum, opentelemetry_host_top99p_sum, profiling_container_agent_count_avg, profiling_host_count_top99p_sum, rehydrated_indexed_events_agg_sum, rehydrated_ingested_bytes_agg_sum, rum_browser_and_mobile_session_count, rum_session_count_agg_sum, rum_total_session_count_agg_sum, rum_units_agg_sum, sds_apm_scanned_bytes_sum, sds_events_scanned_bytes_sum, sds_logs_scanned_bytes_sum, sds_rum_scanned_bytes_sum, sds_total_scanned_bytes_sum, start_date, synthetics_browser_check_calls_count_agg_sum, synthetics_check_calls_count_agg_sum, synthetics_parallel_testing_max_slots_hwm_sum, trace_search_indexed_events_count_agg_sum, twol_ingested_events_bytes_agg_sum, universal_service_monitoring_host_top99p_sum, usage, vsphere_host_top99p_sum, vuln_management_host_count_top99p_sum, workflow_executions_usage_agg_sum].hash
1029
+ [agent_host_top99p_sum, apm_azure_app_service_host_top99p_sum, apm_fargate_count_avg_sum, apm_host_top99p_sum, appsec_fargate_count_avg_sum, audit_logs_lines_indexed_agg_sum, audit_trail_enabled_hwm_sum, avg_profiled_fargate_tasks_sum, aws_host_top99p_sum, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p_sum, azure_host_top99p_sum, billable_ingested_bytes_agg_sum, browser_rum_lite_session_count_agg_sum, browser_rum_replay_session_count_agg_sum, browser_rum_units_agg_sum, ci_pipeline_indexed_spans_agg_sum, ci_test_indexed_spans_agg_sum, ci_visibility_itr_committers_hwm_sum, ci_visibility_pipeline_committers_hwm_sum, ci_visibility_test_committers_hwm_sum, cloud_cost_management_aws_host_count_avg_sum, cloud_cost_management_azure_host_count_avg_sum, cloud_cost_management_host_count_avg_sum, container_avg_sum, container_excl_agent_avg_sum, container_hwm_sum, cspm_aas_host_top99p_sum, cspm_aws_host_top99p_sum, cspm_azure_host_top99p_sum, cspm_container_avg_sum, cspm_container_hwm_sum, cspm_gcp_host_top99p_sum, cspm_host_top99p_sum, custom_ts_sum, cws_containers_avg_sum, cws_host_top99p_sum, dbm_host_top99p_sum, dbm_queries_avg_sum, end_date, fargate_tasks_count_avg_sum, fargate_tasks_count_hwm_sum, forwarding_events_bytes_agg_sum, gcp_host_top99p_sum, heroku_host_top99p_sum, incident_management_monthly_active_users_hwm_sum, indexed_events_count_agg_sum, infra_host_top99p_sum, ingested_events_bytes_agg_sum, iot_device_agg_sum, iot_device_top99p_sum, last_updated, live_indexed_events_agg_sum, live_ingested_bytes_agg_sum, logs_by_retention, mobile_rum_lite_session_count_agg_sum, mobile_rum_session_count_agg_sum, mobile_rum_session_count_android_agg_sum, mobile_rum_session_count_flutter_agg_sum, mobile_rum_session_count_ios_agg_sum, mobile_rum_session_count_reactnative_agg_sum, mobile_rum_session_count_roku_agg_sum, mobile_rum_units_agg_sum, netflow_indexed_events_count_agg_sum, npm_host_top99p_sum, observability_pipelines_bytes_processed_agg_sum, online_archive_events_count_agg_sum, opentelemetry_apm_host_top99p_sum, opentelemetry_host_top99p_sum, profiling_aas_count_top99p_sum, profiling_container_agent_count_avg, profiling_host_count_top99p_sum, rehydrated_indexed_events_agg_sum, rehydrated_ingested_bytes_agg_sum, rum_browser_and_mobile_session_count, rum_session_count_agg_sum, rum_total_session_count_agg_sum, rum_units_agg_sum, sds_apm_scanned_bytes_sum, sds_events_scanned_bytes_sum, sds_logs_scanned_bytes_sum, sds_rum_scanned_bytes_sum, sds_total_scanned_bytes_sum, start_date, synthetics_browser_check_calls_count_agg_sum, synthetics_check_calls_count_agg_sum, synthetics_mobile_test_runs_agg_sum, synthetics_parallel_testing_max_slots_hwm_sum, trace_search_indexed_events_count_agg_sum, twol_ingested_events_bytes_agg_sum, universal_service_monitoring_host_top99p_sum, usage, vsphere_host_top99p_sum, vuln_management_host_count_top99p_sum, workflow_executions_usage_agg_sum].hash
1010
1030
  end
1011
1031
  end
1012
1032
  end
@@ -124,7 +124,7 @@ module DatadogAPIClient::V2
124
124
  if @api_client.get_attribute_from_path(response, "data").length < page_size
125
125
  break
126
126
  end
127
- @api_client.set_attribute_from_path(api_version, opts, "page_cursor", Integer, @api_client.get_attribute_from_path(response, "meta.page.after"))
127
+ @api_client.set_attribute_from_path(api_version, opts, "page_cursor", String, @api_client.get_attribute_from_path(response, "meta.page.after"))
128
128
  end
129
129
  end
130
130
 
@@ -264,7 +264,7 @@ module DatadogAPIClient::V2
264
264
  if @api_client.get_attribute_from_path(response, "data").length < page_size
265
265
  break
266
266
  end
267
- @api_client.set_attribute_from_path(api_version, opts, "page_cursor", Integer, @api_client.get_attribute_from_path(response, "meta.page.after"))
267
+ @api_client.set_attribute_from_path(api_version, opts, "page_cursor", String, @api_client.get_attribute_from_path(response, "meta.page.after"))
268
268
  end
269
269
  end
270
270
 
@@ -189,7 +189,7 @@ module DatadogAPIClient::V2
189
189
  if @api_client.get_attribute_from_path(response, "data").length < page_size
190
190
  break
191
191
  end
192
- @api_client.set_attribute_from_path(api_version, opts, "page_cursor", Integer, @api_client.get_attribute_from_path(response, "meta.page.after"))
192
+ @api_client.set_attribute_from_path(api_version, opts, "page_cursor", String, @api_client.get_attribute_from_path(response, "meta.page.after"))
193
193
  end
194
194
  end
195
195
 
@@ -39,12 +39,6 @@ module DatadogAPIClient::V2
39
39
  # @param opts [Hash] the optional parameters
40
40
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
41
41
  def cancel_downtime_with_http_info(downtime_id, opts = {})
42
- unstable_enabled = @api_client.config.unstable_operations["v2.cancel_downtime".to_sym]
43
- if unstable_enabled
44
- @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.cancel_downtime")
45
- else
46
- raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.cancel_downtime"))
47
- end
48
42
 
49
43
  if @api_client.config.debugging
50
44
  @api_client.config.logger.debug 'Calling API: DowntimesAPI.cancel_downtime ...'
@@ -110,12 +104,6 @@ module DatadogAPIClient::V2
110
104
  # @param opts [Hash] the optional parameters
111
105
  # @return [Array<(DowntimeResponse, Integer, Hash)>] DowntimeResponse data, response status code and response headers
112
106
  def create_downtime_with_http_info(body, opts = {})
113
- unstable_enabled = @api_client.config.unstable_operations["v2.create_downtime".to_sym]
114
- if unstable_enabled
115
- @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_downtime")
116
- else
117
- raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_downtime"))
118
- end
119
107
 
120
108
  if @api_client.config.debugging
121
109
  @api_client.config.logger.debug 'Calling API: DowntimesAPI.create_downtime ...'
@@ -184,12 +172,6 @@ module DatadogAPIClient::V2
184
172
  # @option opts [String] :include Comma-separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `monitor`.
185
173
  # @return [Array<(DowntimeResponse, Integer, Hash)>] DowntimeResponse data, response status code and response headers
186
174
  def get_downtime_with_http_info(downtime_id, opts = {})
187
- unstable_enabled = @api_client.config.unstable_operations["v2.get_downtime".to_sym]
188
- if unstable_enabled
189
- @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_downtime")
190
- else
191
- raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_downtime"))
192
- end
193
175
 
194
176
  if @api_client.config.debugging
195
177
  @api_client.config.logger.debug 'Calling API: DowntimesAPI.get_downtime ...'
@@ -255,14 +237,10 @@ module DatadogAPIClient::V2
255
237
  # @param opts [Hash] the optional parameters
256
238
  # @option opts [Boolean] :current_only Only return downtimes that are active when the request is made.
257
239
  # @option opts [String] :include Comma-separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `monitor`.
240
+ # @option opts [Integer] :page_offset Specific offset to use as the beginning of the returned page.
241
+ # @option opts [Integer] :page_limit Maximum number of downtimes in the response.
258
242
  # @return [Array<(ListDowntimesResponse, Integer, Hash)>] ListDowntimesResponse data, response status code and response headers
259
243
  def list_downtimes_with_http_info(opts = {})
260
- unstable_enabled = @api_client.config.unstable_operations["v2.list_downtimes".to_sym]
261
- if unstable_enabled
262
- @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_downtimes")
263
- else
264
- raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_downtimes"))
265
- end
266
244
 
267
245
  if @api_client.config.debugging
268
246
  @api_client.config.logger.debug 'Calling API: DowntimesAPI.list_downtimes ...'
@@ -274,6 +252,8 @@ module DatadogAPIClient::V2
274
252
  query_params = opts[:query_params] || {}
275
253
  query_params[:'current_only'] = opts[:'current_only'] if !opts[:'current_only'].nil?
276
254
  query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
255
+ query_params[:'page[offset]'] = opts[:'page_offset'] if !opts[:'page_offset'].nil?
256
+ query_params[:'page[limit]'] = opts[:'page_limit'] if !opts[:'page_limit'].nil?
277
257
 
278
258
  # header parameters
279
259
  header_params = opts[:header_params] || {}
@@ -310,6 +290,27 @@ module DatadogAPIClient::V2
310
290
  return data, status_code, headers
311
291
  end
312
292
 
293
+ # Get all downtimes.
294
+ #
295
+ # Provide a paginated version of {#list_downtimes}, returning all items.
296
+ #
297
+ # To use it you need to use a block: list_downtimes_with_pagination { |item| p item }
298
+ #
299
+ # @yield [DowntimeResponseData] Paginated items
300
+ def list_downtimes_with_pagination(opts = {})
301
+ api_version = "V2"
302
+ page_size = @api_client.get_attribute_from_path(opts, "page_limit", 30)
303
+ @api_client.set_attribute_from_path(api_version, opts, "page_limit", Integer, page_size)
304
+ while true do
305
+ response = list_downtimes(opts)
306
+ @api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
307
+ if @api_client.get_attribute_from_path(response, "data").length < page_size
308
+ break
309
+ end
310
+ @api_client.set_attribute_from_path(api_version, opts, "page_offset", Integer, @api_client.get_attribute_from_path(opts, "page_offset", 0) + page_size)
311
+ end
312
+ end
313
+
313
314
  # Get active downtimes for a monitor.
314
315
  #
315
316
  # @see #list_monitor_downtimes_with_http_info
@@ -326,12 +327,6 @@ module DatadogAPIClient::V2
326
327
  # @param opts [Hash] the optional parameters
327
328
  # @return [Array<(MonitorDowntimeMatchResponse, Integer, Hash)>] MonitorDowntimeMatchResponse data, response status code and response headers
328
329
  def list_monitor_downtimes_with_http_info(monitor_id, opts = {})
329
- unstable_enabled = @api_client.config.unstable_operations["v2.list_monitor_downtimes".to_sym]
330
- if unstable_enabled
331
- @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_monitor_downtimes")
332
- else
333
- raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_monitor_downtimes"))
334
- end
335
330
 
336
331
  if @api_client.config.debugging
337
332
  @api_client.config.logger.debug 'Calling API: DowntimesAPI.list_monitor_downtimes ...'
@@ -398,12 +393,6 @@ module DatadogAPIClient::V2
398
393
  # @param opts [Hash] the optional parameters
399
394
  # @return [Array<(DowntimeResponse, Integer, Hash)>] DowntimeResponse data, response status code and response headers
400
395
  def update_downtime_with_http_info(downtime_id, body, opts = {})
401
- unstable_enabled = @api_client.config.unstable_operations["v2.update_downtime".to_sym]
402
- if unstable_enabled
403
- @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_downtime")
404
- else
405
- raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_downtime"))
406
- end
407
396
 
408
397
  if @api_client.config.debugging
409
398
  @api_client.config.logger.debug 'Calling API: DowntimesAPI.update_downtime ...'
@@ -128,7 +128,7 @@ module DatadogAPIClient::V2
128
128
  if @api_client.get_attribute_from_path(response, "data").length < page_size
129
129
  break
130
130
  end
131
- @api_client.set_attribute_from_path(api_version, opts, "page_cursor", Integer, @api_client.get_attribute_from_path(response, "meta.page.after"))
131
+ @api_client.set_attribute_from_path(api_version, opts, "page_cursor", String, @api_client.get_attribute_from_path(response, "meta.page.after"))
132
132
  end
133
133
  end
134
134
 
@@ -298,7 +298,7 @@ module DatadogAPIClient::V2
298
298
  if @api_client.get_attribute_from_path(response, "data").length < page_size
299
299
  break
300
300
  end
301
- @api_client.set_attribute_from_path(api_version, opts, "page_cursor", Integer, @api_client.get_attribute_from_path(response, "meta.page.after"))
301
+ @api_client.set_attribute_from_path(api_version, opts, "page_cursor", String, @api_client.get_attribute_from_path(response, "meta.page.after"))
302
302
  end
303
303
  end
304
304
 
@@ -111,7 +111,7 @@ module DatadogAPIClient::V2
111
111
  def list_processes_with_pagination(opts = {})
112
112
  api_version = "V2"
113
113
  page_size = @api_client.get_attribute_from_path(opts, "page_limit", 1000)
114
- @api_client.set_attribute_from_path(api_version, opts, "page_limit", String, page_size)
114
+ @api_client.set_attribute_from_path(api_version, opts, "page_limit", Integer, page_size)
115
115
  while true do
116
116
  response = list_processes(opts)
117
117
  @api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
@@ -448,7 +448,7 @@ module DatadogAPIClient::V2
448
448
  if @api_client.get_attribute_from_path(response, "data").length < page_size
449
449
  break
450
450
  end
451
- @api_client.set_attribute_from_path(api_version, opts, "page_cursor", Integer, @api_client.get_attribute_from_path(response, "meta.page.after"))
451
+ @api_client.set_attribute_from_path(api_version, opts, "page_cursor", String, @api_client.get_attribute_from_path(response, "meta.page.after"))
452
452
  end
453
453
  end
454
454
 
@@ -927,14 +927,14 @@ module DatadogAPIClient::V2
927
927
  def list_findings_with_pagination(opts = {})
928
928
  api_version = "V2"
929
929
  page_size = @api_client.get_attribute_from_path(opts, "page_limit", 100)
930
- @api_client.set_attribute_from_path(api_version, opts, "page_limit", FindingStatus, page_size)
930
+ @api_client.set_attribute_from_path(api_version, opts, "page_limit", Integer, page_size)
931
931
  while true do
932
932
  response = list_findings(opts)
933
933
  @api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
934
934
  if @api_client.get_attribute_from_path(response, "data").length < page_size
935
935
  break
936
936
  end
937
- @api_client.set_attribute_from_path(api_version, opts, "page_cursor", FindingStatus, @api_client.get_attribute_from_path(response, "meta.page.cursor"))
937
+ @api_client.set_attribute_from_path(api_version, opts, "page_cursor", String, @api_client.get_attribute_from_path(response, "meta.page.cursor"))
938
938
  end
939
939
  end
940
940
 
@@ -1160,7 +1160,7 @@ module DatadogAPIClient::V2
1160
1160
  if @api_client.get_attribute_from_path(response, "data").length < page_size
1161
1161
  break
1162
1162
  end
1163
- @api_client.set_attribute_from_path(api_version, opts, "page_cursor", Integer, @api_client.get_attribute_from_path(response, "meta.page.after"))
1163
+ @api_client.set_attribute_from_path(api_version, opts, "page_cursor", String, @api_client.get_attribute_from_path(response, "meta.page.after"))
1164
1164
  end
1165
1165
  end
1166
1166
 
@@ -306,14 +306,14 @@ module DatadogAPIClient::V2
306
306
  def list_service_definitions_with_pagination(opts = {})
307
307
  api_version = "V2"
308
308
  page_size = @api_client.get_attribute_from_path(opts, "page_size", 10)
309
- @api_client.set_attribute_from_path(api_version, opts, "page_size", ServiceDefinitionSchemaVersions, page_size)
309
+ @api_client.set_attribute_from_path(api_version, opts, "page_size", Integer, page_size)
310
310
  while true do
311
311
  response = list_service_definitions(opts)
312
312
  @api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
313
313
  if @api_client.get_attribute_from_path(response, "data").length < page_size
314
314
  break
315
315
  end
316
- @api_client.set_attribute_from_path(api_version, opts, "page_number", ServiceDefinitionSchemaVersions, @api_client.get_attribute_from_path(opts, "page_number", 0) + page_size)
316
+ @api_client.set_attribute_from_path(api_version, opts, "page_number", Integer, @api_client.get_attribute_from_path(opts, "page_number", 0) + page_size)
317
317
  end
318
318
  end
319
319
  end
@@ -287,7 +287,7 @@ module DatadogAPIClient::V2
287
287
  if @api_client.get_attribute_from_path(response, "data").length < page_size
288
288
  break
289
289
  end
290
- @api_client.set_attribute_from_path(api_version, opts, "page_cursor", Integer, @api_client.get_attribute_from_path(response, "meta.page.after"))
290
+ @api_client.set_attribute_from_path(api_version, opts, "page_cursor", String, @api_client.get_attribute_from_path(response, "meta.page.after"))
291
291
  end
292
292
  end
293
293
  end
@@ -924,6 +924,28 @@ module DatadogAPIClient::V2
924
924
  return data, status_code, headers
925
925
  end
926
926
 
927
+ # Get all teams.
928
+ #
929
+ # Provide a paginated version of {#list_teams}, returning all items.
930
+ #
931
+ # To use it you need to use a block: list_teams_with_pagination { |item| p item }
932
+ #
933
+ # @yield [Team] Paginated items
934
+ def list_teams_with_pagination(opts = {})
935
+ api_version = "V2"
936
+ page_size = @api_client.get_attribute_from_path(opts, "page_size", 10)
937
+ @api_client.set_attribute_from_path(api_version, opts, "page_size", Integer, page_size)
938
+ @api_client.set_attribute_from_path(api_version, opts, "page_number", Integer, 0)
939
+ while true do
940
+ response = list_teams(opts)
941
+ @api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
942
+ if @api_client.get_attribute_from_path(response, "data").length < page_size
943
+ break
944
+ end
945
+ @api_client.set_attribute_from_path(api_version, opts, "page_number", Integer, @api_client.get_attribute_from_path(opts, "page_number", 0) + 1)
946
+ end
947
+ end
948
+
927
949
  # Update a team.
928
950
  #
929
951
  # @see #update_team_with_http_info
@@ -255,7 +255,7 @@ module DatadogAPIClient::V2
255
255
  # Get hourly usage by product family.
256
256
  #
257
257
  # @param filter_timestamp_start [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
258
- # @param filter_product_families [String] Comma separated list of product families to retrieve. Available families are `all`, `analyzed_logs`, `application_security`, `audit_trail`, `serverless`, `ci_app`, `cloud_cost_management`, `cspm`, `custom_events`, `cws`, `dbm`, `fargate`, `infra_hosts`, `incident_management`, `indexed_logs`, `indexed_spans`, `ingested_spans`, `iot`, `lambda_traced_invocations`, `logs`, `network_flows`, `network_hosts`, `observability_pipelines`, `online_archive`, `profiling`, `rum`, `rum_browser_sessions`, `rum_mobile_sessions`, `sds`, `snmp`, `synthetics_api`, `synthetics_browser`, `synthetics_parallel_testing`, and `timeseries`. The following product family has been **deprecated**: `audit_logs`.
258
+ # @param filter_product_families [String] Comma separated list of product families to retrieve. Available families are `all`, `analyzed_logs`, `application_security`, `audit_trail`, `serverless`, `ci_app`, `cloud_cost_management`, `cspm`, `custom_events`, `cws`, `dbm`, `fargate`, `infra_hosts`, `incident_management`, `indexed_logs`, `indexed_spans`, `ingested_spans`, `iot`, `lambda_traced_invocations`, `logs`, `network_flows`, `network_hosts`, `observability_pipelines`, `online_archive`, `profiling`, `rum`, `rum_browser_sessions`, `rum_mobile_sessions`, `sds`, `snmp`, `synthetics_api`, `synthetics_browser`, `synthetics_mobile`, `synthetics_parallel_testing`, and `timeseries`. The following product family has been **deprecated**: `audit_logs`.
259
259
  # @param opts [Hash] the optional parameters
260
260
  # @option opts [Time] :filter_timestamp_end Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour.
261
261
  # @option opts [Boolean] :filter_include_descendants Include child org usage in the response. Defaults to false.
@@ -495,6 +495,28 @@ module DatadogAPIClient::V2
495
495
  return data, status_code, headers
496
496
  end
497
497
 
498
+ # List all users.
499
+ #
500
+ # Provide a paginated version of {#list_users}, returning all items.
501
+ #
502
+ # To use it you need to use a block: list_users_with_pagination { |item| p item }
503
+ #
504
+ # @yield [User] Paginated items
505
+ def list_users_with_pagination(opts = {})
506
+ api_version = "V2"
507
+ page_size = @api_client.get_attribute_from_path(opts, "page_size", 10)
508
+ @api_client.set_attribute_from_path(api_version, opts, "page_size", Integer, page_size)
509
+ @api_client.set_attribute_from_path(api_version, opts, "page_number", Integer, 0)
510
+ while true do
511
+ response = list_users(opts)
512
+ @api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
513
+ if @api_client.get_attribute_from_path(response, "data").length < page_size
514
+ break
515
+ end
516
+ @api_client.set_attribute_from_path(api_version, opts, "page_number", Integer, @api_client.get_attribute_from_path(opts, "page_number", 0) + 1)
517
+ end
518
+ end
519
+
498
520
  # Send invitation emails.
499
521
  #
500
522
  # @see #send_invitations_with_http_info
@@ -40,7 +40,7 @@ module DatadogAPIClient::V2
40
40
  # @!visibility private
41
41
  def self.openapi_types
42
42
  {
43
- :'id' => :'Integer',
43
+ :'id' => :'String',
44
44
  :'type' => :'DowntimeIncludedMonitorType'
45
45
  }
46
46
  end
@@ -1,5 +1,5 @@
1
1
  # Define library version.
2
2
 
3
3
  module DatadogAPIClient
4
- VERSION = '2.14.0'
4
+ VERSION = '2.15.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datadog_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.0
4
+ version: 2.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Datadog, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-23 00:00:00.000000000 Z
11
+ date: 2023-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -197,6 +197,7 @@ files:
197
197
  - examples/v1/dashboards/CreateDashboard_252716965.rb
198
198
  - examples/v1/dashboards/CreateDashboard_2607944105.rb
199
199
  - examples/v1/dashboards/CreateDashboard_2610827685.rb
200
+ - examples/v1/dashboards/CreateDashboard_2618036642.rb
200
201
  - examples/v1/dashboards/CreateDashboard_2634813877.rb
201
202
  - examples/v1/dashboards/CreateDashboard_2644712913.rb
202
203
  - examples/v1/dashboards/CreateDashboard_2652180930.rb
@@ -212,6 +213,7 @@ files:
212
213
  - examples/v1/dashboards/CreateDashboard_3513586382.rb
213
214
  - examples/v1/dashboards/CreateDashboard_3562282606.rb
214
215
  - examples/v1/dashboards/CreateDashboard_3669695268.rb
216
+ - examples/v1/dashboards/CreateDashboard_3777304439.rb
215
217
  - examples/v1/dashboards/CreateDashboard_3882428227.rb
216
218
  - examples/v1/dashboards/CreateDashboard_3982498788.rb
217
219
  - examples/v1/dashboards/CreateDashboard_4026341408.rb
@@ -237,6 +239,7 @@ files:
237
239
  - examples/v1/dashboards/GetPublicDashboard.rb
238
240
  - examples/v1/dashboards/GetPublicDashboardInvitations.rb
239
241
  - examples/v1/dashboards/ListDashboards.rb
242
+ - examples/v1/dashboards/ListDashboards_1062671515.rb
240
243
  - examples/v1/dashboards/ListDashboards_1773932563.rb
241
244
  - examples/v1/dashboards/RestoreDashboards.rb
242
245
  - examples/v1/dashboards/SendPublicDashboardInvitation.rb
@@ -320,6 +323,7 @@ files:
320
323
  - examples/v1/monitors/GetMonitor_2200114573.rb
321
324
  - examples/v1/monitors/GetMonitor_3691711704.rb
322
325
  - examples/v1/monitors/ListMonitors.rb
326
+ - examples/v1/monitors/ListMonitors_2966492814.rb
323
327
  - examples/v1/monitors/ListMonitors_3448441939.rb
324
328
  - examples/v1/monitors/SearchMonitorGroups.rb
325
329
  - examples/v1/monitors/SearchMonitors.rb
@@ -331,6 +335,7 @@ files:
331
335
  - examples/v1/notebooks/DeleteNotebook.rb
332
336
  - examples/v1/notebooks/GetNotebook.rb
333
337
  - examples/v1/notebooks/ListNotebooks.rb
338
+ - examples/v1/notebooks/ListNotebooks_788665428.rb
334
339
  - examples/v1/notebooks/UpdateNotebook.rb
335
340
  - examples/v1/organizations/CreateChildOrg.rb
336
341
  - examples/v1/organizations/DowngradeOrg.rb
@@ -351,6 +356,7 @@ files:
351
356
  - examples/v1/service-level-objective-corrections/DeleteSLOCorrection.rb
352
357
  - examples/v1/service-level-objective-corrections/GetSLOCorrection.rb
353
358
  - examples/v1/service-level-objective-corrections/ListSLOCorrection.rb
359
+ - examples/v1/service-level-objective-corrections/ListSLOCorrection_2647266873.rb
354
360
  - examples/v1/service-level-objective-corrections/UpdateSLOCorrection.rb
355
361
  - examples/v1/service-level-objectives/CheckCanDeleteSLO.rb
356
362
  - examples/v1/service-level-objectives/CreateSLO.rb
@@ -360,6 +366,7 @@ files:
360
366
  - examples/v1/service-level-objectives/GetSLOCorrections.rb
361
367
  - examples/v1/service-level-objectives/GetSLOHistory.rb
362
368
  - examples/v1/service-level-objectives/ListSLOs.rb
369
+ - examples/v1/service-level-objectives/ListSLOs_3036942817.rb
363
370
  - examples/v1/service-level-objectives/SearchSLO.rb
364
371
  - examples/v1/service-level-objectives/UpdateSLO.rb
365
372
  - examples/v1/slack-integration/CreateSlackIntegrationChannel.rb
@@ -402,6 +409,7 @@ files:
402
409
  - examples/v1/synthetics/ListGlobalVariables.rb
403
410
  - examples/v1/synthetics/ListLocations.rb
404
411
  - examples/v1/synthetics/ListTests.rb
412
+ - examples/v1/synthetics/ListTests_1938827783.rb
405
413
  - examples/v1/synthetics/ListTests_2779190961.rb
406
414
  - examples/v1/synthetics/TriggerCITests.rb
407
415
  - examples/v1/synthetics/TriggerTests.rb
@@ -536,6 +544,7 @@ files:
536
544
  - examples/v2/downtimes/CreateDowntime.rb
537
545
  - examples/v2/downtimes/GetDowntime.rb
538
546
  - examples/v2/downtimes/ListDowntimes.rb
547
+ - examples/v2/downtimes/ListDowntimes_805770330.rb
539
548
  - examples/v2/downtimes/ListMonitorDowntimes.rb
540
549
  - examples/v2/downtimes/ListMonitorDowntimes_128979780.rb
541
550
  - examples/v2/downtimes/UpdateDowntime.rb
@@ -788,6 +797,7 @@ files:
788
797
  - examples/v2/teams/GetTeamPermissionSettings.rb
789
798
  - examples/v2/teams/GetUserMemberships.rb
790
799
  - examples/v2/teams/ListTeams.rb
800
+ - examples/v2/teams/ListTeams_3592098458.rb
791
801
  - examples/v2/teams/UpdateTeam.rb
792
802
  - examples/v2/teams/UpdateTeamLink.rb
793
803
  - examples/v2/teams/UpdateTeamMembership.rb
@@ -811,6 +821,7 @@ files:
811
821
  - examples/v2/users/ListUserOrganizations.rb
812
822
  - examples/v2/users/ListUserPermissions.rb
813
823
  - examples/v2/users/ListUsers.rb
824
+ - examples/v2/users/ListUsers_4075885358.rb
814
825
  - examples/v2/users/SendInvitations.rb
815
826
  - examples/v2/users/UpdateUser.rb
816
827
  - generate.sh
@@ -1359,6 +1370,7 @@ files:
1359
1370
  - lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb
1360
1371
  - lib/datadog_api_client/v1/models/synthetics_assertion_operator.rb
1361
1372
  - lib/datadog_api_client/v1/models/synthetics_assertion_target.rb
1373
+ - lib/datadog_api_client/v1/models/synthetics_assertion_timings_scope.rb
1362
1374
  - lib/datadog_api_client/v1/models/synthetics_assertion_type.rb
1363
1375
  - lib/datadog_api_client/v1/models/synthetics_assertion_x_path_operator.rb
1364
1376
  - lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target.rb