datadog_api_client 1.11.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/conftest.py +2 -1
  4. data/.generator/schemas/v1/openapi.yaml +293 -116
  5. data/.generator/schemas/v2/openapi.yaml +1156 -41
  6. data/.generator/src/generator/cli.py +57 -40
  7. data/.generator/src/generator/openapi.py +12 -6
  8. data/.generator/src/generator/templates/api.j2 +14 -13
  9. data/.generator/src/generator/templates/api_client.j2 +63 -11
  10. data/.generator/src/generator/templates/configuration.j2 +12 -8
  11. data/.generator/src/generator/templates/example.j2 +6 -1
  12. data/.generator/src/generator/templates/inflector.j2 +28 -0
  13. data/.generator/src/generator/templates/model_base.j2 +2 -2
  14. data/.generator/src/generator/templates/model_oneof.j2 +1 -1
  15. data/.generator/src/generator/templates/package.j2 +7 -12
  16. data/.github/workflows/approved_status.yml +0 -2
  17. data/.github/workflows/codeql-analysis.yml +49 -0
  18. data/.github/workflows/docs.yml +1 -1
  19. data/.github/workflows/prepare_release.yml +1 -1
  20. data/.github/workflows/publish.yml +1 -1
  21. data/.github/workflows/release.yml +1 -1
  22. data/.github/workflows/test.yml +4 -6
  23. data/.github/workflows/test_integration.yml +1 -1
  24. data/.pre-commit-config.yaml +3 -12
  25. data/CHANGELOG.md +44 -0
  26. data/Gemfile +1 -0
  27. data/Makefile +1 -2
  28. data/README.md +13 -13
  29. data/datadog_api_client.gemspec +2 -0
  30. data/examples/v1/downtimes/CreateDowntime_1393233946.rb +3 -0
  31. data/examples/v1/downtimes/CreateDowntime_2908359488.rb +3 -0
  32. data/examples/v1/downtimes/CreateDowntime_3059354445.rb +3 -0
  33. data/examples/v1/events/ListEvents.rb +1 -1
  34. data/examples/v1/pagerduty-integration/DeletePagerDutyIntegrationService.rb +2 -2
  35. data/examples/v1/service-level-objectives/GetSLOHistory.rb +1 -1
  36. data/examples/v1/service-level-objectives/SearchSLO.rb +1 -1
  37. data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +1 -1
  38. data/examples/v1/synthetics/GetAPITestLatestResults.rb +1 -1
  39. data/examples/v1/synthetics/GetAPITestResult.rb +1 -1
  40. data/examples/v1/synthetics/GetBrowserTestLatestResults.rb +1 -1
  41. data/examples/v1/synthetics/GetBrowserTestResult.rb +1 -1
  42. data/examples/v1/usage-metering/GetDailyCustomReports.rb +1 -1
  43. data/examples/v1/usage-metering/GetHourlyUsageAttribution.rb +0 -3
  44. data/examples/v1/usage-metering/GetMonthlyCustomReports.rb +1 -1
  45. data/examples/v1/usage-metering/GetMonthlyUsageAttribution.rb +0 -3
  46. data/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.rb +1 -1
  47. data/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb +1 -1
  48. data/examples/v1/usage-metering/GetUsageAttribution.rb +1 -1
  49. data/examples/v1/usage-metering/GetUsageCIApp.rb +2 -5
  50. data/examples/v1/usage-metering/GetUsageCIApp_1064440884.rb +8 -0
  51. data/examples/v1/usage-metering/GetUsageCWS.rb +2 -5
  52. data/examples/v1/usage-metering/GetUsageCWS_736958514.rb +8 -0
  53. data/examples/v1/usage-metering/GetUsageDBM.rb +2 -5
  54. data/examples/v1/usage-metering/GetUsageDBM_3446806203.rb +8 -0
  55. data/examples/v1/usage-metering/GetUsageLambda.rb +2 -5
  56. data/examples/v1/usage-metering/GetUsageLambda_3132428705.rb +8 -0
  57. data/examples/v1/usage-metering/GetUsageLogs.rb +2 -5
  58. data/examples/v1/usage-metering/GetUsageLogsByIndex.rb +2 -5
  59. data/examples/v1/usage-metering/GetUsageLogsByIndex_1025184776.rb +8 -0
  60. data/examples/v1/usage-metering/GetUsageLogs_2562396405.rb +8 -0
  61. data/examples/v1/usage-metering/GetUsageNetworkFlows.rb +2 -5
  62. data/examples/v1/usage-metering/GetUsageNetworkFlows_1239422069.rb +8 -0
  63. data/examples/v1/usage-metering/GetUsageNetworkHosts.rb +2 -5
  64. data/examples/v1/usage-metering/GetUsageNetworkHosts_1249907835.rb +8 -0
  65. data/examples/v1/usage-metering/GetUsageOnlineArchive.rb +2 -5
  66. data/examples/v1/usage-metering/GetUsageOnlineArchive_1501172903.rb +8 -0
  67. data/examples/v1/usage-metering/GetUsageRumSessions.rb +2 -5
  68. data/examples/v1/usage-metering/GetUsageRumSessions_714937291.rb +8 -0
  69. data/examples/v1/usage-metering/GetUsageRumUnits.rb +2 -5
  70. data/examples/v1/usage-metering/GetUsageRumUnits_3959755399.rb +8 -0
  71. data/examples/v1/usage-metering/GetUsageSDS.rb +2 -5
  72. data/examples/v1/usage-metering/GetUsageSDS_271128478.rb +8 -0
  73. data/examples/v1/usage-metering/GetUsageSynthetics.rb +1 -1
  74. data/examples/v1/usage-metering/GetUsageSyntheticsAPI.rb +2 -5
  75. data/examples/v1/usage-metering/GetUsageSyntheticsAPI_4048033529.rb +8 -0
  76. data/examples/v1/usage-metering/GetUsageSyntheticsBrowser.rb +2 -5
  77. data/examples/v1/usage-metering/GetUsageSyntheticsBrowser_1704663299.rb +8 -0
  78. data/examples/v2/audit/ListAuditLogs_1275402458.rb +8 -0
  79. data/examples/v2/audit/SearchAuditLogs_3215529662.rb +22 -0
  80. data/examples/v2/events/ListEvents.rb +8 -0
  81. data/examples/v2/events/ListEvents_1527584014.rb +13 -0
  82. data/examples/v2/events/ListEvents_2663715109.rb +14 -0
  83. data/examples/v2/events/SearchEvents.rb +23 -0
  84. data/examples/v2/events/SearchEvents_3856995058.rb +25 -0
  85. data/examples/v2/incident-services/CreateIncidentService.rb +1 -1
  86. data/examples/v2/incident-services/DeleteIncidentService.rb +1 -1
  87. data/examples/v2/incident-services/GetIncidentService.rb +1 -1
  88. data/examples/v2/incident-services/ListIncidentServices.rb +1 -1
  89. data/examples/v2/incident-services/UpdateIncidentService.rb +1 -1
  90. data/examples/v2/incident-teams/CreateIncidentTeam.rb +1 -1
  91. data/examples/v2/incident-teams/DeleteIncidentTeam.rb +1 -1
  92. data/examples/v2/incident-teams/GetIncidentTeam.rb +1 -1
  93. data/examples/v2/incident-teams/ListIncidentTeams.rb +1 -1
  94. data/examples/v2/incident-teams/UpdateIncidentTeam.rb +1 -1
  95. data/examples/v2/incidents/CreateIncident.rb +1 -1
  96. data/examples/v2/incidents/DeleteIncident.rb +1 -1
  97. data/examples/v2/incidents/GetIncident.rb +1 -1
  98. data/examples/v2/incidents/ListIncidents.rb +1 -1
  99. data/examples/v2/incidents/ListIncidents_2665616954.rb +11 -0
  100. data/examples/v2/incidents/UpdateIncident.rb +1 -1
  101. data/examples/v2/incidents/UpdateIncident_1009194038.rb +1 -1
  102. data/examples/v2/incidents/UpdateIncident_3369341440.rb +1 -1
  103. data/examples/v2/logs/ListLogsGet_738202670.rb +8 -0
  104. data/examples/v2/logs/ListLogs_3138392594.rb +25 -0
  105. data/examples/v2/metrics/SubmitMetrics.rb +6 -0
  106. data/examples/v2/processes/ListProcesses_797840471.rb +8 -0
  107. data/examples/v2/rum/ListRUMEvents_2680821282.rb +8 -0
  108. data/examples/v2/rum/SearchRUMEvents_574690310.rb +21 -0
  109. data/examples/v2/security-monitoring/EditSecurityMonitoringSignalAssignee.rb +15 -0
  110. data/examples/v2/security-monitoring/EditSecurityMonitoringSignalIncidents.rb +15 -0
  111. data/examples/v2/security-monitoring/EditSecurityMonitoringSignalState.rb +14 -0
  112. data/examples/v2/security-monitoring/ListSecurityMonitoringSignals_3960412991.rb +8 -0
  113. data/examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb +20 -0
  114. data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +1 -0
  115. data/examples/v2/usage-metering/GetEstimatedCostByOrg.rb +5 -2
  116. data/examples/v2/usage-metering/GetEstimatedCostByOrg_2734954020.rb +11 -0
  117. data/examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb +11 -0
  118. data/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.rb +2 -5
  119. data/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring_3959166796.rb +8 -0
  120. data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb +2 -5
  121. data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations_1436752065.rb +8 -0
  122. data/examples/v2/usage-metering/GetUsageObservabilityPipelines.rb +2 -5
  123. data/examples/v2/usage-metering/GetUsageObservabilityPipelines_970725512.rb +8 -0
  124. data/lib/datadog_api_client/{v2/api_client.rb → api_client.rb} +63 -11
  125. data/lib/datadog_api_client/api_key_configuration.rb +1 -18
  126. data/lib/datadog_api_client/{v1/configuration.rb → configuration.rb} +84 -31
  127. data/lib/datadog_api_client/inflector.rb +1293 -0
  128. data/lib/datadog_api_client/models.rb +66 -0
  129. data/lib/datadog_api_client/v1/api/authentication_api.rb +3 -11
  130. data/lib/datadog_api_client/v1/api/aws_integration_api.rb +19 -91
  131. data/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb +15 -71
  132. data/lib/datadog_api_client/v1/api/azure_integration_api.rb +11 -51
  133. data/lib/datadog_api_client/v1/api/dashboard_lists_api.rb +11 -51
  134. data/lib/datadog_api_client/v1/api/dashboards_api.rb +15 -71
  135. data/lib/datadog_api_client/v1/api/downtimes_api.rb +15 -71
  136. data/lib/datadog_api_client/v1/api/events_api.rb +9 -33
  137. data/lib/datadog_api_client/v1/api/gcp_integration_api.rb +9 -41
  138. data/lib/datadog_api_client/v1/api/hosts_api.rb +9 -41
  139. data/lib/datadog_api_client/v1/api/ip_ranges_api.rb +3 -11
  140. data/lib/datadog_api_client/v1/api/key_management_api.rb +21 -101
  141. data/lib/datadog_api_client/v1/api/logs_api.rb +5 -21
  142. data/lib/datadog_api_client/v1/api/logs_indexes_api.rb +13 -61
  143. data/lib/datadog_api_client/v1/api/logs_pipelines_api.rb +15 -71
  144. data/lib/datadog_api_client/v1/api/metrics_api.rb +15 -71
  145. data/lib/datadog_api_client/v1/api/monitors_api.rb +21 -101
  146. data/lib/datadog_api_client/v1/api/notebooks_api.rb +11 -51
  147. data/lib/datadog_api_client/v1/api/organizations_api.rb +13 -61
  148. data/lib/datadog_api_client/v1/api/pager_duty_integration_api.rb +9 -41
  149. data/lib/datadog_api_client/v1/api/security_monitoring_api.rb +8 -32
  150. data/lib/datadog_api_client/v1/api/service_checks_api.rb +3 -11
  151. data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +11 -51
  152. data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +31 -99
  153. data/lib/datadog_api_client/v1/api/slack_integration_api.rb +11 -51
  154. data/lib/datadog_api_client/v1/api/snapshots_api.rb +3 -11
  155. data/lib/datadog_api_client/v1/api/synthetics_api.rb +55 -271
  156. data/lib/datadog_api_client/v1/api/tags_api.rb +11 -51
  157. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +171 -418
  158. data/lib/datadog_api_client/v1/api/users_api.rb +11 -51
  159. data/lib/datadog_api_client/v1/api/webhooks_integration_api.rb +17 -81
  160. data/lib/datadog_api_client/v1/model_base.rb +2 -2
  161. data/lib/datadog_api_client/v1/models/distribution_point_item.rb +1 -1
  162. data/lib/datadog_api_client/v1/models/distribution_widget_histogram_request_query.rb +1 -1
  163. data/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb +1 -1
  164. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb +5 -1
  165. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +7 -0
  166. data/lib/datadog_api_client/v1/models/logs_processor.rb +1 -1
  167. data/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb +1 -1
  168. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb +6 -2
  169. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +14 -0
  170. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +21 -1
  171. data/lib/datadog_api_client/v1/models/notebook_cell_create_request_attributes.rb +1 -1
  172. data/lib/datadog_api_client/v1/models/notebook_cell_response_attributes.rb +1 -1
  173. data/lib/datadog_api_client/v1/models/notebook_cell_time.rb +1 -1
  174. data/lib/datadog_api_client/v1/models/notebook_cell_update_request_attributes.rb +1 -1
  175. data/lib/datadog_api_client/v1/models/notebook_global_time.rb +1 -1
  176. data/lib/datadog_api_client/v1/models/notebook_update_cell.rb +1 -1
  177. data/lib/datadog_api_client/v1/models/sunburst_widget_legend.rb +1 -1
  178. data/lib/datadog_api_client/v1/models/synthetics_assertion.rb +1 -1
  179. data/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb +1 -1
  180. data/lib/datadog_api_client/v1/models/tree_map_color_by.rb +1 -1
  181. data/lib/datadog_api_client/v1/models/tree_map_group_by.rb +1 -1
  182. data/lib/datadog_api_client/v1/models/tree_map_size_by.rb +1 -1
  183. data/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb +28 -6
  184. data/lib/datadog_api_client/v1/models/usage_attribution_body.rb +6 -2
  185. data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +2 -0
  186. data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +2 -0
  187. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +22 -2
  188. data/lib/datadog_api_client/v1/models/widget_definition.rb +1 -1
  189. data/lib/datadog_api_client/v2/api/audit_api.rb +11 -25
  190. data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +11 -51
  191. data/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb +13 -61
  192. data/lib/datadog_api_client/v2/api/dashboard_lists_api.rb +9 -41
  193. data/lib/datadog_api_client/v2/api/events_api.rb +228 -0
  194. data/lib/datadog_api_client/v2/api/incident_services_api.rb +36 -46
  195. data/lib/datadog_api_client/v2/api/incident_teams_api.rb +36 -46
  196. data/lib/datadog_api_client/v2/api/incidents_api.rb +39 -48
  197. data/lib/datadog_api_client/v2/api/key_management_api.rb +29 -141
  198. data/lib/datadog_api_client/v2/api/logs_api.rb +15 -45
  199. data/lib/datadog_api_client/v2/api/logs_archives_api.rb +21 -101
  200. data/lib/datadog_api_client/v2/api/logs_metrics_api.rb +11 -51
  201. data/lib/datadog_api_client/v2/api/metrics_api.rb +26 -112
  202. data/lib/datadog_api_client/v2/api/opsgenie_integration_api.rb +11 -51
  203. data/lib/datadog_api_client/v2/api/organizations_api.rb +3 -11
  204. data/lib/datadog_api_client/v2/api/processes_api.rb +6 -13
  205. data/lib/datadog_api_client/v2/api/roles_api.rb +27 -131
  206. data/lib/datadog_api_client/v2/api/rum_api.rb +13 -35
  207. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +247 -125
  208. data/lib/datadog_api_client/v2/api/service_accounts_api.rb +11 -51
  209. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +132 -68
  210. data/lib/datadog_api_client/v2/api/users_api.rb +21 -101
  211. data/lib/datadog_api_client/v2/model_base.rb +2 -2
  212. data/lib/datadog_api_client/v2/models/api_key_response_included_item.rb +1 -1
  213. data/lib/datadog_api_client/v2/models/application_key_response_included_item.rb +1 -1
  214. data/lib/datadog_api_client/v2/models/authn_mapping_included.rb +1 -1
  215. data/lib/datadog_api_client/v2/models/event.rb +141 -0
  216. data/lib/datadog_api_client/v2/models/event_attributes.rb +305 -0
  217. data/lib/datadog_api_client/v2/models/event_priority.rb +27 -0
  218. data/lib/datadog_api_client/v2/models/event_response.rb +133 -0
  219. data/lib/datadog_api_client/v2/models/event_response_attributes.rb +133 -0
  220. data/lib/datadog_api_client/v2/models/event_status_type.rb +35 -0
  221. data/lib/datadog_api_client/v2/models/event_type.rb +26 -0
  222. data/lib/datadog_api_client/v2/models/events_list_request.rb +142 -0
  223. data/lib/datadog_api_client/v2/models/events_list_response.rb +133 -0
  224. data/lib/datadog_api_client/v2/models/events_list_response_links.rb +112 -0
  225. data/lib/datadog_api_client/v2/models/events_query_filter.rb +137 -0
  226. data/lib/datadog_api_client/v2/models/events_query_options.rb +124 -0
  227. data/lib/datadog_api_client/v2/models/events_request_page.rb +134 -0
  228. data/lib/datadog_api_client/v2/models/events_response_metadata.rb +144 -0
  229. data/lib/datadog_api_client/v2/models/events_response_metadata_page.rb +112 -0
  230. data/lib/datadog_api_client/v2/models/events_sort.rb +27 -0
  231. data/lib/datadog_api_client/v2/models/events_warning.rb +131 -0
  232. data/lib/datadog_api_client/v2/models/hourly_usage.rb +133 -0
  233. data/lib/datadog_api_client/v2/models/hourly_usage_attributes.rb +163 -0
  234. data/lib/datadog_api_client/v2/models/hourly_usage_measurement.rb +122 -0
  235. data/lib/datadog_api_client/v2/models/hourly_usage_metadata.rb +111 -0
  236. data/lib/datadog_api_client/v2/models/hourly_usage_pagination.rb +112 -0
  237. data/lib/datadog_api_client/v2/models/hourly_usage_response.rb +123 -0
  238. data/lib/datadog_api_client/v2/models/incident_field_attributes.rb +1 -1
  239. data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +1 -1
  240. data/lib/datadog_api_client/v2/models/incident_service_included_items.rb +1 -1
  241. data/lib/datadog_api_client/v2/models/incident_team_included_items.rb +1 -1
  242. data/lib/datadog_api_client/v2/models/incident_timeline_cell_create_attributes.rb +1 -1
  243. data/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value.rb +1 -1
  244. data/lib/datadog_api_client/v2/models/logs_archive_create_request_destination.rb +1 -1
  245. data/lib/datadog_api_client/v2/models/logs_archive_destination.rb +1 -1
  246. data/lib/datadog_api_client/v2/models/logs_group_by_missing.rb +1 -1
  247. data/lib/datadog_api_client/v2/models/logs_group_by_total.rb +1 -1
  248. data/lib/datadog_api_client/v2/models/metric_intake_type.rb +1 -2
  249. data/lib/datadog_api_client/v2/models/metric_resource.rb +2 -2
  250. data/lib/datadog_api_client/v2/models/metric_series.rb +1 -1
  251. data/lib/datadog_api_client/v2/models/metric_volumes.rb +1 -1
  252. data/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations.rb +1 -1
  253. data/lib/datadog_api_client/v2/models/monitor_type.rb +215 -0
  254. data/lib/datadog_api_client/v2/models/rum_aggregate_bucket_value.rb +1 -1
  255. data/lib/datadog_api_client/v2/models/rum_group_by_missing.rb +1 -1
  256. data/lib/datadog_api_client/v2/models/rum_group_by_total.rb +1 -1
  257. data/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +13 -1
  258. data/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb +13 -1
  259. data/lib/datadog_api_client/v2/models/security_monitoring_signal_archive_reason.rb +29 -0
  260. data/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_attributes.rb +132 -0
  261. data/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_data.rb +122 -0
  262. data/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_request.rb +122 -0
  263. data/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_attributes.rb +134 -0
  264. data/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_data.rb +122 -0
  265. data/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_request.rb +122 -0
  266. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state.rb +28 -0
  267. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_attributes.rb +152 -0
  268. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb +122 -0
  269. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_request.rb +122 -0
  270. data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_attributes.rb +248 -0
  271. data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb +111 -0
  272. data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_response.rb +122 -0
  273. data/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb +152 -0
  274. data/lib/datadog_api_client/v2/models/user_response_included_item.rb +1 -1
  275. data/lib/datadog_api_client/version.rb +1 -1
  276. data/lib/datadog_api_client.rb +13 -5
  277. data/spec/{v1/api_client_spec.rb → api_client_spec.rb} +29 -29
  278. data/spec/{v1/configuration_spec.rb → configuration_spec.rb} +3 -3
  279. data/spec/spec_helper.rb +1 -3
  280. metadata +109 -22
  281. data/.dockerignore +0 -1
  282. data/.generator/src/generator/templates/api_error.j2 +0 -49
  283. data/examples/v2/usage-metering/GetEstimatedCostByOrg_1171921972.rb +0 -9
  284. data/examples/v2/usage-metering/GetEstimatedCostByOrg_627383212.rb +0 -9
  285. data/lib/datadog_api_client/v1/api_client.rb +0 -453
  286. data/lib/datadog_api_client/v1/api_error.rb +0 -60
  287. data/lib/datadog_api_client/v1.rb +0 -813
  288. data/lib/datadog_api_client/v2/api_error.rb +0 -60
  289. data/lib/datadog_api_client/v2/configuration.rb +0 -420
  290. data/lib/datadog_api_client/v2.rb +0 -555
  291. data/spec/v2/api_client_spec.rb +0 -210
  292. data/spec/v2/configuration_spec.rb +0 -45
