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
@@ -34,6 +34,8 @@ module DatadogAPIClient::V1
34
34
  # Get the list of available daily custom reports.
35
35
  #
36
36
  # Get daily custom reports.
37
+ # **Note:** This endpoint will be fully deprecated on December 1, 2022.
38
+ # Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
37
39
  #
38
40
  # @param opts [Hash] the optional parameters
39
41
  # @option opts [Integer] :page_size The number of files to return in the response. `[default=60]`.
@@ -42,12 +44,6 @@ module DatadogAPIClient::V1
42
44
  # @option opts [UsageSort] :sort The field to sort by: `[computed_on, size, start_date, end_date]`.
43
45
  # @return [Array<(UsageCustomReportsResponse, Integer, Hash)>] UsageCustomReportsResponse data, response status code and response headers
44
46
  def get_daily_custom_reports_with_http_info(opts = {})
45
- unstable_enabled = @api_client.config.unstable_operations["v1.get_daily_custom_reports".to_sym]
46
- if unstable_enabled
47
- @api_client.config.logger.warn format("Using unstable operation '%s'", "v1.get_daily_custom_reports")
48
- else
49
- raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v1.get_daily_custom_reports"))
50
- end
51
47
 
52
48
  if @api_client.config.debugging
53
49
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_daily_custom_reports ...'
@@ -153,7 +149,7 @@ module DatadogAPIClient::V1
153
149
  fail ArgumentError, "Missing the required parameter 'usage_type' when calling UsageMeteringAPI.get_hourly_usage_attribution"
154
150
  end
155
151
  # verify enum value