@@ -19,7 +19,7 @@ module DatadogAPIClient::V1
19
19
  class UsageMeteringAPI
20
20
  attr_accessor :api_client
21
21
 
22
- def initialize(api_client = APIClient.default)
22
+ def initialize(api_client = DatadogAPIClient::APIClient.default)
23
23
  @api_client = api_client
24
24
  end
25
25
 
@@ -42,14 +42,11 @@ module DatadogAPIClient::V1
42
42
  # @option opts [UsageSort] :sort The field to sort by: `[computed_on, size, start_date, end_date]`.
43
43
  # @return [Array<(UsageCustomReportsResponse, Integer, Hash)>] UsageCustomReportsResponse data, response status code and response headers
44
44
  def get_daily_custom_reports_with_http_info(opts = {})
45
-
46
- if @api_client.config.unstable_operations.has_key?(:get_daily_custom_reports)
47
- unstable_enabled = @api_client.config.unstable_operations[:get_daily_custom_reports]
48
- if unstable_enabled
49
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_daily_custom_reports")
50
- else
51
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_daily_custom_reports"))
52
- end
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"))
53
50
  end
54
51
 
55
52
  if @api_client.config.debugging
@@ -97,7 +94,8 @@ module DatadogAPIClient::V1
97
94
  :form_params => form_params,
98
95
  :body => post_body,
99
96
  :auth_names => auth_names,
100
- :return_type => return_type
97
+ :return_type => return_type,
98
+ :api_version => "V1"
101
99
  )
102
100
 
103
101
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -143,15 +141,6 @@ module DatadogAPIClient::V1
143
141
  # @return [Array<(HourlyUsageAttributionResponse, Integer, Hash)>] HourlyUsageAttributionResponse data, response status code and response headers
144
142
  def get_hourly_usage_attribution_with_http_info(start_hr, usage_type, opts = {})
145
143
 
146
- if @api_client.config.unstable_operations.has_key?(:get_hourly_usage_attribution)
147
- unstable_enabled = @api_client.config.unstable_operations[:get_hourly_usage_attribution]
148
- if unstable_enabled
149
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_hourly_usage_attribution")
150
- else
151
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_hourly_usage_attribution"))
152
- end
153
- end
154
-
155
144
  if @api_client.config.debugging
156
145
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_hourly_usage_attribution ...'
157
146
  end
@@ -164,7 +153,7 @@ module DatadogAPIClient::V1
164
153
  fail ArgumentError, "Missing the required parameter 'usage_type' when calling UsageMeteringAPI.get_hourly_usage_attribution"
165
154
  end
166
155
  # verify enum value
167
- allowable_values = ['api_usage', 'apm_host_usage', 'appsec_usage', 'browser_usage', 'container_usage', 'custom_timeseries_usage', 'estimated_indexed_logs_usage', 'estimated_indexed_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']
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']
168
157
  if @api_client.config.client_side_validation && !allowable_values.include?(usage_type)
169
158
  fail ArgumentError, "invalid value for \"usage_type\", must be one of #{allowable_values}"
170
159
  end
@@ -204,7 +193,8 @@ module DatadogAPIClient::V1
204
193
  :form_params => form_params,
205
194
  :body => post_body,
206
195
  :auth_names => auth_names,
207
- :return_type => return_type
196
+ :return_type => return_type,
197
+ :api_version => "V1"
208
198
  )
209
199
 
210
200
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -225,6 +215,7 @@ module DatadogAPIClient::V1
225
215
  # Get hourly usage for incident management.
226
216
  #
227
217
  # 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)
228
219
  #
229
220
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
230
221
  # @param opts [Hash] the optional parameters
@@ -232,15 +223,6 @@ module DatadogAPIClient::V1
232
223
  # @return [Array<(UsageIncidentManagementResponse, Integer, Hash)>] UsageIncidentManagementResponse data, response status code and response headers
233
224
  def get_incident_management_with_http_info(start_hr, opts = {})
234
225
 
235
- if @api_client.config.unstable_operations.has_key?(:get_incident_management)
236
- unstable_enabled = @api_client.config.unstable_operations[:get_incident_management]
237
- if unstable_enabled
238
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_incident_management")
239
- else
240
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_incident_management"))
241
- end
242
- end
243
-
244
226
  if @api_client.config.debugging
245
227
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_incident_management ...'
246
228
  end
@@ -280,7 +262,8 @@ module DatadogAPIClient::V1
280
262
  :form_params => form_params,
281
263
  :body => post_body,
282
264
  :auth_names => auth_names,
283
- :return_type => return_type
265
+ :return_type => return_type,
266
+ :api_version => "V1"
284
267
  )
285
268
 
286
269
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -301,6 +284,7 @@ module DatadogAPIClient::V1
301
284
  # Get hourly usage for ingested spans.
302
285
  #
303
286
  # 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)
304
288
  #
305
289
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
306
290
  # @param opts [Hash] the optional parameters
@@ -308,15 +292,6 @@ module DatadogAPIClient::V1
308
292
  # @return [Array<(UsageIngestedSpansResponse, Integer, Hash)>] UsageIngestedSpansResponse data, response status code and response headers
309
293
  def get_ingested_spans_with_http_info(start_hr, opts = {})
310
294
 
311
- if @api_client.config.unstable_operations.has_key?(:get_ingested_spans)
312
- unstable_enabled = @api_client.config.unstable_operations[:get_ingested_spans]
313
- if unstable_enabled
314
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_ingested_spans")
315
- else
316
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_ingested_spans"))
317
- end
318
- end
319
-
320
295
  if @api_client.config.debugging
321
296
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_ingested_spans ...'
322
297
  end
@@ -356,7 +331,8 @@ module DatadogAPIClient::V1
356
331
  :form_params => form_params,
357
332
  :body => post_body,
358
333
  :auth_names => auth_names,
359
- :return_type => return_type
334
+ :return_type => return_type,
335
+ :api_version => "V1"
360
336
  )
361
337
 
362
338
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -385,14 +361,11 @@ module DatadogAPIClient::V1
385
361
  # @option opts [UsageSort] :sort The field to sort by: `[computed_on, size, start_date, end_date]`.
386
362
  # @return [Array<(UsageCustomReportsResponse, Integer, Hash)>] UsageCustomReportsResponse data, response status code and response headers
387
363
  def get_monthly_custom_reports_with_http_info(opts = {})
388
-
389
- if @api_client.config.unstable_operations.has_key?(:get_monthly_custom_reports)
390
- unstable_enabled = @api_client.config.unstable_operations[:get_monthly_custom_reports]
391
- if unstable_enabled
392
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_monthly_custom_reports")
393
- else
394
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_monthly_custom_reports"))
395
- end
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"))
396
369
  end
397
370
 
398
371
  if @api_client.config.debugging
@@ -440,7 +413,8 @@ module DatadogAPIClient::V1
440
413
  :form_params => form_params,
441
414
  :body => post_body,
442
415
  :auth_names => auth_names,
443
- :return_type => return_type
416
+ :return_type => return_type,
417
+ :api_version => "V1"
444
418
  )
445
419
 
446
420
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -488,15 +462,6 @@ module DatadogAPIClient::V1
488
462
  # @return [Array<(MonthlyUsageAttributionResponse, Integer, Hash)>] MonthlyUsageAttributionResponse data, response status code and response headers
489
463
  def get_monthly_usage_attribution_with_http_info(start_month, fields, opts = {})
490
464
 
491
- if @api_client.config.unstable_operations.has_key?(:get_monthly_usage_attribution)
492
- unstable_enabled = @api_client.config.unstable_operations[:get_monthly_usage_attribution]
493
- if unstable_enabled
494
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_monthly_usage_attribution")
495
- else
496
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_monthly_usage_attribution"))
497
- end
498
- end
499
-
500
465
  if @api_client.config.debugging
501
466
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_monthly_usage_attribution ...'
502
467
  end
@@ -509,7 +474,7 @@ module DatadogAPIClient::V1
509
474
  fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_monthly_usage_attribution"
510
475
  end
511
476
  # verify enum value
512
- allowable_values = ['api_usage', 'api_percentage', 'apm_host_usage', 'apm_host_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'container_usage', 'container_percentage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_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_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', '*']
513
478
  if @api_client.config.client_side_validation && !allowable_values.include?(fields)
514
479
  fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}"
515
480
  end
@@ -517,7 +482,7 @@ module DatadogAPIClient::V1
517
482
  if @api_client.config.client_side_validation && opts[:'sort_direction'] && !allowable_values.include?(opts[:'sort_direction'])
518
483
  fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{allowable_values}"
519
484
  end