156
- allowable_values = ['api_usage', 'apm_host_usage', 'appsec_usage', 'browser_usage', 'container_usage', 'cspm_containers_usage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'cws_containers_usage', 'cws_hosts_usage', 'dbm_hosts_usage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_indexed_spans_usage', 'estimated_ingested_spans_usage', 'fargate_usage', 'functions_usage', 'indexed_logs_usage', 'infra_host_usage', 'invocations_usage', 'npm_host_usage', 'profiled_container_usage', 'profiled_host_usage', 'snmp_usage']
152
+ allowable_values = ['api_usage', 'apm_host_usage', 'appsec_usage', 'browser_usage', 'container_usage', 'cspm_containers_usage', 'cspm_hosts_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', 'indexed_logs_usage', 'infra_host_usage', 'invocations_usage', 'npm_host_usage', 'profiled_container_usage', 'profiled_host_usage', 'snmp_usage']
157
153
  if @api_client.config.client_side_validation && !allowable_values.include?(usage_type)
158
154
  fail ArgumentError, "invalid value for \"usage_type\", must be one of #{allowable_values}"
159
155
  end
@@ -215,7 +211,7 @@ module DatadogAPIClient::V1
215
211
  # Get hourly usage for incident management.
216
212
  #
217
213
  # Get hourly usage for incident management.
218
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
214
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
219
215
  #
220
216
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
221
217
  # @param opts [Hash] the optional parameters
@@ -284,7 +280,7 @@ module DatadogAPIClient::V1
284
280
  # Get hourly usage for ingested spans.
285
281
  #
286
282
  # Get hourly usage for ingested spans.
287
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
283
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
288
284
  #
289
285
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
290
286
  # @param opts [Hash] the optional parameters
@@ -353,6 +349,8 @@ module DatadogAPIClient::V1
353
349
  # Get the list of available monthly custom reports.
354
350
  #
355
351
  # Get monthly custom reports.
352
+ # **Note:** This endpoint will be fully deprecated on December 1, 2022.
353
+ # Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
356
354
  #
357
355
  # @param opts [Hash] the optional parameters
358
356
  # @option opts [Integer] :page_size The number of files to return in the response `[default=60].`
@@ -361,12 +359,6 @@ module DatadogAPIClient::V1
361
359
  # @option opts [UsageSort] :sort The field to sort by: `[computed_on, size, start_date, end_date]`.
362
360
  # @return [Array<(UsageCustomReportsResponse, Integer, Hash)>] UsageCustomReportsResponse data, response status code and response headers
363
361
  def get_monthly_custom_reports_with_http_info(opts = {})
364
- unstable_enabled = @api_client.config.unstable_operations["v1.get_monthly_custom_reports".to_sym]
365
- if unstable_enabled
366
- @api_client.config.logger.warn format("Using unstable operation '%s'", "v1.get_monthly_custom_reports")
367
- else
368
- raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v1.get_monthly_custom_reports"))
369
- end
370
362
 
371
363
  if @api_client.config.debugging
372
364
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_monthly_custom_reports ...'
@@ -474,7 +466,7 @@ module DatadogAPIClient::V1
474
466
  fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_monthly_usage_attribution"
475
467
  end
476
468
  # verify enum value
477
- allowable_values = ['api_usage', 'api_percentage', 'apm_host_usage', 'apm_host_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_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_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'indexed_logs_usage', 'indexed_logs_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', '*']
469
+ allowable_values = ['api_usage', 'api_percentage', 'apm_host_usage', 'apm_host_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_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', 'indexed_logs_usage', 'indexed_logs_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', '*']
478
470
  if @api_client.config.client_side_validation && !allowable_values.include?(fields)
479
471
  fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}"
480
472
  end
@@ -482,7 +474,7 @@ module DatadogAPIClient::V1
482
474
  if @api_client.config.client_side_validation && opts[:'sort_direction'] && !allowable_values.include?(opts[:'sort_direction'])
483
475
  fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{allowable_values}"
484
476
  end
485
- allowable_values = ['api_usage', 'api_percentage', 'apm_host_usage', 'apm_host_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_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_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'indexed_logs_usage', 'indexed_logs_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', '*']
477
+ allowable_values = ['api_usage', 'api_percentage', 'apm_host_usage', 'apm_host_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_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', 'indexed_logs_usage', 'indexed_logs_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', '*']
486
478
  if @api_client.config.client_side_validation && opts[:'sort_name'] && !allowable_values.include?(opts[:'sort_name'])
487
479
  fail ArgumentError, "invalid value for \"sort_name\", must be one of #{allowable_values}"
488
480
  end
@@ -546,17 +538,13 @@ module DatadogAPIClient::V1
546
538
  # Get specified daily custom reports.
547
539
  #
548
540
  # Get specified daily custom reports.
541
+ # **Note:** This endpoint will be fully deprecated on December 1, 2022.
542
+ # Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
549
543
  #
550
544
  # @param report_id [String] Date of the report in the format `YYYY-MM-DD`.
551
545
  # @param opts [Hash] the optional parameters
552
546
  # @return [Array<(UsageSpecifiedCustomReportsResponse, Integer, Hash)>] UsageSpecifiedCustomReportsResponse data, response status code and response headers
553
547
  def get_specified_daily_custom_reports_with_http_info(report_id, opts = {})
554
- unstable_enabled = @api_client.config.unstable_operations["v1.get_specified_daily_custom_reports".to_sym]
555
- if unstable_enabled
556
- @api_client.config.logger.warn format("Using unstable operation '%s'", "v1.get_specified_daily_custom_reports")
557
- else
558
- raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v1.get_specified_daily_custom_reports"))
559
- end
560
548
 
561
549
  if @api_client.config.debugging
562
550
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_specified_daily_custom_reports ...'
@@ -617,17 +605,13 @@ module DatadogAPIClient::V1
617
605
  # Get specified monthly custom reports.
618
606
  #
619
607
  # Get specified monthly custom reports.
608
+ # **Note:** This endpoint will be fully deprecated on December 1, 2022.
609
+ # Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
620
610
  #
621
611
  # @param report_id [String] Date of the report in the format `YYYY-MM-DD`.
622
612
  # @param opts [Hash] the optional parameters
623
613
  # @return [Array<(UsageSpecifiedCustomReportsResponse, Integer, Hash)>] UsageSpecifiedCustomReportsResponse data, response status code and response headers
624
614
  def get_specified_monthly_custom_reports_with_http_info(report_id, opts = {})
625
- unstable_enabled = @api_client.config.unstable_operations["v1.get_specified_monthly_custom_reports".to_sym]
626
- if unstable_enabled
627
- @api_client.config.logger.warn format("Using unstable operation '%s'", "v1.get_specified_monthly_custom_reports")
628
- else
629
- raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v1.get_specified_monthly_custom_reports"))
630
- end
631
615
 
632
616
  if @api_client.config.debugging
633
617
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_specified_monthly_custom_reports ...'
@@ -688,7 +672,7 @@ module DatadogAPIClient::V1
688
672
  # Get hourly usage for analyzed logs.
689
673
  #
690
674
  # Get hourly usage for analyzed logs (Security Monitoring).
691
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
675
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
692
676
  #
693
677
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
694
678
  # @param opts [Hash] the optional parameters
@@ -757,6 +741,8 @@ module DatadogAPIClient::V1
757
741
  # Get usage attribution.
758
742
  #
759
743
  # Get usage attribution.
744
+ # **Note:** This endpoint will be fully deprecated on December 1, 2022.
745
+ # Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
760
746
  #
761
747
  # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago.
762
748
  # @param fields [UsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types.
@@ -769,12 +755,6 @@ module DatadogAPIClient::V1
769
755
  # @option opts [Integer] :limit Maximum number of records to be returned.
770
756
  # @return [Array<(UsageAttributionResponse, Integer, Hash)>] UsageAttributionResponse data, response status code and response headers
771
757
  def get_usage_attribution_with_http_info(start_month, fields, opts = {})
772
- unstable_enabled = @api_client.config.unstable_operations["v1.get_usage_attribution".to_sym]
773
- if unstable_enabled
774
- @api_client.config.logger.warn format("Using unstable operation '%s'", "v1.get_usage_attribution")
775
- else
776
- raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v1.get_usage_attribution"))
777
- end
778
758
 
779
759
  if @api_client.config.debugging
780
760
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_attribution ...'
@@ -788,7 +768,7 @@ module DatadogAPIClient::V1
788
768
  fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_usage_attribution"
789
769
  end
790
770
  # verify enum value
791
- allowable_values = ['custom_timeseries_usage', 'container_usage', 'snmp_percentage', 'apm_host_usage', 'browser_usage', 'npm_host_percentage', 'infra_host_usage', 'custom_timeseries_percentage', 'container_percentage', 'api_usage', 'apm_host_percentage', 'infra_host_percentage', 'snmp_usage', 'browser_percentage', 'api_percentage', 'npm_host_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', 'fargate_usage', 'fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'dbm_hosts_usage', 'dbm_hosts_percentage', 'dbm_queries_usage', 'dbm_queries_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'appsec_usage', 'appsec_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', '*']
771
+ allowable_values = ['custom_timeseries_usage', 'container_usage', 'snmp_percentage', 'apm_host_usage', 'browser_usage', 'npm_host_percentage', 'infra_host_usage', 'custom_timeseries_percentage', 'container_percentage', 'api_usage', 'apm_host_percentage', 'infra_host_percentage', 'snmp_usage', 'browser_percentage', 'api_percentage', 'npm_host_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', 'fargate_usage', 'fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'dbm_hosts_usage', 'dbm_hosts_percentage', 'dbm_queries_usage', 'dbm_queries_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'appsec_usage', 'appsec_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', '*']
792
772
  if @api_client.config.client_side_validation && !allowable_values.include?(fields)
793
773
  fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}"
794
774
  end
@@ -796,7 +776,7 @@ module DatadogAPIClient::V1
796
776
  if @api_client.config.client_side_validation && opts[:'sort_direction'] && !allowable_values.include?(opts[:'sort_direction'])
797
777
  fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{allowable_values}"
798
778
  end
799
- allowable_values = ['api_percentage', 'snmp_usage', 'apm_host_usage', 'api_usage', 'appsec_usage', 'appsec_percentage', 'container_usage', 'custom_timeseries_percentage', 'container_percentage', 'apm_host_percentage', 'npm_host_percentage', 'browser_percentage', 'browser_usage', 'infra_host_percentage', 'snmp_percentage', 'npm_host_usage', 'infra_host_usage', 'custom_timeseries_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage']
779
+ allowable_values = ['api_percentage', 'snmp_usage', 'apm_host_usage', 'api_usage', 'appsec_usage', 'appsec_percentage', 'container_usage', 'custom_timeseries_percentage', 'container_percentage', 'apm_host_percentage', 'npm_host_percentage', 'browser_percentage', 'browser_usage', 'infra_host_percentage', 'snmp_percentage', 'npm_host_usage', 'infra_host_usage', 'custom_timeseries_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', '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']
800
780
  if @api_client.config.client_side_validation && opts[:'sort_name'] && !allowable_values.include?(opts[:'sort_name'])
801
781
  fail ArgumentError, "invalid value for \"sort_name\", must be one of #{allowable_values}"
802
782
  end
@@ -860,7 +840,7 @@ module DatadogAPIClient::V1
860
840
  # Get hourly usage for audit logs.
861
841
  #
862
842
  # Get hourly usage for audit logs.
863
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
843
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
864
844
  #
865
845
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
866
846
  # @param opts [Hash] the optional parameters
@@ -991,7 +971,7 @@ module DatadogAPIClient::V1
991
971
  # Get hourly usage for CI visibility.
992
972
  #
993
973
  # Get hourly usage for CI visibility (tests, pipeline, and spans).
994
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
974
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
995
975
  #
996
976
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
997
977
  # @param opts [Hash] the optional parameters
@@ -1060,7 +1040,7 @@ module DatadogAPIClient::V1
1060
1040
  # Get hourly usage for CSPM.
1061
1041
  #
1062
1042
  # Get hourly usage for cloud security posture management (CSPM).
1063
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1043
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1064
1044
  #
1065
1045
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
1066
1046
  # @param opts [Hash] the optional parameters
@@ -1129,7 +1109,7 @@ module DatadogAPIClient::V1
1129
1109
  # Get hourly usage for cloud workload security.
1130
1110
  #
1131
1111
  # Get hourly usage for cloud workload security.
1132
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1112
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1133
1113
  #
1134
1114
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
1135
1115
  # @param opts [Hash] the optional parameters
@@ -1198,7 +1178,7 @@ module DatadogAPIClient::V1
1198
1178
  # Get hourly usage for database monitoring.
1199
1179
  #
1200
1180
  # Get hourly usage for database monitoring
1201
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1181
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1202
1182
  #
1203
1183
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
1204
1184
  # @param opts [Hash] the optional parameters
@@ -1267,7 +1247,7 @@ module DatadogAPIClient::V1
1267
1247
  # Get hourly usage for Fargate.
1268
1248
  #
1269
1249
  # Get hourly usage for [Fargate](https://docs.datadoghq.com/integrations/ecs_fargate/).
1270
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1250
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1271
1251
  #
1272
1252
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
1273
1253
  # @param opts [Hash] the optional parameters
@@ -1336,7 +1316,7 @@ module DatadogAPIClient::V1
1336
1316
  # Get hourly usage for hosts and containers.
1337
1317
  #
1338
1318
  # Get hourly usage for hosts and containers.
1339
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1319
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1340
1320
  #
1341
1321
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
1342
1322
  # @param opts [Hash] the optional parameters
@@ -1405,7 +1385,7 @@ module DatadogAPIClient::V1
1405
1385
  # Get hourly usage for indexed spans.
1406
1386
  #
1407
1387
  # Get hourly usage for indexed spans.
1408
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1388
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1409
1389
  #
1410
1390
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
1411
1391
  # @param opts [Hash] the optional parameters
@@ -1474,7 +1454,7 @@ module DatadogAPIClient::V1
1474
1454
  # Get hourly usage for IoT.
1475
1455
  #
1476
1456
  # Get hourly usage for IoT.
1477
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1457
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1478
1458
  #
1479
1459
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
1480
1460
  # @param opts [Hash] the optional parameters
@@ -1543,7 +1523,7 @@ module DatadogAPIClient::V1
1543
1523
  # Get hourly usage for lambda.
1544
1524
  #
1545
1525
  # Get hourly usage for lambda.
1546
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1526
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1547
1527
  #
1548
1528
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
1549
1529
  # @param opts [Hash] the optional parameters
@@ -1612,7 +1592,7 @@ module DatadogAPIClient::V1
1612
1592
  # Get hourly usage for logs.
1613
1593
  #
1614
1594
  # Get hourly usage for logs.
1615
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1595
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1616
1596
  #
1617
1597
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
1618
1598
  # @param opts [Hash] the optional parameters
@@ -1751,7 +1731,7 @@ module DatadogAPIClient::V1
1751
1731
  # Get hourly logs usage by retention.
1752
1732
  #
1753
1733
  # Get hourly usage for indexed logs by retention period.
1754
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1734
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1755
1735
  #
1756
1736
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
1757
1737
  # @param opts [Hash] the optional parameters
@@ -1820,7 +1800,7 @@ module DatadogAPIClient::V1
1820
1800
  # get hourly usage for network flows.
1821
1801
  #
1822
1802
  # Get hourly usage for network flows.
1823
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1803
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1824
1804
  #
1825
1805
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
1826
1806
  # @param opts [Hash] the optional parameters
@@ -1889,7 +1869,7 @@ module DatadogAPIClient::V1
1889
1869
  # Get hourly usage for network hosts.
1890
1870
  #
1891
1871
  # Get hourly usage for network hosts.
1892
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1872
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1893
1873
  #
1894
1874
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
1895
1875
  # @param opts [Hash] the optional parameters
@@ -1958,7 +1938,7 @@ module DatadogAPIClient::V1
1958
1938
  # Get hourly usage for online archive.
1959
1939
  #
1960
1940
  # Get hourly usage for online archive.
1961
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
1941
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
1962
1942
  #
1963
1943
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
1964
1944
  # @param opts [Hash] the optional parameters
@@ -2027,7 +2007,7 @@ module DatadogAPIClient::V1
2027
2007
  # Get hourly usage for profiled hosts.
2028
2008
  #
2029
2009
  # Get hourly usage for profiled hosts.
2030
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
2010
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
2031
2011
  #
2032
2012
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
2033
2013
  # @param opts [Hash] the optional parameters
@@ -2096,7 +2076,7 @@ module DatadogAPIClient::V1
2096
2076
  # Get hourly usage for RUM sessions.
2097
2077
  #
2098
2078
  # Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) Sessions.
2099
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
2079
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
2100
2080
  #
2101
2081
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
2102
2082
  # @param opts [Hash] the optional parameters
@@ -2167,7 +2147,7 @@ module DatadogAPIClient::V1
2167
2147
  # Get hourly usage for RUM units.
2168
2148
  #
2169
2149
  # Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) Units.
2170
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
2150
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
2171
2151
  #
2172
2152
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
2173
2153
  # @param opts [Hash] the optional parameters
@@ -2236,7 +2216,7 @@ module DatadogAPIClient::V1
2236
2216
  # Get hourly usage for sensitive data scanner.
2237
2217
  #
2238
2218
  # Get hourly usage for sensitive data scanner.
2239
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
2219
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
2240
2220
  #
2241
2221
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
2242
2222
  # @param opts [Hash] the optional parameters
@@ -2305,7 +2285,7 @@ module DatadogAPIClient::V1
2305
2285
  # Get hourly usage for SNMP devices.
2306
2286
  #
2307
2287
  # Get hourly usage for SNMP devices.
2308
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
2288
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
2309
2289
  #
2310
2290
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
2311
2291
  # @param opts [Hash] the optional parameters
@@ -2444,7 +2424,7 @@ module DatadogAPIClient::V1
2444
2424
  # Get hourly usage for synthetics checks.
2445
2425
  #
2446
2426
  # Get hourly usage for [synthetics checks](https://docs.datadoghq.com/synthetics/).
2447
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
2427
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
2448
2428
  #
2449
2429
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
2450
2430
  # @param opts [Hash] the optional parameters
@@ -2513,7 +2493,7 @@ module DatadogAPIClient::V1
2513
2493
  # Get hourly usage for synthetics API checks.
2514
2494
  #
2515
2495
  # Get hourly usage for [synthetics API checks](https://docs.datadoghq.com/synthetics/).
2516
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
2496
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
2517
2497
  #
2518
2498
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
2519
2499
  # @param opts [Hash] the optional parameters
@@ -2582,7 +2562,7 @@ module DatadogAPIClient::V1
2582
2562
  # Get hourly usage for synthetics browser checks.
2583
2563
  #
2584
2564
  # Get hourly usage for synthetics browser checks.
2585
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
2565
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
2586
2566
  #
2587
2567
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
2588
2568
  # @param opts [Hash] the optional parameters
@@ -2651,7 +2631,7 @@ module DatadogAPIClient::V1
2651
2631
  # Get hourly usage for custom metrics.
2652
2632
  #
2653
2633
  # Get hourly usage for [custom metrics](https://docs.datadoghq.com/developers/metrics/custom_metrics/).
2654
- # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
2634
+ # **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
2655
2635
  #
2656
2636
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
2657
2637
  # @param opts [Hash] the optional parameters
@@ -29,5 +29,6 @@ module DatadogAPIClient::V1
29
29
  PROFILES = "profiles".freeze
30
30
  AUDIT = "audit".freeze
31
31
  EVENTS = "events".freeze
32
+ CI_TESTS = "ci_tests".freeze
32
33
  end
33
34
  end
@@ -34,6 +34,7 @@ module DatadogAPIClient::V1
34
34
  DBM_HOSTS_USAGE = "dbm_hosts_usage".freeze
35
35
  DBM_QUERIES_USAGE = "dbm_queries_usage".freeze
36
36
  ESTIMATED_INDEXED_LOGS_USAGE = "estimated_indexed_logs_usage".freeze
37
+ ESTIMATED_INGESTED_LOGS_USAGE = "estimated_ingested_logs_usage".freeze
37
38
  ESTIMATED_INDEXED_SPANS_USAGE = "estimated_indexed_spans_usage".freeze
38
39
  ESTIMATED_INGESTED_SPANS_USAGE = "estimated_ingested_spans_usage".freeze
39
40
  FARGATE_USAGE = "fargate_usage".freeze
@@ -25,5 +25,6 @@ module DatadogAPIClient::V1
25
25
  AUDIT_STREAM = "audit_stream".freeze
26
26
  RUM_ISSUE_STREAM = "rum_issue_stream".freeze
27
27
  APM_ISSUE_STREAM = "apm_issue_stream".freeze
28
+ LOGS_PATTERN_STREAM = "logs_pattern_stream".freeze
28
29
  end
29
30
  end
@@ -22,5 +22,6 @@ module DatadogAPIClient::V1
22
22
  include BaseEnumModel
23
23
 
24
24
  DEFLATE = "deflate".freeze
25
+ GZIP = "gzip".freeze
25
26
  end
26
27
  end
@@ -45,6 +45,12 @@ module DatadogAPIClient::V1
45
45
  # This is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.
46
46
  attr_accessor :evaluation_delay
47
47
 
48
+ # The time span after which groups with missing data are dropped from the monitor state.
49
+ # The minimum value is one hour, and the maximum value is 72 hours.
50
+ # Example values are: "60m", "1h", and "2d".
51
+ # This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
52
+ attr_accessor :group_retention_duration
53
+
48
54
  # Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold.
49
55
  attr_accessor :groupby_simple_monitor
50
56
 
@@ -91,6 +97,13 @@ module DatadogAPIClient::V1
91
97
  # A Boolean indicating whether this monitor notifies when data stops reporting.
92
98
  attr_accessor :notify_no_data
93
99
 
100
+ # Controls how groups or monitors are treated if an evaluation does not return any data points.
101
+ # The default option results in different behavior depending on the monitor query type.
102
+ # For monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.
103
+ # For monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.
104
+ # This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
105
+ attr_accessor :on_missing_data
106
+
94
107
  # The number of minutes after the last notification before a monitor re-notifies on the current status.
95
108
  # It only re-notifies if it’s not resolved.
96
109
  attr_accessor :renotify_interval
@@ -133,6 +146,7 @@ module DatadogAPIClient::V1
133
146
  :'enable_logs_sample' => :'enable_logs_sample',
134
147
  :'escalation_message' => :'escalation_message',
135
148
  :'evaluation_delay' => :'evaluation_delay',
149
+ :'group_retention_duration' => :'group_retention_duration',
136
150
  :'groupby_simple_monitor' => :'groupby_simple_monitor',
137
151
  :'include_tags' => :'include_tags',
138
152
  :'locked' => :'locked',
@@ -143,6 +157,7 @@ module DatadogAPIClient::V1
143
157
  :'no_data_timeframe' => :'no_data_timeframe',
144
158
  :'notify_audit' => :'notify_audit',
145
159
  :'notify_no_data' => :'notify_no_data',
160
+ :'on_missing_data' => :'on_missing_data',
146
161
  :'renotify_interval' => :'renotify_interval',
147
162
  :'renotify_occurrences' => :'renotify_occurrences',
148
163
  :'renotify_statuses' => :'renotify_statuses',
@@ -171,6 +186,7 @@ module DatadogAPIClient::V1
171
186
  :'enable_logs_sample' => :'Boolean',
172
187
  :'escalation_message' => :'String',
173
188
  :'evaluation_delay' => :'Integer',
189
+ :'group_retention_duration' => :'String',
174
190
  :'groupby_simple_monitor' => :'Boolean',
175
191
  :'include_tags' => :'Boolean',
176
192
  :'locked' => :'Boolean',
@@ -181,6 +197,7 @@ module DatadogAPIClient::V1
181
197
  :'no_data_timeframe' => :'Integer',
182
198
  :'notify_audit' => :'Boolean',
183
199
  :'notify_no_data' => :'Boolean',
200
+ :'on_missing_data' => :'OnMissingDataOption',
184
201
  :'renotify_interval' => :'Integer',
185
202
  :'renotify_occurrences' => :'Integer',
186
203
  :'renotify_statuses' => :'Array<MonitorRenotifyStatusType>',
@@ -252,6 +269,10 @@ module DatadogAPIClient::V1
252
269
  self.evaluation_delay = attributes[:'evaluation_delay']
253
270
  end
254
271
 
272
+ if attributes.key?(:'group_retention_duration')
273
+ self.group_retention_duration = attributes[:'group_retention_duration']
274
+ end
275
+
255
276
  if attributes.key?(:'groupby_simple_monitor')
256
277
  self.groupby_simple_monitor = attributes[:'groupby_simple_monitor']
257
278
  end
@@ -304,6 +325,10 @@ module DatadogAPIClient::V1
304
325
  self.notify_no_data = false
305
326
  end
306
327
 
328
+ if attributes.key?(:'on_missing_data')
329
+ self.on_missing_data = attributes[:'on_missing_data']
330
+ end
331
+
307
332
  if attributes.key?(:'renotify_interval')
308
333
  self.renotify_interval = attributes[:'renotify_interval']
309
334
  end
@@ -382,6 +407,7 @@ module DatadogAPIClient::V1
382
407
  enable_logs_sample == o.enable_logs_sample &&
383
408
  escalation_message == o.escalation_message &&
384
409
  evaluation_delay == o.evaluation_delay &&
410
+ group_retention_duration == o.group_retention_duration &&
385
411
  groupby_simple_monitor == o.groupby_simple_monitor &&
386
412
  include_tags == o.include_tags &&
387
413
  locked == o.locked &&
@@ -392,6 +418,7 @@ module DatadogAPIClient::V1
392
418
  no_data_timeframe == o.no_data_timeframe &&
393
419
  notify_audit == o.notify_audit &&
394
420
  notify_no_data == o.notify_no_data &&
421
+ on_missing_data == o.on_missing_data &&
395
422
  renotify_interval == o.renotify_interval &&
396
423
  renotify_occurrences == o.renotify_occurrences &&
397
424
  renotify_statuses == o.renotify_statuses &&
@@ -415,7 +442,7 @@ module DatadogAPIClient::V1
415
442
  # @return [Integer] Hash code
416
443
  # @!visibility private
417
444
  def hash
418
- [aggregation, device_ids, enable_logs_sample, escalation_message, evaluation_delay, groupby_simple_monitor, include_tags, locked, min_failure_duration, min_location_failed, new_group_delay, new_host_delay, no_data_timeframe, notify_audit, notify_no_data, renotify_interval, renotify_occurrences, renotify_statuses, require_full_window, silenced, synthetics_check_id, threshold_windows, thresholds, timeout_h, variables].hash
445
+ [aggregation, device_ids, enable_logs_sample, escalation_message, evaluation_delay, group_retention_duration, groupby_simple_monitor, include_tags, locked, min_failure_duration, min_location_failed, new_group_delay, new_host_delay, no_data_timeframe, notify_audit, notify_no_data, on_missing_data, renotify_interval, renotify_occurrences, renotify_statuses, require_full_window, silenced, synthetics_check_id, threshold_windows, thresholds, timeout_h, variables].hash
419
446
  end
420
447
  end
421
448
  end
@@ -43,6 +43,9 @@ module DatadogAPIClient::V1
43
43
  # Whether to show the time that has elapsed since the monitor/group triggered.
44
44
  attr_accessor :show_last_triggered
45
45
 
46
+ # Whether to show the priorities column.
47
+ attr_accessor :show_priority
48
+
46
49
  # Widget sorting methods.
47
50
  attr_accessor :sort
48
51
 
@@ -74,6 +77,7 @@ module DatadogAPIClient::V1
74
77
  :'hide_zero_counts' => :'hide_zero_counts',
75
78
  :'query' => :'query',
76
79
  :'show_last_triggered' => :'show_last_triggered',
80
+ :'show_priority' => :'show_priority',
77
81
  :'sort' => :'sort',
78
82
  :'start' => :'start',
79
83
  :'summary_type' => :'summary_type',
@@ -100,6 +104,7 @@ module DatadogAPIClient::V1
100
104
  :'hide_zero_counts' => :'Boolean',
101
105
  :'query' => :'String',
102
106
  :'show_last_triggered' => :'Boolean',
107
+ :'show_priority' => :'Boolean',
103
108
  :'sort' => :'WidgetMonitorSummarySort',
104
109
  :'start' => :'Integer',
105
110
  :'summary_type' => :'WidgetSummaryType',
@@ -157,6 +162,12 @@ module DatadogAPIClient::V1
157
162
  self.show_last_triggered = attributes[:'show_last_triggered']
158
163
  end
159
164
 
165
+ if attributes.key?(:'show_priority')
166
+ self.show_priority = attributes[:'show_priority']
167
+ else
168
+ self.show_priority = false
169
+ end
170
+
160
171
  if attributes.key?(:'sort')
161
172
  self.sort = attributes[:'sort']
162
173
  end
@@ -229,6 +240,7 @@ module DatadogAPIClient::V1
229
240
  hide_zero_counts == o.hide_zero_counts &&
230
241
  query == o.query &&
231
242
  show_last_triggered == o.show_last_triggered &&
243
+ show_priority == o.show_priority &&
232
244
  sort == o.sort &&
233
245
  start == o.start &&
234
246
  summary_type == o.summary_type &&
@@ -249,7 +261,7 @@ module DatadogAPIClient::V1
249
261
  # @return [Integer] Hash code
250
262
  # @!visibility private
251
263
  def hash
252
- [color_preference, count, display_format, hide_zero_counts, query, show_last_triggered, sort, start, summary_type, title, title_align, title_size, type].hash
264
+ [color_preference, count, display_format, hide_zero_counts, query, show_last_triggered, show_priority, sort, start, summary_type, title, title_align, title_size, type].hash
253
265
  end
254
266
  end
255
267
  end
@@ -47,6 +47,8 @@ module DatadogAPIClient::V1
47
47
  DBM_QUERIES_USAGE = "dbm_queries_usage".freeze
48
48
  ESTIMATED_INDEXED_LOGS_USAGE = "estimated_indexed_logs_usage".freeze
49
49
  ESTIMATED_INDEXED_LOGS_PERCENTAGE = "estimated_indexed_logs_percentage".freeze
50
+ ESTIMATED_INGESTED_LOGS_USAGE = "estimated_ingested_logs_usage".freeze
51
+ ESTIMATED_INGESTED_LOGS_PERCENTAGE = "estimated_ingested_logs_percentage".freeze
50
52
  ESTIMATED_INDEXED_SPANS_USAGE = "estimated_indexed_spans_usage".freeze
51
53
  ESTIMATED_INDEXED_SPANS_PERCENTAGE = "estimated_indexed_spans_percentage".freeze
52
54
  ESTIMATED_INGESTED_SPANS_USAGE = "estimated_ingested_spans_usage".freeze