520
- allowable_values = ['api_usage', 'api_percentage', 'apm_host_usage', 'apm_host_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'container_usage', 'container_percentage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_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', '*']
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', '*']
521
486
  if @api_client.config.client_side_validation && opts[:'sort_name'] && !allowable_values.include?(opts[:'sort_name'])
522
487
  fail ArgumentError, "invalid value for \"sort_name\", must be one of #{allowable_values}"
523
488
  end
@@ -559,7 +524,8 @@ module DatadogAPIClient::V1
559
524
  :form_params => form_params,
560
525
  :body => post_body,
561
526
  :auth_names => auth_names,
562
- :return_type => return_type
527
+ :return_type => return_type,
528
+ :api_version => "V1"
563
529
  )
564
530
 
565
531
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -585,14 +551,11 @@ module DatadogAPIClient::V1
585
551
  # @param opts [Hash] the optional parameters
586
552
  # @return [Array<(UsageSpecifiedCustomReportsResponse, Integer, Hash)>] UsageSpecifiedCustomReportsResponse data, response status code and response headers
587
553
  def get_specified_daily_custom_reports_with_http_info(report_id, opts = {})
588
-
589
- if @api_client.config.unstable_operations.has_key?(:get_specified_daily_custom_reports)
590
- unstable_enabled = @api_client.config.unstable_operations[:get_specified_daily_custom_reports]
591
- if unstable_enabled
592
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_specified_daily_custom_reports")
593
- else
594
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_specified_daily_custom_reports"))
595
- end
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"))
596
559
  end
597
560
 
598
561
  if @api_client.config.debugging
@@ -632,7 +595,8 @@ module DatadogAPIClient::V1
632
595
  :form_params => form_params,
633
596
  :body => post_body,
634
597
  :auth_names => auth_names,
635
- :return_type => return_type
598
+ :return_type => return_type,
599
+ :api_version => "V1"
636
600
  )
637
601
 
638
602
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -658,14 +622,11 @@ module DatadogAPIClient::V1
658
622
  # @param opts [Hash] the optional parameters
659
623
  # @return [Array<(UsageSpecifiedCustomReportsResponse, Integer, Hash)>] UsageSpecifiedCustomReportsResponse data, response status code and response headers
660
624
  def get_specified_monthly_custom_reports_with_http_info(report_id, opts = {})
661
-
662
- if @api_client.config.unstable_operations.has_key?(:get_specified_monthly_custom_reports)
663
- unstable_enabled = @api_client.config.unstable_operations[:get_specified_monthly_custom_reports]
664
- if unstable_enabled
665
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_specified_monthly_custom_reports")
666
- else
667
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_specified_monthly_custom_reports"))
668
- end
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"))
669
630
  end
670
631
 
671
632
  if @api_client.config.debugging
@@ -705,7 +666,8 @@ module DatadogAPIClient::V1
705
666
  :form_params => form_params,
706
667
  :body => post_body,
707
668
  :auth_names => auth_names,
708
- :return_type => return_type
669
+ :return_type => return_type,
670
+ :api_version => "V1"
709
671
  )
710
672
 
711
673
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -726,6 +688,7 @@ module DatadogAPIClient::V1
726
688
  # Get hourly usage for analyzed logs.
727
689
  #
728
690
  # 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)
729
692
  #
730
693
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
731
694
  # @param opts [Hash] the optional parameters
@@ -733,15 +696,6 @@ module DatadogAPIClient::V1
733
696
  # @return [Array<(UsageAnalyzedLogsResponse, Integer, Hash)>] UsageAnalyzedLogsResponse data, response status code and response headers
734
697
  def get_usage_analyzed_logs_with_http_info(start_hr, opts = {})
735
698
 
736
- if @api_client.config.unstable_operations.has_key?(:get_usage_analyzed_logs)
737
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_analyzed_logs]
738
- if unstable_enabled
739
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_analyzed_logs")
740
- else
741
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_analyzed_logs"))
742
- end
743
- end
744
-
745
699
  if @api_client.config.debugging
746
700
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_analyzed_logs ...'
747
701
  end
@@ -781,7 +735,8 @@ module DatadogAPIClient::V1
781
735
  :form_params => form_params,
782
736
  :body => post_body,
783
737
  :auth_names => auth_names,
784
- :return_type => return_type
738
+ :return_type => return_type,
739
+ :api_version => "V1"
785
740
  )
786
741
 
787
742
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -814,14 +769,11 @@ module DatadogAPIClient::V1
814
769
  # @option opts [Integer] :limit Maximum number of records to be returned.
815
770
  # @return [Array<(UsageAttributionResponse, Integer, Hash)>] UsageAttributionResponse data, response status code and response headers
816
771
  def get_usage_attribution_with_http_info(start_month, fields, opts = {})
817
-
818
- if @api_client.config.unstable_operations.has_key?(:get_usage_attribution)
819
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_attribution]
820
- if unstable_enabled
821
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_attribution")
822
- else
823
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_attribution"))
824
- end
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"))
825
777
  end
826
778
 
827
779
  if @api_client.config.debugging
@@ -836,7 +788,7 @@ module DatadogAPIClient::V1
836
788
  fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_usage_attribution"
837
789
  end
838
790
  # verify enum value
839
- 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', '*']
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', '*']
840
792
  if @api_client.config.client_side_validation && !allowable_values.include?(fields)
841
793
  fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}"
842
794
  end
@@ -844,7 +796,7 @@ module DatadogAPIClient::V1
844
796
  if @api_client.config.client_side_validation && opts[:'sort_direction'] && !allowable_values.include?(opts[:'sort_direction'])
845
797
  fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{allowable_values}"
846
798
  end
847
- 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']
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']
848
800
  if @api_client.config.client_side_validation && opts[:'sort_name'] && !allowable_values.include?(opts[:'sort_name'])
849
801
  fail ArgumentError, "invalid value for \"sort_name\", must be one of #{allowable_values}"
850
802
  end
@@ -886,7 +838,8 @@ module DatadogAPIClient::V1
886
838
  :form_params => form_params,
887
839
  :body => post_body,
888
840
  :auth_names => auth_names,
889
- :return_type => return_type
841
+ :return_type => return_type,
842
+ :api_version => "V1"
890
843
  )
891
844
 
892
845
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -907,6 +860,7 @@ module DatadogAPIClient::V1
907
860
  # Get hourly usage for audit logs.
908
861
  #
909
862
  # 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)
910
864
  #
911
865
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
912
866
  # @param opts [Hash] the optional parameters
@@ -914,15 +868,6 @@ module DatadogAPIClient::V1
914
868
  # @return [Array<(UsageAuditLogsResponse, Integer, Hash)>] UsageAuditLogsResponse data, response status code and response headers
915
869
  def get_usage_audit_logs_with_http_info(start_hr, opts = {})
916
870
 
917
- if @api_client.config.unstable_operations.has_key?(:get_usage_audit_logs)
918
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_audit_logs]
919
- if unstable_enabled
920
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_audit_logs")
921
- else
922
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_audit_logs"))
923
- end
924
- end
925
-
926
871
  if @api_client.config.debugging
927
872
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_audit_logs ...'
928
873
  end
@@ -962,7 +907,8 @@ module DatadogAPIClient::V1
962
907
  :form_params => form_params,
963
908
  :body => post_body,
964
909
  :auth_names => auth_names,
965
- :return_type => return_type
910
+ :return_type => return_type,
911
+ :api_version => "V1"
966
912
  )
967
913
 
968
914
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -989,15 +935,6 @@ module DatadogAPIClient::V1
989
935
  # @return [Array<(UsageBillableSummaryResponse, Integer, Hash)>] UsageBillableSummaryResponse data, response status code and response headers
990
936
  def get_usage_billable_summary_with_http_info(opts = {})
991
937
 
992
- if @api_client.config.unstable_operations.has_key?(:get_usage_billable_summary)
993
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_billable_summary]
994
- if unstable_enabled
995
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_billable_summary")
996
- else
997
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_billable_summary"))
998
- end
999
- end
1000
-
1001
938
  if @api_client.config.debugging
1002
939
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_billable_summary ...'
1003
940
  end
@@ -1032,7 +969,8 @@ module DatadogAPIClient::V1
1032
969
  :form_params => form_params,
1033
970
  :body => post_body,
1034
971
  :auth_names => auth_names,
1035
- :return_type => return_type
972
+ :return_type => return_type,
973
+ :api_version => "V1"
1036
974
  )
1037
975
 
1038
976
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -1042,7 +980,7 @@ module DatadogAPIClient::V1
1042
980
  return data, status_code, headers
1043
981
  end
1044
982
 
1045
- # Get hourly usage for CI Visibility.
983
+ # Get hourly usage for CI visibility.
1046
984
  #
1047
985
  # @see #get_usage_ci_app_with_http_info
1048
986
  def get_usage_ci_app(start_hr, opts = {})
@@ -1050,9 +988,10 @@ module DatadogAPIClient::V1
1050
988
  data
1051
989
  end
1052
990
 
1053
- # Get hourly usage for CI Visibility.
991
+ # Get hourly usage for CI visibility.
1054
992
  #
1055
- # Get hourly usage for CI Visibility (Tests, Pipeline, and Spans).
993
+ # 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)
1056
995
  #
1057
996
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
1058
997
  # @param opts [Hash] the optional parameters
@@ -1060,15 +999,6 @@ module DatadogAPIClient::V1
1060
999
  # @return [Array<(UsageCIVisibilityResponse, Integer, Hash)>] UsageCIVisibilityResponse data, response status code and response headers
1061
1000
  def get_usage_ci_app_with_http_info(start_hr, opts = {})
1062
1001
 
1063
- if @api_client.config.unstable_operations.has_key?(:get_usage_ci_app)
1064
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_ci_app]
1065
- if unstable_enabled
1066
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_ci_app")
1067
- else
1068
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_ci_app"))
1069
- end
1070
- end
1071
-
1072
1002
  if @api_client.config.debugging
1073
1003
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_ci_app ...'
1074
1004
  end
@@ -1108,7 +1038,8 @@ module DatadogAPIClient::V1
1108
1038
  :form_params => form_params,
1109
1039
  :body => post_body,
1110
1040
  :auth_names => auth_names,
1111
- :return_type => return_type
1041
+ :return_type => return_type,
1042
+ :api_version => "V1"
1112
1043
  )
1113
1044
 
1114
1045
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -1128,7 +1059,8 @@ module DatadogAPIClient::V1
1128
1059
 
1129
1060
  # Get hourly usage for CSPM.
1130
1061
  #
1131
- # Get hourly usage for Cloud Security Posture Management (CSPM).
1062
+ # 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)
1132
1064
  #
1133
1065
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
1134
1066
  # @param opts [Hash] the optional parameters
@@ -1136,15 +1068,6 @@ module DatadogAPIClient::V1
1136
1068
  # @return [Array<(UsageCloudSecurityPostureManagementResponse, Integer, Hash)>] UsageCloudSecurityPostureManagementResponse data, response status code and response headers
1137
1069
  def get_usage_cloud_security_posture_management_with_http_info(start_hr, opts = {})
1138
1070
 
1139
- if @api_client.config.unstable_operations.has_key?(:get_usage_cloud_security_posture_management)
1140
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_cloud_security_posture_management]
1141
- if unstable_enabled
1142
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_cloud_security_posture_management")
1143
- else
1144
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_cloud_security_posture_management"))
1145
- end
1146
- end
1147
-
1148
1071
  if @api_client.config.debugging
1149
1072
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_cloud_security_posture_management ...'
1150
1073
  end
@@ -1184,7 +1107,8 @@ module DatadogAPIClient::V1
1184
1107
  :form_params => form_params,
1185
1108
  :body => post_body,
1186
1109
  :auth_names => auth_names,
1187
- :return_type => return_type
1110
+ :return_type => return_type,
1111
+ :api_version => "V1"
1188
1112
  )
1189
1113
 
1190
1114
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -1194,7 +1118,7 @@ module DatadogAPIClient::V1
1194
1118
  return data, status_code, headers
1195
1119
  end
1196
1120
 
1197
- # Get hourly usage for Cloud Workload Security.
1121
+ # Get hourly usage for cloud workload security.
1198
1122
  #
1199
1123
  # @see #get_usage_cws_with_http_info
1200
1124
  def get_usage_cws(start_hr, opts = {})
@@ -1202,9 +1126,10 @@ module DatadogAPIClient::V1
1202
1126
  data
1203
1127
  end
1204
1128
 
1205
- # Get hourly usage for Cloud Workload Security.
1129
+ # Get hourly usage for cloud workload security.
1206
1130
  #
1207
- # Get hourly usage for Cloud Workload Security.
1131
+ # 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)
1208
1133
  #
1209
1134
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
1210
1135
  # @param opts [Hash] the optional parameters
@@ -1212,15 +1137,6 @@ module DatadogAPIClient::V1
1212
1137
  # @return [Array<(UsageCWSResponse, Integer, Hash)>] UsageCWSResponse data, response status code and response headers
1213
1138
  def get_usage_cws_with_http_info(start_hr, opts = {})
1214
1139
 
1215
- if @api_client.config.unstable_operations.has_key?(:get_usage_cws)
1216
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_cws]
1217
- if unstable_enabled
1218
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_cws")
1219
- else
1220
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_cws"))
1221
- end
1222
- end
1223
-
1224
1140
  if @api_client.config.debugging
1225
1141
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_cws ...'
1226
1142
  end
@@ -1260,7 +1176,8 @@ module DatadogAPIClient::V1
1260
1176
  :form_params => form_params,
1261
1177
  :body => post_body,
1262
1178
  :auth_names => auth_names,
1263
- :return_type => return_type
1179
+ :return_type => return_type,
1180
+ :api_version => "V1"
1264
1181
  )
1265
1182
 
1266
1183
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -1270,7 +1187,7 @@ module DatadogAPIClient::V1
1270
1187
  return data, status_code, headers
1271
1188
  end
1272
1189
 
1273
- # Get hourly usage for Database Monitoring.
1190
+ # Get hourly usage for database monitoring.
1274
1191
  #
1275
1192
  # @see #get_usage_dbm_with_http_info
1276
1193
  def get_usage_dbm(start_hr, opts = {})
@@ -1278,9 +1195,10 @@ module DatadogAPIClient::V1
1278
1195
  data
1279
1196
  end
1280
1197
 
1281
- # Get hourly usage for Database Monitoring.
1198
+ # Get hourly usage for database monitoring.
1282
1199
  #
1283
- # Get hourly usage for Database Monitoring
1200
+ # 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)
1284
1202
  #
1285
1203
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
1286
1204
  # @param opts [Hash] the optional parameters
@@ -1288,15 +1206,6 @@ module DatadogAPIClient::V1
1288
1206
  # @return [Array<(UsageDBMResponse, Integer, Hash)>] UsageDBMResponse data, response status code and response headers
1289
1207
  def get_usage_dbm_with_http_info(start_hr, opts = {})
1290
1208
 
1291
- if @api_client.config.unstable_operations.has_key?(:get_usage_dbm)
1292
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_dbm]
1293
- if unstable_enabled
1294
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_dbm")
1295
- else
1296
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_dbm"))
1297
- end
1298
- end
1299
-
1300
1209
  if @api_client.config.debugging
1301
1210
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_dbm ...'
1302
1211
  end
@@ -1336,7 +1245,8 @@ module DatadogAPIClient::V1
1336
1245
  :form_params => form_params,
1337
1246
  :body => post_body,
1338
1247
  :auth_names => auth_names,
1339
- :return_type => return_type
1248
+ :return_type => return_type,
1249
+ :api_version => "V1"
1340
1250
  )
1341
1251
 
1342
1252
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -1357,6 +1267,7 @@ module DatadogAPIClient::V1
1357
1267
  # Get hourly usage for Fargate.
1358
1268
  #
1359
1269
  # 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)
1360
1271
  #
1361
1272
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
1362
1273
  # @param opts [Hash] the optional parameters
@@ -1364,15 +1275,6 @@ module DatadogAPIClient::V1
1364
1275
  # @return [Array<(UsageFargateResponse, Integer, Hash)>] UsageFargateResponse data, response status code and response headers
1365
1276
  def get_usage_fargate_with_http_info(start_hr, opts = {})
1366
1277
 
1367
- if @api_client.config.unstable_operations.has_key?(:get_usage_fargate)
1368
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_fargate]
1369
- if unstable_enabled
1370
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_fargate")
1371
- else
1372
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_fargate"))
1373
- end
1374
- end
1375
-
1376
1278
  if @api_client.config.debugging
1377
1279
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_fargate ...'
1378
1280
  end
@@ -1412,7 +1314,8 @@ module DatadogAPIClient::V1
1412
1314
  :form_params => form_params,
1413
1315
  :body => post_body,
1414
1316
  :auth_names => auth_names,
1415
- :return_type => return_type
1317
+ :return_type => return_type,
1318
+ :api_version => "V1"
1416
1319
  )
1417
1320
 
1418
1321
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -1433,6 +1336,7 @@ module DatadogAPIClient::V1
1433
1336
  # Get hourly usage for hosts and containers.
1434
1337
  #
1435
1338
  # 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)
1436
1340
  #
1437
1341
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
1438
1342
  # @param opts [Hash] the optional parameters
@@ -1440,15 +1344,6 @@ module DatadogAPIClient::V1
1440
1344
  # @return [Array<(UsageHostsResponse, Integer, Hash)>] UsageHostsResponse data, response status code and response headers
1441
1345
  def get_usage_hosts_with_http_info(start_hr, opts = {})
1442
1346
 
1443
- if @api_client.config.unstable_operations.has_key?(:get_usage_hosts)
1444
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_hosts]
1445
- if unstable_enabled
1446
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_hosts")
1447
- else
1448
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_hosts"))
1449
- end
1450
- end
1451
-
1452
1347
  if @api_client.config.debugging
1453
1348
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_hosts ...'
1454
1349
  end
@@ -1488,7 +1383,8 @@ module DatadogAPIClient::V1
1488
1383
  :form_params => form_params,
1489
1384
  :body => post_body,
1490
1385
  :auth_names => auth_names,
1491
- :return_type => return_type
1386
+ :return_type => return_type,
1387
+ :api_version => "V1"
1492
1388
  )
1493
1389
 
1494
1390
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -1509,6 +1405,7 @@ module DatadogAPIClient::V1
1509
1405
  # Get hourly usage for indexed spans.
1510
1406
  #
1511
1407
  # 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)
1512
1409
  #
1513
1410
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
1514
1411
  # @param opts [Hash] the optional parameters
@@ -1516,15 +1413,6 @@ module DatadogAPIClient::V1
1516
1413
  # @return [Array<(UsageIndexedSpansResponse, Integer, Hash)>] UsageIndexedSpansResponse data, response status code and response headers
1517
1414
  def get_usage_indexed_spans_with_http_info(start_hr, opts = {})
1518
1415
 
1519
- if @api_client.config.unstable_operations.has_key?(:get_usage_indexed_spans)
1520
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_indexed_spans]
1521
- if unstable_enabled
1522
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_indexed_spans")
1523
- else
1524
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_indexed_spans"))
1525
- end
1526
- end
1527
-
1528
1416
  if @api_client.config.debugging
1529
1417
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_indexed_spans ...'
1530
1418
  end
@@ -1564,7 +1452,8 @@ module DatadogAPIClient::V1
1564
1452
  :form_params => form_params,
1565
1453
  :body => post_body,
1566
1454
  :auth_names => auth_names,
1567
- :return_type => return_type
1455
+ :return_type => return_type,
1456
+ :api_version => "V1"
1568
1457
  )
1569
1458
 
1570
1459
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -1585,6 +1474,7 @@ module DatadogAPIClient::V1
1585
1474
  # Get hourly usage for IoT.
1586
1475
  #
1587
1476
  # 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)
1588
1478
  #
1589
1479
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
1590
1480
  # @param opts [Hash] the optional parameters
@@ -1592,15 +1482,6 @@ module DatadogAPIClient::V1
1592
1482
  # @return [Array<(UsageIoTResponse, Integer, Hash)>] UsageIoTResponse data, response status code and response headers
1593
1483
  def get_usage_internet_of_things_with_http_info(start_hr, opts = {})
1594
1484
 
1595
- if @api_client.config.unstable_operations.has_key?(:get_usage_internet_of_things)
1596
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_internet_of_things]
1597
- if unstable_enabled
1598
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_internet_of_things")
1599
- else
1600
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_internet_of_things"))
1601
- end
1602
- end
1603
-
1604
1485
  if @api_client.config.debugging
1605
1486
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_internet_of_things ...'
1606
1487
  end
@@ -1640,7 +1521,8 @@ module DatadogAPIClient::V1
1640
1521
  :form_params => form_params,
1641
1522
  :body => post_body,
1642
1523
  :auth_names => auth_names,
1643
- :return_type => return_type
1524
+ :return_type => return_type,
1525
+ :api_version => "V1"
1644
1526
  )
1645
1527
 
1646
1528
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -1650,7 +1532,7 @@ module DatadogAPIClient::V1
1650
1532
  return data, status_code, headers
1651
1533
  end
1652
1534
 
1653
- # Get hourly usage for Lambda.
1535
+ # Get hourly usage for lambda.
1654
1536
  #
1655
1537
  # @see #get_usage_lambda_with_http_info
1656
1538
  def get_usage_lambda(start_hr, opts = {})
@@ -1658,9 +1540,10 @@ module DatadogAPIClient::V1
1658
1540
  data
1659
1541
  end
1660
1542
 
1661
- # Get hourly usage for Lambda.
1543
+ # Get hourly usage for lambda.
1662
1544
  #
1663
1545
  # 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)
1664
1547
  #
1665
1548
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
1666
1549
  # @param opts [Hash] the optional parameters
@@ -1668,15 +1551,6 @@ module DatadogAPIClient::V1
1668
1551
  # @return [Array<(UsageLambdaResponse, Integer, Hash)>] UsageLambdaResponse data, response status code and response headers
1669
1552
  def get_usage_lambda_with_http_info(start_hr, opts = {})
1670
1553
 
1671
- if @api_client.config.unstable_operations.has_key?(:get_usage_lambda)
1672
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_lambda]
1673
- if unstable_enabled
1674
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_lambda")
1675
- else
1676
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_lambda"))
1677
- end
1678
- end
1679
-
1680
1554
  if @api_client.config.debugging
1681
1555
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_lambda ...'
1682
1556
  end
@@ -1716,7 +1590,8 @@ module DatadogAPIClient::V1
1716
1590
  :form_params => form_params,
1717
1591
  :body => post_body,
1718
1592
  :auth_names => auth_names,
1719
- :return_type => return_type
1593
+ :return_type => return_type,
1594
+ :api_version => "V1"
1720
1595
  )
1721
1596
 
1722
1597
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -1726,7 +1601,7 @@ module DatadogAPIClient::V1
1726
1601
  return data, status_code, headers
1727
1602
  end
1728
1603
 
1729
- # Get hourly usage for Logs.
1604
+ # Get hourly usage for logs.
1730
1605
  #
1731
1606
  # @see #get_usage_logs_with_http_info
1732
1607
  def get_usage_logs(start_hr, opts = {})
@@ -1734,9 +1609,10 @@ module DatadogAPIClient::V1
1734
1609
  data
1735
1610
  end
1736
1611
 
1737
- # Get hourly usage for Logs.
1612
+ # Get hourly usage for logs.
1738
1613
  #
1739
1614
  # 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)
1740
1616
  #
1741
1617
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
1742
1618
  # @param opts [Hash] the optional parameters
@@ -1744,15 +1620,6 @@ module DatadogAPIClient::V1
1744
1620
  # @return [Array<(UsageLogsResponse, Integer, Hash)>] UsageLogsResponse data, response status code and response headers
1745
1621
  def get_usage_logs_with_http_info(start_hr, opts = {})
1746
1622
 
1747
- if @api_client.config.unstable_operations.has_key?(:get_usage_logs)
1748
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_logs]
1749
- if unstable_enabled
1750
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_logs")
1751
- else
1752
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_logs"))
1753
- end
1754
- end
1755
-
1756
1623
  if @api_client.config.debugging
1757
1624
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_logs ...'
1758
1625
  end
@@ -1792,7 +1659,8 @@ module DatadogAPIClient::V1
1792
1659
  :form_params => form_params,
1793
1660
  :body => post_body,
1794
1661
  :auth_names => auth_names,
1795
- :return_type => return_type
1662
+ :return_type => return_type,
1663
+ :api_version => "V1"
1796
1664
  )
1797
1665
 
1798
1666
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -1802,7 +1670,7 @@ module DatadogAPIClient::V1
1802
1670
  return data, status_code, headers
1803
1671
  end
1804
1672
 
1805
- # Get hourly usage for Logs by Index.
1673
+ # Get hourly usage for logs by index.
1806
1674
  #
1807
1675
  # @see #get_usage_logs_by_index_with_http_info
1808
1676
  def get_usage_logs_by_index(start_hr, opts = {})
@@ -1810,7 +1678,7 @@ module DatadogAPIClient::V1
1810
1678
  data
1811
1679
  end
1812
1680
 
1813
- # Get hourly usage for Logs by Index.
1681
+ # Get hourly usage for logs by index.
1814
1682
  #
1815
1683
  # Get hourly usage for logs by index.
1816
1684
  #
@@ -1821,15 +1689,6 @@ module DatadogAPIClient::V1
1821
1689
  # @return [Array<(UsageLogsByIndexResponse, Integer, Hash)>] UsageLogsByIndexResponse data, response status code and response headers
1822
1690
  def get_usage_logs_by_index_with_http_info(start_hr, opts = {})
1823
1691
 
1824
- if @api_client.config.unstable_operations.has_key?(:get_usage_logs_by_index)
1825
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_logs_by_index]
1826
- if unstable_enabled
1827
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_logs_by_index")
1828
- else
1829
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_logs_by_index"))
1830
- end
1831
- end
1832
-
1833
1692
  if @api_client.config.debugging
1834
1693
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_logs_by_index ...'
1835
1694
  end
@@ -1870,7 +1729,8 @@ module DatadogAPIClient::V1
1870
1729
  :form_params => form_params,
1871
1730
  :body => post_body,
1872
1731
  :auth_names => auth_names,
1873
- :return_type => return_type
1732
+ :return_type => return_type,
1733
+ :api_version => "V1"
1874
1734
  )
1875
1735
 
1876
1736
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -1891,6 +1751,7 @@ module DatadogAPIClient::V1
1891
1751
  # Get hourly logs usage by retention.
1892
1752
  #
1893
1753
  # 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)
1894
1755
  #
1895
1756
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
1896
1757
  # @param opts [Hash] the optional parameters
@@ -1898,15 +1759,6 @@ module DatadogAPIClient::V1
1898
1759
  # @return [Array<(UsageLogsByRetentionResponse, Integer, Hash)>] UsageLogsByRetentionResponse data, response status code and response headers
1899
1760
  def get_usage_logs_by_retention_with_http_info(start_hr, opts = {})
1900
1761
 
1901
- if @api_client.config.unstable_operations.has_key?(:get_usage_logs_by_retention)
1902
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_logs_by_retention]
1903
- if unstable_enabled
1904
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_logs_by_retention")
1905
- else
1906
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_logs_by_retention"))
1907
- end
1908
- end
1909
-
1910
1762
  if @api_client.config.debugging
1911
1763
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_logs_by_retention ...'
1912
1764
  end
@@ -1946,7 +1798,8 @@ module DatadogAPIClient::V1
1946
1798
  :form_params => form_params,
1947
1799
  :body => post_body,
1948
1800
  :auth_names => auth_names,
1949
- :return_type => return_type
1801
+ :return_type => return_type,
1802
+ :api_version => "V1"
1950
1803
  )
1951
1804
 
1952
1805
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -1956,7 +1809,7 @@ module DatadogAPIClient::V1
1956
1809
  return data, status_code, headers
1957
1810
  end
1958
1811
 
1959
- # Get hourly usage for Network Flows.
1812
+ # get hourly usage for network flows.
1960
1813
  #
1961
1814
  # @see #get_usage_network_flows_with_http_info
1962
1815
  def get_usage_network_flows(start_hr, opts = {})
@@ -1964,9 +1817,10 @@ module DatadogAPIClient::V1
1964
1817
  data
1965
1818
  end
1966
1819
 
1967
- # Get hourly usage for Network Flows.
1820
+ # get hourly usage for network flows.
1968
1821
  #
1969
1822
  # 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)
1970
1824
  #
1971
1825
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
1972
1826
  # @param opts [Hash] the optional parameters
@@ -1974,15 +1828,6 @@ module DatadogAPIClient::V1
1974
1828
  # @return [Array<(UsageNetworkFlowsResponse, Integer, Hash)>] UsageNetworkFlowsResponse data, response status code and response headers
1975
1829
  def get_usage_network_flows_with_http_info(start_hr, opts = {})
1976
1830
 
1977
- if @api_client.config.unstable_operations.has_key?(:get_usage_network_flows)
1978
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_network_flows]
1979
- if unstable_enabled
1980
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_network_flows")
1981
- else
1982
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_network_flows"))
1983
- end
1984
- end
1985
-
1986
1831
  if @api_client.config.debugging
1987
1832
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_network_flows ...'
1988
1833
  end
@@ -2022,7 +1867,8 @@ module DatadogAPIClient::V1
2022
1867
  :form_params => form_params,
2023
1868
  :body => post_body,
2024
1869
  :auth_names => auth_names,
2025
- :return_type => return_type
1870
+ :return_type => return_type,
1871
+ :api_version => "V1"
2026
1872
  )
2027
1873
 
2028
1874
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -2032,7 +1878,7 @@ module DatadogAPIClient::V1
2032
1878
  return data, status_code, headers
2033
1879
  end
2034
1880
 
2035
- # Get hourly usage for Network Hosts.
1881
+ # Get hourly usage for network hosts.
2036
1882
  #
2037
1883
  # @see #get_usage_network_hosts_with_http_info
2038
1884
  def get_usage_network_hosts(start_hr, opts = {})
@@ -2040,9 +1886,10 @@ module DatadogAPIClient::V1
2040
1886
  data
2041
1887
  end
2042
1888
 
2043
- # Get hourly usage for Network Hosts.
1889
+ # Get hourly usage for network hosts.
2044
1890
  #
2045
1891
  # 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)
2046
1893
  #
2047
1894
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
2048
1895
  # @param opts [Hash] the optional parameters
@@ -2050,15 +1897,6 @@ module DatadogAPIClient::V1
2050
1897
  # @return [Array<(UsageNetworkHostsResponse, Integer, Hash)>] UsageNetworkHostsResponse data, response status code and response headers
2051
1898
  def get_usage_network_hosts_with_http_info(start_hr, opts = {})
2052
1899
 
2053
- if @api_client.config.unstable_operations.has_key?(:get_usage_network_hosts)
2054
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_network_hosts]
2055
- if unstable_enabled
2056
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_network_hosts")
2057
- else
2058
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_network_hosts"))
2059
- end
2060
- end
2061
-
2062
1900
  if @api_client.config.debugging
2063
1901
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_network_hosts ...'
2064
1902
  end
@@ -2098,7 +1936,8 @@ module DatadogAPIClient::V1
2098
1936
  :form_params => form_params,
2099
1937
  :body => post_body,
2100
1938
  :auth_names => auth_names,
2101
- :return_type => return_type
1939
+ :return_type => return_type,
1940
+ :api_version => "V1"
2102
1941
  )
2103
1942
 
2104
1943
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -2108,7 +1947,7 @@ module DatadogAPIClient::V1
2108
1947
  return data, status_code, headers
2109
1948
  end
2110
1949
 
2111
- # Get hourly usage for Online Archive.
1950
+ # Get hourly usage for online archive.
2112
1951
  #
2113
1952
  # @see #get_usage_online_archive_with_http_info
2114
1953
  def get_usage_online_archive(start_hr, opts = {})
@@ -2116,9 +1955,10 @@ module DatadogAPIClient::V1
2116
1955
  data
2117
1956
  end
2118
1957
 
2119
- # Get hourly usage for Online Archive.
1958
+ # Get hourly usage for online archive.
2120
1959
  #
2121
- # Get hourly usage for Online Archive.
1960
+ # 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)
2122
1962
  #
2123
1963
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
2124
1964
  # @param opts [Hash] the optional parameters
@@ -2126,15 +1966,6 @@ module DatadogAPIClient::V1
2126
1966
  # @return [Array<(UsageOnlineArchiveResponse, Integer, Hash)>] UsageOnlineArchiveResponse data, response status code and response headers
2127
1967
  def get_usage_online_archive_with_http_info(start_hr, opts = {})
2128
1968
 
2129
- if @api_client.config.unstable_operations.has_key?(:get_usage_online_archive)
2130
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_online_archive]
2131
- if unstable_enabled
2132
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_online_archive")
2133
- else
2134
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_online_archive"))
2135
- end
2136
- end
2137
-
2138
1969
  if @api_client.config.debugging
2139
1970
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_online_archive ...'
2140
1971
  end
@@ -2174,7 +2005,8 @@ module DatadogAPIClient::V1
2174
2005
  :form_params => form_params,
2175
2006
  :body => post_body,
2176
2007
  :auth_names => auth_names,
2177
- :return_type => return_type
2008
+ :return_type => return_type,
2009
+ :api_version => "V1"
2178
2010
  )
2179
2011
 
2180
2012
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -2195,6 +2027,7 @@ module DatadogAPIClient::V1
2195
2027
  # Get hourly usage for profiled hosts.
2196
2028
  #
2197
2029
  # 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)
2198
2031
  #
2199
2032
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
2200
2033
  # @param opts [Hash] the optional parameters
@@ -2202,15 +2035,6 @@ module DatadogAPIClient::V1
2202
2035
  # @return [Array<(UsageProfilingResponse, Integer, Hash)>] UsageProfilingResponse data, response status code and response headers
2203
2036
  def get_usage_profiling_with_http_info(start_hr, opts = {})
2204
2037
 
2205
- if @api_client.config.unstable_operations.has_key?(:get_usage_profiling)
2206
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_profiling]
2207
- if unstable_enabled
2208
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_profiling")
2209
- else
2210
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_profiling"))
2211
- end
2212
- end
2213
-
2214
2038
  if @api_client.config.debugging
2215
2039
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_profiling ...'
2216
2040
  end
@@ -2250,7 +2074,8 @@ module DatadogAPIClient::V1
2250
2074
  :form_params => form_params,
2251
2075
  :body => post_body,
2252
2076
  :auth_names => auth_names,
2253
- :return_type => return_type
2077
+ :return_type => return_type,
2078
+ :api_version => "V1"
2254
2079
  )
2255
2080
 
2256
2081
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -2260,7 +2085,7 @@ module DatadogAPIClient::V1
2260
2085
  return data, status_code, headers
2261
2086
  end
2262
2087
 
2263
- # Get hourly usage for RUM Sessions.
2088
+ # Get hourly usage for RUM sessions.
2264
2089
  #
2265
2090
  # @see #get_usage_rum_sessions_with_http_info
2266
2091
  def get_usage_rum_sessions(start_hr, opts = {})
@@ -2268,9 +2093,10 @@ module DatadogAPIClient::V1
2268
2093
  data
2269
2094
  end
2270
2095
 
2271
- # Get hourly usage for RUM Sessions.
2096
+ # Get hourly usage for RUM sessions.
2272
2097
  #
2273
2098
  # 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)
2274
2100
  #
2275
2101
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
2276
2102
  # @param opts [Hash] the optional parameters
@@ -2279,15 +2105,6 @@ module DatadogAPIClient::V1
2279
2105
  # @return [Array<(UsageRumSessionsResponse, Integer, Hash)>] UsageRumSessionsResponse data, response status code and response headers
2280
2106
  def get_usage_rum_sessions_with_http_info(start_hr, opts = {})
2281
2107
 
2282
- if @api_client.config.unstable_operations.has_key?(:get_usage_rum_sessions)
2283
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_rum_sessions]
2284
- if unstable_enabled
2285
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_rum_sessions")
2286
- else
2287
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_rum_sessions"))
2288
- end
2289
- end
2290
-
2291
2108
  if @api_client.config.debugging
2292
2109
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_rum_sessions ...'
2293
2110
  end
@@ -2328,7 +2145,8 @@ module DatadogAPIClient::V1
2328
2145
  :form_params => form_params,
2329
2146
  :body => post_body,
2330
2147
  :auth_names => auth_names,
2331
- :return_type => return_type
2148
+ :return_type => return_type,
2149
+ :api_version => "V1"
2332
2150
  )
2333
2151
 
2334
2152
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -2338,7 +2156,7 @@ module DatadogAPIClient::V1
2338
2156
  return data, status_code, headers
2339
2157
  end
2340
2158
 
2341
- # Get hourly usage for RUM Units.
2159
+ # Get hourly usage for RUM units.
2342
2160
  #
2343
2161
  # @see #get_usage_rum_units_with_http_info
2344
2162
  def get_usage_rum_units(start_hr, opts = {})
@@ -2346,9 +2164,10 @@ module DatadogAPIClient::V1
2346
2164
  data
2347
2165
  end
2348
2166
 
2349
- # Get hourly usage for RUM Units.
2167
+ # Get hourly usage for RUM units.
2350
2168
  #
2351
2169
  # 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)
2352
2171
  #
2353
2172
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
2354
2173
  # @param opts [Hash] the optional parameters
@@ -2356,15 +2175,6 @@ module DatadogAPIClient::V1
2356
2175
  # @return [Array<(UsageRumUnitsResponse, Integer, Hash)>] UsageRumUnitsResponse data, response status code and response headers
2357
2176
  def get_usage_rum_units_with_http_info(start_hr, opts = {})
2358
2177
 
2359
- if @api_client.config.unstable_operations.has_key?(:get_usage_rum_units)
2360
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_rum_units]
2361
- if unstable_enabled
2362
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_rum_units")
2363
- else
2364
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_rum_units"))
2365
- end
2366
- end
2367
-
2368
2178
  if @api_client.config.debugging
2369
2179
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_rum_units ...'
2370
2180
  end
@@ -2404,7 +2214,8 @@ module DatadogAPIClient::V1
2404
2214
  :form_params => form_params,
2405
2215
  :body => post_body,
2406
2216
  :auth_names => auth_names,
2407
- :return_type => return_type
2217
+ :return_type => return_type,
2218
+ :api_version => "V1"
2408
2219
  )
2409
2220
 
2410
2221
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -2414,7 +2225,7 @@ module DatadogAPIClient::V1
2414
2225
  return data, status_code, headers
2415
2226
  end
2416
2227
 
2417
- # Get hourly usage for Sensitive Data Scanner.
2228
+ # Get hourly usage for sensitive data scanner.
2418
2229
  #
2419
2230
  # @see #get_usage_sds_with_http_info
2420
2231
  def get_usage_sds(start_hr, opts = {})
@@ -2422,9 +2233,10 @@ module DatadogAPIClient::V1
2422
2233
  data
2423
2234
  end
2424
2235
 
2425
- # Get hourly usage for Sensitive Data Scanner.
2236
+ # Get hourly usage for sensitive data scanner.
2426
2237
  #
2427
- # Get hourly usage for Sensitive Data Scanner.
2238
+ # 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)
2428
2240
  #
2429
2241
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
2430
2242
  # @param opts [Hash] the optional parameters
@@ -2432,15 +2244,6 @@ module DatadogAPIClient::V1
2432
2244
  # @return [Array<(UsageSDSResponse, Integer, Hash)>] UsageSDSResponse data, response status code and response headers
2433
2245
  def get_usage_sds_with_http_info(start_hr, opts = {})
2434
2246
 
2435
- if @api_client.config.unstable_operations.has_key?(:get_usage_sds)
2436
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_sds]
2437
- if unstable_enabled
2438
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_sds")
2439
- else
2440
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_sds"))
2441
- end
2442
- end
2443
-
2444
2247
  if @api_client.config.debugging
2445
2248
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_sds ...'
2446
2249
  end
@@ -2480,7 +2283,8 @@ module DatadogAPIClient::V1
2480
2283
  :form_params => form_params,
2481
2284
  :body => post_body,
2482
2285
  :auth_names => auth_names,
2483
- :return_type => return_type
2286
+ :return_type => return_type,
2287
+ :api_version => "V1"
2484
2288
  )
2485
2289
 
2486
2290
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -2501,6 +2305,7 @@ module DatadogAPIClient::V1
2501
2305
  # Get hourly usage for SNMP devices.
2502
2306
  #
2503
2307
  # 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)
2504
2309
  #
2505
2310
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
2506
2311
  # @param opts [Hash] the optional parameters
@@ -2508,15 +2313,6 @@ module DatadogAPIClient::V1
2508
2313
  # @return [Array<(UsageSNMPResponse, Integer, Hash)>] UsageSNMPResponse data, response status code and response headers
2509
2314
  def get_usage_snmp_with_http_info(start_hr, opts = {})
2510
2315
 
2511
- if @api_client.config.unstable_operations.has_key?(:get_usage_snmp)
2512
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_snmp]
2513
- if unstable_enabled
2514
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_snmp")
2515
- else
2516
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_snmp"))
2517
- end
2518
- end
2519
-
2520
2316
  if @api_client.config.debugging
2521
2317
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_snmp ...'
2522
2318
  end
@@ -2556,7 +2352,8 @@ module DatadogAPIClient::V1
2556
2352
  :form_params => form_params,
2557
2353
  :body => post_body,
2558
2354
  :auth_names => auth_names,
2559
- :return_type => return_type
2355
+ :return_type => return_type,
2356
+ :api_version => "V1"
2560
2357
  )
2561
2358
 
2562
2359
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -2585,15 +2382,6 @@ module DatadogAPIClient::V1
2585
2382
  # @return [Array<(UsageSummaryResponse, Integer, Hash)>] UsageSummaryResponse data, response status code and response headers
2586
2383
  def get_usage_summary_with_http_info(start_month, opts = {})
2587
2384
 
2588
- if @api_client.config.unstable_operations.has_key?(:get_usage_summary)
2589
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_summary]
2590
- if unstable_enabled
2591
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_summary")
2592
- else
2593
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_summary"))
2594
- end
2595
- end
2596
-
2597
2385
  if @api_client.config.debugging
2598
2386
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_summary ...'
2599
2387
  end
@@ -2634,7 +2422,8 @@ module DatadogAPIClient::V1
2634
2422
  :form_params => form_params,
2635
2423
  :body => post_body,
2636
2424
  :auth_names => auth_names,
2637
- :return_type => return_type
2425
+ :return_type => return_type,
2426
+ :api_version => "V1"
2638
2427
  )
2639
2428
 
2640
2429
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -2644,7 +2433,7 @@ module DatadogAPIClient::V1
2644
2433
  return data, status_code, headers
2645
2434
  end
2646
2435
 
2647
- # Get hourly usage for Synthetics Checks.
2436
+ # Get hourly usage for synthetics checks.
2648
2437
  #
2649
2438
  # @see #get_usage_synthetics_with_http_info
2650
2439
  def get_usage_synthetics(start_hr, opts = {})
@@ -2652,9 +2441,10 @@ module DatadogAPIClient::V1
2652
2441
  data
2653
2442
  end
2654
2443
 
2655
- # Get hourly usage for Synthetics Checks.
2444
+ # Get hourly usage for synthetics checks.
2656
2445
  #
2657
- # Get hourly usage for [Synthetics checks](https://docs.datadoghq.com/synthetics/).
2446
+ # 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)
2658
2448
  #
2659
2449
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
2660
2450
  # @param opts [Hash] the optional parameters
@@ -2662,15 +2452,6 @@ module DatadogAPIClient::V1
2662
2452
  # @return [Array<(UsageSyntheticsResponse, Integer, Hash)>] UsageSyntheticsResponse data, response status code and response headers
2663
2453
  def get_usage_synthetics_with_http_info(start_hr, opts = {})
2664
2454
 
2665
- if @api_client.config.unstable_operations.has_key?(:get_usage_synthetics)
2666
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_synthetics]
2667
- if unstable_enabled
2668
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_synthetics")
2669
- else
2670
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_synthetics"))
2671
- end
2672
- end
2673
-
2674
2455
  if @api_client.config.debugging
2675
2456
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_synthetics ...'
2676
2457
  end
@@ -2710,7 +2491,8 @@ module DatadogAPIClient::V1
2710
2491
  :form_params => form_params,
2711
2492
  :body => post_body,
2712
2493
  :auth_names => auth_names,
2713
- :return_type => return_type
2494
+ :return_type => return_type,
2495
+ :api_version => "V1"
2714
2496
  )
2715
2497
 
2716
2498
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -2720,7 +2502,7 @@ module DatadogAPIClient::V1
2720
2502
  return data, status_code, headers
2721
2503
  end
2722
2504
 
2723
- # Get hourly usage for Synthetics API Checks.
2505
+ # Get hourly usage for synthetics API checks.
2724
2506
  #
2725
2507
  # @see #get_usage_synthetics_api_with_http_info
2726
2508
  def get_usage_synthetics_api(start_hr, opts = {})
@@ -2728,9 +2510,10 @@ module DatadogAPIClient::V1
2728
2510
  data
2729
2511
  end
2730
2512
 
2731
- # Get hourly usage for Synthetics API Checks.
2513
+ # Get hourly usage for synthetics API checks.
2732
2514
  #
2733
2515
  # 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)
2734
2517
  #
2735
2518
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
2736
2519
  # @param opts [Hash] the optional parameters
@@ -2738,15 +2521,6 @@ module DatadogAPIClient::V1
2738
2521
  # @return [Array<(UsageSyntheticsAPIResponse, Integer, Hash)>] UsageSyntheticsAPIResponse data, response status code and response headers
2739
2522
  def get_usage_synthetics_api_with_http_info(start_hr, opts = {})
2740
2523
 
2741
- if @api_client.config.unstable_operations.has_key?(:get_usage_synthetics_api)
2742
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_synthetics_api]
2743
- if unstable_enabled
2744
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_synthetics_api")
2745
- else
2746
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_synthetics_api"))
2747
- end
2748
- end
2749
-
2750
2524
  if @api_client.config.debugging
2751
2525
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_synthetics_api ...'
2752
2526
  end
@@ -2786,7 +2560,8 @@ module DatadogAPIClient::V1
2786
2560
  :form_params => form_params,
2787
2561
  :body => post_body,
2788
2562
  :auth_names => auth_names,
2789
- :return_type => return_type
2563
+ :return_type => return_type,
2564
+ :api_version => "V1"
2790
2565
  )
2791
2566
 
2792
2567
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -2796,7 +2571,7 @@ module DatadogAPIClient::V1
2796
2571
  return data, status_code, headers
2797
2572
  end
2798
2573
 
2799
- # Get hourly usage for Synthetics Browser Checks.
2574
+ # Get hourly usage for synthetics browser checks.
2800
2575
  #
2801
2576
  # @see #get_usage_synthetics_browser_with_http_info
2802
2577
  def get_usage_synthetics_browser(start_hr, opts = {})
@@ -2804,9 +2579,10 @@ module DatadogAPIClient::V1
2804
2579
  data
2805
2580
  end
2806
2581
 
2807
- # Get hourly usage for Synthetics Browser Checks.
2582
+ # Get hourly usage for synthetics browser checks.
2808
2583
  #
2809
2584
  # 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)
2810
2586
  #
2811
2587
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
2812
2588
  # @param opts [Hash] the optional parameters
@@ -2814,15 +2590,6 @@ module DatadogAPIClient::V1
2814
2590
  # @return [Array<(UsageSyntheticsBrowserResponse, Integer, Hash)>] UsageSyntheticsBrowserResponse data, response status code and response headers
2815
2591
  def get_usage_synthetics_browser_with_http_info(start_hr, opts = {})
2816
2592
 
2817
- if @api_client.config.unstable_operations.has_key?(:get_usage_synthetics_browser)
2818
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_synthetics_browser]
2819
- if unstable_enabled
2820
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_synthetics_browser")
2821
- else
2822
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_synthetics_browser"))
2823
- end
2824
- end
2825
-
2826
2593
  if @api_client.config.debugging
2827
2594
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_synthetics_browser ...'
2828
2595
  end
@@ -2862,7 +2629,8 @@ module DatadogAPIClient::V1
2862
2629
  :form_params => form_params,
2863
2630
  :body => post_body,
2864
2631
  :auth_names => auth_names,
2865
- :return_type => return_type
2632
+ :return_type => return_type,
2633
+ :api_version => "V1"
2866
2634
  )
2867
2635
 
2868
2636
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -2883,6 +2651,7 @@ module DatadogAPIClient::V1
2883
2651
  # Get hourly usage for custom metrics.
2884
2652
  #
2885
2653
  # 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)
2886
2655
  #
2887
2656
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
2888
2657
  # @param opts [Hash] the optional parameters
@@ -2890,15 +2659,6 @@ module DatadogAPIClient::V1
2890
2659
  # @return [Array<(UsageTimeseriesResponse, Integer, Hash)>] UsageTimeseriesResponse data, response status code and response headers
2891
2660
  def get_usage_timeseries_with_http_info(start_hr, opts = {})
2892
2661
 
2893
- if @api_client.config.unstable_operations.has_key?(:get_usage_timeseries)
2894
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_timeseries]
2895
- if unstable_enabled
2896
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_timeseries")
2897
- else
2898
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_timeseries"))
2899
- end
2900
- end
2901
-
2902
2662
  if @api_client.config.debugging
2903
2663
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_timeseries ...'
2904
2664
  end
@@ -2938,7 +2698,8 @@ module DatadogAPIClient::V1
2938
2698
  :form_params => form_params,
2939
2699
  :body => post_body,
2940
2700
  :auth_names => auth_names,
2941
- :return_type => return_type
2701
+ :return_type => return_type,
2702
+ :api_version => "V1"
2942
2703
  )
2943
2704
 
2944
2705
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -2969,15 +2730,6 @@ module DatadogAPIClient::V1
2969
2730
  # @return [Array<(UsageTopAvgMetricsResponse, Integer, Hash)>] UsageTopAvgMetricsResponse data, response status code and response headers
2970
2731
  def get_usage_top_avg_metrics_with_http_info(opts = {})
2971
2732
 
2972
- if @api_client.config.unstable_operations.has_key?(:get_usage_top_avg_metrics)
2973
- unstable_enabled = @api_client.config.unstable_operations[:get_usage_top_avg_metrics]
2974
- if unstable_enabled
2975
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_top_avg_metrics")
2976
- else
2977
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_top_avg_metrics"))
2978
- end
2979
- end
2980
-
2981
2733
  if @api_client.config.debugging
2982
2734
  @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_top_avg_metrics ...'
2983
2735
  end
@@ -3022,7 +2774,8 @@ module DatadogAPIClient::V1
3022
2774
  :form_params => form_params,
3023
2775
  :body => post_body,
3024
2776
  :auth_names => auth_names,
3025
- :return_type => return_type
2777
+ :return_type => return_type,
2778
+ :api_version => "V1"
3026
2779
  )
3027
2780
 
3028
2781
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)