datadog_api_client 1.11.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (277) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +291 -114
  4. data/.generator/schemas/v2/openapi.yaml +1156 -41
  5. data/.generator/src/generator/cli.py +57 -40
  6. data/.generator/src/generator/openapi.py +12 -6
  7. data/.generator/src/generator/templates/api.j2 +14 -13
  8. data/.generator/src/generator/templates/api_client.j2 +63 -11
  9. data/.generator/src/generator/templates/configuration.j2 +12 -8
  10. data/.generator/src/generator/templates/example.j2 +1 -1
  11. data/.generator/src/generator/templates/inflector.j2 +28 -0
  12. data/.generator/src/generator/templates/model_base.j2 +2 -2
  13. data/.generator/src/generator/templates/model_oneof.j2 +1 -1
  14. data/.generator/src/generator/templates/package.j2 +7 -12
  15. data/.github/workflows/approved_status.yml +0 -2
  16. data/.github/workflows/codeql-analysis.yml +49 -0
  17. data/.github/workflows/docs.yml +1 -1
  18. data/.github/workflows/prepare_release.yml +1 -1
  19. data/.github/workflows/publish.yml +1 -1
  20. data/.github/workflows/release.yml +1 -1
  21. data/.github/workflows/test.yml +4 -6
  22. data/.github/workflows/test_integration.yml +1 -1
  23. data/.pre-commit-config.yaml +3 -12
  24. data/CHANGELOG.md +25 -0
  25. data/Gemfile +1 -0
  26. data/Makefile +1 -2
  27. data/datadog_api_client.gemspec +2 -0
  28. data/examples/v1/downtimes/CreateDowntime_1393233946.rb +3 -0
  29. data/examples/v1/downtimes/CreateDowntime_2908359488.rb +3 -0
  30. data/examples/v1/downtimes/CreateDowntime_3059354445.rb +3 -0
  31. data/examples/v1/events/ListEvents.rb +1 -1
  32. data/examples/v1/service-level-objectives/GetSLOHistory.rb +1 -1
  33. data/examples/v1/service-level-objectives/SearchSLO.rb +1 -1
  34. data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +1 -1
  35. data/examples/v1/synthetics/GetAPITestLatestResults.rb +1 -1
  36. data/examples/v1/synthetics/GetAPITestResult.rb +1 -1
  37. data/examples/v1/synthetics/GetBrowserTestLatestResults.rb +1 -1
  38. data/examples/v1/synthetics/GetBrowserTestResult.rb +1 -1
  39. data/examples/v1/usage-metering/GetDailyCustomReports.rb +1 -1
  40. data/examples/v1/usage-metering/GetHourlyUsageAttribution.rb +0 -3
  41. data/examples/v1/usage-metering/GetMonthlyCustomReports.rb +1 -1
  42. data/examples/v1/usage-metering/GetMonthlyUsageAttribution.rb +0 -3
  43. data/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.rb +1 -1
  44. data/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb +1 -1
  45. data/examples/v1/usage-metering/GetUsageAttribution.rb +1 -1
  46. data/examples/v1/usage-metering/GetUsageCIApp.rb +2 -5
  47. data/examples/v1/usage-metering/GetUsageCIApp_1064440884.rb +8 -0
  48. data/examples/v1/usage-metering/GetUsageCWS.rb +2 -5
  49. data/examples/v1/usage-metering/GetUsageCWS_736958514.rb +8 -0
  50. data/examples/v1/usage-metering/GetUsageDBM.rb +2 -5
  51. data/examples/v1/usage-metering/GetUsageDBM_3446806203.rb +8 -0
  52. data/examples/v1/usage-metering/GetUsageLambda.rb +2 -5
  53. data/examples/v1/usage-metering/GetUsageLambda_3132428705.rb +8 -0
  54. data/examples/v1/usage-metering/GetUsageLogs.rb +2 -5
  55. data/examples/v1/usage-metering/GetUsageLogsByIndex.rb +2 -5
  56. data/examples/v1/usage-metering/GetUsageLogsByIndex_1025184776.rb +8 -0
  57. data/examples/v1/usage-metering/GetUsageLogs_2562396405.rb +8 -0
  58. data/examples/v1/usage-metering/GetUsageNetworkFlows.rb +2 -5
  59. data/examples/v1/usage-metering/GetUsageNetworkFlows_1239422069.rb +8 -0
  60. data/examples/v1/usage-metering/GetUsageNetworkHosts.rb +2 -5
  61. data/examples/v1/usage-metering/GetUsageNetworkHosts_1249907835.rb +8 -0
  62. data/examples/v1/usage-metering/GetUsageOnlineArchive.rb +2 -5
  63. data/examples/v1/usage-metering/GetUsageOnlineArchive_1501172903.rb +8 -0
  64. data/examples/v1/usage-metering/GetUsageRumSessions.rb +2 -5
  65. data/examples/v1/usage-metering/GetUsageRumSessions_714937291.rb +8 -0
  66. data/examples/v1/usage-metering/GetUsageRumUnits.rb +2 -5
  67. data/examples/v1/usage-metering/GetUsageRumUnits_3959755399.rb +8 -0
  68. data/examples/v1/usage-metering/GetUsageSDS.rb +2 -5
  69. data/examples/v1/usage-metering/GetUsageSDS_271128478.rb +8 -0
  70. data/examples/v1/usage-metering/GetUsageSynthetics.rb +1 -1
  71. data/examples/v1/usage-metering/GetUsageSyntheticsAPI.rb +2 -5
  72. data/examples/v1/usage-metering/GetUsageSyntheticsAPI_4048033529.rb +8 -0
  73. data/examples/v1/usage-metering/GetUsageSyntheticsBrowser.rb +2 -5
  74. data/examples/v1/usage-metering/GetUsageSyntheticsBrowser_1704663299.rb +8 -0
  75. data/examples/v2/events/ListEvents.rb +8 -0
  76. data/examples/v2/events/ListEvents_2663715109.rb +14 -0
  77. data/examples/v2/events/SearchEvents.rb +23 -0
  78. data/examples/v2/incident-services/CreateIncidentService.rb +1 -1
  79. data/examples/v2/incident-services/DeleteIncidentService.rb +1 -1
  80. data/examples/v2/incident-services/GetIncidentService.rb +1 -1
  81. data/examples/v2/incident-services/ListIncidentServices.rb +1 -1
  82. data/examples/v2/incident-services/UpdateIncidentService.rb +1 -1
  83. data/examples/v2/incident-teams/CreateIncidentTeam.rb +1 -1
  84. data/examples/v2/incident-teams/DeleteIncidentTeam.rb +1 -1
  85. data/examples/v2/incident-teams/GetIncidentTeam.rb +1 -1
  86. data/examples/v2/incident-teams/ListIncidentTeams.rb +1 -1
  87. data/examples/v2/incident-teams/UpdateIncidentTeam.rb +1 -1
  88. data/examples/v2/incidents/CreateIncident.rb +1 -1
  89. data/examples/v2/incidents/DeleteIncident.rb +1 -1
  90. data/examples/v2/incidents/GetIncident.rb +1 -1
  91. data/examples/v2/incidents/ListIncidents.rb +1 -1
  92. data/examples/v2/incidents/UpdateIncident.rb +1 -1
  93. data/examples/v2/incidents/UpdateIncident_1009194038.rb +1 -1
  94. data/examples/v2/incidents/UpdateIncident_3369341440.rb +1 -1
  95. data/examples/v2/metrics/SubmitMetrics.rb +6 -0
  96. data/examples/v2/security-monitoring/EditSecurityMonitoringSignalAssignee.rb +15 -0
  97. data/examples/v2/security-monitoring/EditSecurityMonitoringSignalIncidents.rb +15 -0
  98. data/examples/v2/security-monitoring/EditSecurityMonitoringSignalState.rb +14 -0
  99. data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +1 -0
  100. data/examples/v2/usage-metering/GetEstimatedCostByOrg.rb +5 -2
  101. data/examples/v2/usage-metering/GetEstimatedCostByOrg_2734954020.rb +11 -0
  102. data/examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb +11 -0
  103. data/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.rb +2 -5
  104. data/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring_3959166796.rb +8 -0
  105. data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb +2 -5
  106. data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations_1436752065.rb +8 -0
  107. data/examples/v2/usage-metering/GetUsageObservabilityPipelines.rb +2 -5
  108. data/examples/v2/usage-metering/GetUsageObservabilityPipelines_970725512.rb +8 -0
  109. data/lib/datadog_api_client/{v2/api_client.rb → api_client.rb} +63 -11
  110. data/lib/datadog_api_client/api_key_configuration.rb +1 -18
  111. data/lib/datadog_api_client/{v1/configuration.rb → configuration.rb} +84 -31
  112. data/lib/datadog_api_client/inflector.rb +1293 -0
  113. data/lib/datadog_api_client/models.rb +66 -0
  114. data/lib/datadog_api_client/v1/api/authentication_api.rb +3 -11
  115. data/lib/datadog_api_client/v1/api/aws_integration_api.rb +19 -91
  116. data/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb +15 -71
  117. data/lib/datadog_api_client/v1/api/azure_integration_api.rb +11 -51
  118. data/lib/datadog_api_client/v1/api/dashboard_lists_api.rb +11 -51
  119. data/lib/datadog_api_client/v1/api/dashboards_api.rb +15 -71
  120. data/lib/datadog_api_client/v1/api/downtimes_api.rb +15 -71
  121. data/lib/datadog_api_client/v1/api/events_api.rb +9 -33
  122. data/lib/datadog_api_client/v1/api/gcp_integration_api.rb +9 -41
  123. data/lib/datadog_api_client/v1/api/hosts_api.rb +9 -41
  124. data/lib/datadog_api_client/v1/api/ip_ranges_api.rb +3 -11
  125. data/lib/datadog_api_client/v1/api/key_management_api.rb +21 -101
  126. data/lib/datadog_api_client/v1/api/logs_api.rb +5 -21
  127. data/lib/datadog_api_client/v1/api/logs_indexes_api.rb +13 -61
  128. data/lib/datadog_api_client/v1/api/logs_pipelines_api.rb +15 -71
  129. data/lib/datadog_api_client/v1/api/metrics_api.rb +15 -71
  130. data/lib/datadog_api_client/v1/api/monitors_api.rb +21 -101
  131. data/lib/datadog_api_client/v1/api/notebooks_api.rb +11 -51
  132. data/lib/datadog_api_client/v1/api/organizations_api.rb +13 -61
  133. data/lib/datadog_api_client/v1/api/pager_duty_integration_api.rb +9 -41
  134. data/lib/datadog_api_client/v1/api/security_monitoring_api.rb +8 -32
  135. data/lib/datadog_api_client/v1/api/service_checks_api.rb +3 -11
  136. data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +11 -51
  137. data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +31 -99
  138. data/lib/datadog_api_client/v1/api/slack_integration_api.rb +11 -51
  139. data/lib/datadog_api_client/v1/api/snapshots_api.rb +3 -11
  140. data/lib/datadog_api_client/v1/api/synthetics_api.rb +55 -271
  141. data/lib/datadog_api_client/v1/api/tags_api.rb +11 -51
  142. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +171 -418
  143. data/lib/datadog_api_client/v1/api/users_api.rb +11 -51
  144. data/lib/datadog_api_client/v1/api/webhooks_integration_api.rb +17 -81
  145. data/lib/datadog_api_client/v1/model_base.rb +2 -2
  146. data/lib/datadog_api_client/v1/models/distribution_point_item.rb +1 -1
  147. data/lib/datadog_api_client/v1/models/distribution_widget_histogram_request_query.rb +1 -1
  148. data/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb +1 -1
  149. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb +5 -1
  150. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +7 -0
  151. data/lib/datadog_api_client/v1/models/logs_processor.rb +1 -1
  152. data/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb +1 -1
  153. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb +6 -2
  154. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +14 -0
  155. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +21 -1
  156. data/lib/datadog_api_client/v1/models/notebook_cell_create_request_attributes.rb +1 -1
  157. data/lib/datadog_api_client/v1/models/notebook_cell_response_attributes.rb +1 -1
  158. data/lib/datadog_api_client/v1/models/notebook_cell_time.rb +1 -1
  159. data/lib/datadog_api_client/v1/models/notebook_cell_update_request_attributes.rb +1 -1
  160. data/lib/datadog_api_client/v1/models/notebook_global_time.rb +1 -1
  161. data/lib/datadog_api_client/v1/models/notebook_update_cell.rb +1 -1
  162. data/lib/datadog_api_client/v1/models/sunburst_widget_legend.rb +1 -1
  163. data/lib/datadog_api_client/v1/models/synthetics_assertion.rb +1 -1
  164. data/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb +1 -1
  165. data/lib/datadog_api_client/v1/models/tree_map_color_by.rb +1 -1
  166. data/lib/datadog_api_client/v1/models/tree_map_group_by.rb +1 -1
  167. data/lib/datadog_api_client/v1/models/tree_map_size_by.rb +1 -1
  168. data/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb +28 -6
  169. data/lib/datadog_api_client/v1/models/usage_attribution_body.rb +6 -2
  170. data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +2 -0
  171. data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +2 -0
  172. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +22 -2
  173. data/lib/datadog_api_client/v1/models/widget_definition.rb +1 -1
  174. data/lib/datadog_api_client/v2/api/audit_api.rb +11 -25
  175. data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +11 -51
  176. data/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb +13 -61
  177. data/lib/datadog_api_client/v2/api/dashboard_lists_api.rb +9 -41
  178. data/lib/datadog_api_client/v2/api/events_api.rb +228 -0
  179. data/lib/datadog_api_client/v2/api/incident_services_api.rb +36 -46
  180. data/lib/datadog_api_client/v2/api/incident_teams_api.rb +36 -46
  181. data/lib/datadog_api_client/v2/api/incidents_api.rb +39 -48
  182. data/lib/datadog_api_client/v2/api/key_management_api.rb +29 -141
  183. data/lib/datadog_api_client/v2/api/logs_api.rb +15 -45
  184. data/lib/datadog_api_client/v2/api/logs_archives_api.rb +21 -101
  185. data/lib/datadog_api_client/v2/api/logs_metrics_api.rb +11 -51
  186. data/lib/datadog_api_client/v2/api/metrics_api.rb +26 -112
  187. data/lib/datadog_api_client/v2/api/opsgenie_integration_api.rb +11 -51
  188. data/lib/datadog_api_client/v2/api/organizations_api.rb +3 -11
  189. data/lib/datadog_api_client/v2/api/processes_api.rb +6 -13
  190. data/lib/datadog_api_client/v2/api/roles_api.rb +27 -131
  191. data/lib/datadog_api_client/v2/api/rum_api.rb +13 -35
  192. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +247 -125
  193. data/lib/datadog_api_client/v2/api/service_accounts_api.rb +11 -51
  194. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +132 -68
  195. data/lib/datadog_api_client/v2/api/users_api.rb +21 -101
  196. data/lib/datadog_api_client/v2/model_base.rb +2 -2
  197. data/lib/datadog_api_client/v2/models/api_key_response_included_item.rb +1 -1
  198. data/lib/datadog_api_client/v2/models/application_key_response_included_item.rb +1 -1
  199. data/lib/datadog_api_client/v2/models/authn_mapping_included.rb +1 -1
  200. data/lib/datadog_api_client/v2/models/event.rb +141 -0
  201. data/lib/datadog_api_client/v2/models/event_attributes.rb +305 -0
  202. data/lib/datadog_api_client/v2/models/event_priority.rb +27 -0
  203. data/lib/datadog_api_client/v2/models/event_response.rb +133 -0
  204. data/lib/datadog_api_client/v2/models/event_response_attributes.rb +133 -0
  205. data/lib/datadog_api_client/v2/models/event_status_type.rb +35 -0
  206. data/lib/datadog_api_client/v2/models/event_type.rb +26 -0
  207. data/lib/datadog_api_client/v2/models/events_list_request.rb +142 -0
  208. data/lib/datadog_api_client/v2/models/events_list_response.rb +133 -0
  209. data/lib/datadog_api_client/v2/models/events_list_response_links.rb +112 -0
  210. data/lib/datadog_api_client/v2/models/events_query_filter.rb +137 -0
  211. data/lib/datadog_api_client/v2/models/events_query_options.rb +124 -0
  212. data/lib/datadog_api_client/v2/models/events_request_page.rb +134 -0
  213. data/lib/datadog_api_client/v2/models/events_response_metadata.rb +144 -0
  214. data/lib/datadog_api_client/v2/models/events_response_metadata_page.rb +112 -0
  215. data/lib/datadog_api_client/v2/models/events_sort.rb +27 -0
  216. data/lib/datadog_api_client/v2/models/events_warning.rb +131 -0
  217. data/lib/datadog_api_client/v2/models/hourly_usage.rb +133 -0
  218. data/lib/datadog_api_client/v2/models/hourly_usage_attributes.rb +163 -0
  219. data/lib/datadog_api_client/v2/models/hourly_usage_measurement.rb +122 -0
  220. data/lib/datadog_api_client/v2/models/hourly_usage_metadata.rb +111 -0
  221. data/lib/datadog_api_client/v2/models/hourly_usage_pagination.rb +112 -0
  222. data/lib/datadog_api_client/v2/models/hourly_usage_response.rb +123 -0
  223. data/lib/datadog_api_client/v2/models/incident_field_attributes.rb +1 -1
  224. data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +1 -1
  225. data/lib/datadog_api_client/v2/models/incident_service_included_items.rb +1 -1
  226. data/lib/datadog_api_client/v2/models/incident_team_included_items.rb +1 -1
  227. data/lib/datadog_api_client/v2/models/incident_timeline_cell_create_attributes.rb +1 -1
  228. data/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value.rb +1 -1
  229. data/lib/datadog_api_client/v2/models/logs_archive_create_request_destination.rb +1 -1
  230. data/lib/datadog_api_client/v2/models/logs_archive_destination.rb +1 -1
  231. data/lib/datadog_api_client/v2/models/logs_group_by_missing.rb +1 -1
  232. data/lib/datadog_api_client/v2/models/logs_group_by_total.rb +1 -1
  233. data/lib/datadog_api_client/v2/models/metric_intake_type.rb +1 -2
  234. data/lib/datadog_api_client/v2/models/metric_resource.rb +2 -2
  235. data/lib/datadog_api_client/v2/models/metric_series.rb +1 -1
  236. data/lib/datadog_api_client/v2/models/metric_volumes.rb +1 -1
  237. data/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations.rb +1 -1
  238. data/lib/datadog_api_client/v2/models/monitor_type.rb +215 -0
  239. data/lib/datadog_api_client/v2/models/rum_aggregate_bucket_value.rb +1 -1
  240. data/lib/datadog_api_client/v2/models/rum_group_by_missing.rb +1 -1
  241. data/lib/datadog_api_client/v2/models/rum_group_by_total.rb +1 -1
  242. data/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +13 -1
  243. data/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb +13 -1
  244. data/lib/datadog_api_client/v2/models/security_monitoring_signal_archive_reason.rb +29 -0
  245. data/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_attributes.rb +132 -0
  246. data/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_data.rb +122 -0
  247. data/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_request.rb +122 -0
  248. data/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_attributes.rb +134 -0
  249. data/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_data.rb +122 -0
  250. data/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_request.rb +122 -0
  251. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state.rb +28 -0
  252. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_attributes.rb +152 -0
  253. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb +122 -0
  254. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_request.rb +122 -0
  255. data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_attributes.rb +248 -0
  256. data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb +111 -0
  257. data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_response.rb +122 -0
  258. data/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb +152 -0
  259. data/lib/datadog_api_client/v2/models/user_response_included_item.rb +1 -1
  260. data/lib/datadog_api_client/v2.rb +40 -0
  261. data/lib/datadog_api_client/version.rb +1 -1
  262. data/lib/datadog_api_client.rb +11 -5
  263. data/spec/{v1/api_client_spec.rb → api_client_spec.rb} +29 -29
  264. data/spec/{v1/configuration_spec.rb → configuration_spec.rb} +3 -3
  265. data/spec/spec_helper.rb +1 -3
  266. metadata +97 -21
  267. data/.dockerignore +0 -1
  268. data/.generator/src/generator/templates/api_error.j2 +0 -49
  269. data/examples/v2/usage-metering/GetEstimatedCostByOrg_1171921972.rb +0 -9
  270. data/examples/v2/usage-metering/GetEstimatedCostByOrg_627383212.rb +0 -9
  271. data/lib/datadog_api_client/v1/api_client.rb +0 -453
  272. data/lib/datadog_api_client/v1/api_error.rb +0 -60
  273. data/lib/datadog_api_client/v1.rb +0 -813
  274. data/lib/datadog_api_client/v2/api_error.rb +0 -60
  275. data/lib/datadog_api_client/v2/configuration.rb +0 -420
  276. data/spec/v2/api_client_spec.rb +0 -210
  277. data/spec/v2/configuration_spec.rb +0 -45
@@ -19,7 +19,7 @@ module DatadogAPIClient::V1
19
19
  class UsersAPI
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
 
@@ -43,15 +43,6 @@ module DatadogAPIClient::V1
43
43
  # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
44
44
  def create_user_with_http_info(body, opts = {})
45
45
 
46
- if @api_client.config.unstable_operations.has_key?(:create_user)
47
- unstable_enabled = @api_client.config.unstable_operations[:create_user]
48
- if unstable_enabled
49
- @api_client.config.logger.warn format("Using unstable operation '%s'", "create_user")
50
- else
51
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "create_user"))
52
- end
53
- end
54
-
55
46
  if @api_client.config.debugging
56
47
  @api_client.config.logger.debug 'Calling API: UsersAPI.create_user ...'
57
48
  end
@@ -91,7 +82,8 @@ module DatadogAPIClient::V1
91
82
  :form_params => form_params,
92
83
  :body => post_body,
93
84
  :auth_names => auth_names,
94
- :return_type => return_type
85
+ :return_type => return_type,
86
+ :api_version => "V1"
95
87
  )
96
88
 
97
89
  data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
@@ -121,15 +113,6 @@ module DatadogAPIClient::V1
121
113
  # @return [Array<(UserDisableResponse, Integer, Hash)>] UserDisableResponse data, response status code and response headers
122
114
  def disable_user_with_http_info(user_handle, opts = {})
123
115
 
124
- if @api_client.config.unstable_operations.has_key?(:disable_user)
125
- unstable_enabled = @api_client.config.unstable_operations[:disable_user]
126
- if unstable_enabled
127
- @api_client.config.logger.warn format("Using unstable operation '%s'", "disable_user")
128
- else
129
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "disable_user"))
130
- end
131
- end
132
-
133
116
  if @api_client.config.debugging
134
117
  @api_client.config.logger.debug 'Calling API: UsersAPI.disable_user ...'
135
118
  end
@@ -167,7 +150,8 @@ module DatadogAPIClient::V1
167
150
  :form_params => form_params,
168
151
  :body => post_body,
169
152
  :auth_names => auth_names,
170
- :return_type => return_type
153
+ :return_type => return_type,
154
+ :api_version => "V1"
171
155
  )
172
156
 
173
157
  data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
@@ -194,15 +178,6 @@ module DatadogAPIClient::V1
194
178
  # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
195
179
  def get_user_with_http_info(user_handle, opts = {})
196
180
 
197
- if @api_client.config.unstable_operations.has_key?(:get_user)
198
- unstable_enabled = @api_client.config.unstable_operations[:get_user]
199
- if unstable_enabled
200
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_user")
201
- else
202
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_user"))
203
- end
204
- end
205
-
206
181
  if @api_client.config.debugging
207
182
  @api_client.config.logger.debug 'Calling API: UsersAPI.get_user ...'
208
183
  end
@@ -240,7 +215,8 @@ module DatadogAPIClient::V1
240
215
  :form_params => form_params,
241
216
  :body => post_body,
242
217
  :auth_names => auth_names,
243
- :return_type => return_type
218
+ :return_type => return_type,
219
+ :api_version => "V1"
244
220
  )
245
221
 
246
222
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -266,15 +242,6 @@ module DatadogAPIClient::V1
266
242
  # @return [Array<(UserListResponse, Integer, Hash)>] UserListResponse data, response status code and response headers
267
243
  def list_users_with_http_info(opts = {})
268
244
 
269
- if @api_client.config.unstable_operations.has_key?(:list_users)
270
- unstable_enabled = @api_client.config.unstable_operations[:list_users]
271
- if unstable_enabled
272
- @api_client.config.logger.warn format("Using unstable operation '%s'", "list_users")
273
- else
274
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "list_users"))
275
- end
276
- end
277
-
278
245
  if @api_client.config.debugging
279
246
  @api_client.config.logger.debug 'Calling API: UsersAPI.list_users ...'
280
247
  end
@@ -308,7 +275,8 @@ module DatadogAPIClient::V1
308
275
  :form_params => form_params,
309
276
  :body => post_body,
310
277
  :auth_names => auth_names,
311
- :return_type => return_type
278
+ :return_type => return_type,
279
+ :api_version => "V1"
312
280
  )
313
281
 
314
282
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -338,15 +306,6 @@ module DatadogAPIClient::V1
338
306
  # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
339
307
  def update_user_with_http_info(user_handle, body, opts = {})
340
308
 
341
- if @api_client.config.unstable_operations.has_key?(:update_user)
342
- unstable_enabled = @api_client.config.unstable_operations[:update_user]
343
- if unstable_enabled
344
- @api_client.config.logger.warn format("Using unstable operation '%s'", "update_user")
345
- else
346
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "update_user"))
347
- end
348
- end
349
-
350
309
  if @api_client.config.debugging
351
310
  @api_client.config.logger.debug 'Calling API: UsersAPI.update_user ...'
352
311
  end
@@ -390,7 +349,8 @@ module DatadogAPIClient::V1
390
349
  :form_params => form_params,
391
350
  :body => post_body,
392
351
  :auth_names => auth_names,
393
- :return_type => return_type
352
+ :return_type => return_type,
353
+ :api_version => "V1"
394
354
  )
395
355
 
396
356
  data, status_code, headers = @api_client.call_api(Net::HTTP::Put, local_var_path, new_options)
@@ -19,7 +19,7 @@ module DatadogAPIClient::V1
19
19
  class WebhooksIntegrationAPI
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
 
@@ -40,15 +40,6 @@ module DatadogAPIClient::V1
40
40
  # @return [Array<(WebhooksIntegration, Integer, Hash)>] WebhooksIntegration data, response status code and response headers
41
41
  def create_webhooks_integration_with_http_info(body, opts = {})
42
42
 
43
- if @api_client.config.unstable_operations.has_key?(:create_webhooks_integration)
44
- unstable_enabled = @api_client.config.unstable_operations[:create_webhooks_integration]
45
- if unstable_enabled
46
- @api_client.config.logger.warn format("Using unstable operation '%s'", "create_webhooks_integration")
47
- else
48
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "create_webhooks_integration"))
49
- end
50
- end
51
-
52
43
  if @api_client.config.debugging
53
44
  @api_client.config.logger.debug 'Calling API: WebhooksIntegrationAPI.create_webhooks_integration ...'
54
45
  end
@@ -88,7 +79,8 @@ module DatadogAPIClient::V1
88
79
  :form_params => form_params,
89
80
  :body => post_body,
90
81
  :auth_names => auth_names,
91
- :return_type => return_type
82
+ :return_type => return_type,
83
+ :api_version => "V1"
92
84
  )
93
85
 
94
86
  data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
@@ -115,15 +107,6 @@ module DatadogAPIClient::V1
115
107
  # @return [Array<(WebhooksIntegrationCustomVariableResponse, Integer, Hash)>] WebhooksIntegrationCustomVariableResponse data, response status code and response headers
116
108
  def create_webhooks_integration_custom_variable_with_http_info(body, opts = {})
117
109
 
118
- if @api_client.config.unstable_operations.has_key?(:create_webhooks_integration_custom_variable)
119
- unstable_enabled = @api_client.config.unstable_operations[:create_webhooks_integration_custom_variable]
120
- if unstable_enabled
121
- @api_client.config.logger.warn format("Using unstable operation '%s'", "create_webhooks_integration_custom_variable")
122
- else
123
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "create_webhooks_integration_custom_variable"))
124
- end
125
- end
126
-
127
110
  if @api_client.config.debugging
128
111
  @api_client.config.logger.debug 'Calling API: WebhooksIntegrationAPI.create_webhooks_integration_custom_variable ...'
129
112
  end
@@ -163,7 +146,8 @@ module DatadogAPIClient::V1
163
146
  :form_params => form_params,
164
147
  :body => post_body,
165
148
  :auth_names => auth_names,
166
- :return_type => return_type
149
+ :return_type => return_type,
150
+ :api_version => "V1"
167
151
  )
168
152
 
169
153
  data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
@@ -190,15 +174,6 @@ module DatadogAPIClient::V1
190
174
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
191
175
  def delete_webhooks_integration_with_http_info(webhook_name, opts = {})
192
176
 
193
- if @api_client.config.unstable_operations.has_key?(:delete_webhooks_integration)
194
- unstable_enabled = @api_client.config.unstable_operations[:delete_webhooks_integration]
195
- if unstable_enabled
196
- @api_client.config.logger.warn format("Using unstable operation '%s'", "delete_webhooks_integration")
197
- else
198
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "delete_webhooks_integration"))
199
- end
200
- end
201
-
202
177
  if @api_client.config.debugging
203
178
  @api_client.config.logger.debug 'Calling API: WebhooksIntegrationAPI.delete_webhooks_integration ...'
204
179
  end
@@ -236,7 +211,8 @@ module DatadogAPIClient::V1
236
211
  :form_params => form_params,
237
212
  :body => post_body,
238
213
  :auth_names => auth_names,
239
- :return_type => return_type
214
+ :return_type => return_type,
215
+ :api_version => "V1"
240
216
  )
241
217
 
242
218
  data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
@@ -263,15 +239,6 @@ module DatadogAPIClient::V1
263
239
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
264
240
  def delete_webhooks_integration_custom_variable_with_http_info(custom_variable_name, opts = {})
265
241
 
266
- if @api_client.config.unstable_operations.has_key?(:delete_webhooks_integration_custom_variable)
267
- unstable_enabled = @api_client.config.unstable_operations[:delete_webhooks_integration_custom_variable]
268
- if unstable_enabled
269
- @api_client.config.logger.warn format("Using unstable operation '%s'", "delete_webhooks_integration_custom_variable")
270
- else
271
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "delete_webhooks_integration_custom_variable"))
272
- end
273
- end
274
-
275
242
  if @api_client.config.debugging
276
243
  @api_client.config.logger.debug 'Calling API: WebhooksIntegrationAPI.delete_webhooks_integration_custom_variable ...'
277
244
  end
@@ -309,7 +276,8 @@ module DatadogAPIClient::V1
309
276
  :form_params => form_params,
310
277
  :body => post_body,
311
278
  :auth_names => auth_names,
312
- :return_type => return_type
279
+ :return_type => return_type,
280
+ :api_version => "V1"
313
281
  )
314
282
 
315
283
  data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
@@ -336,15 +304,6 @@ module DatadogAPIClient::V1
336
304
  # @return [Array<(WebhooksIntegration, Integer, Hash)>] WebhooksIntegration data, response status code and response headers
337
305
  def get_webhooks_integration_with_http_info(webhook_name, opts = {})
338
306
 
339
- if @api_client.config.unstable_operations.has_key?(:get_webhooks_integration)
340
- unstable_enabled = @api_client.config.unstable_operations[:get_webhooks_integration]
341
- if unstable_enabled
342
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_webhooks_integration")
343
- else
344
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_webhooks_integration"))
345
- end
346
- end
347
-
348
307
  if @api_client.config.debugging
349
308
  @api_client.config.logger.debug 'Calling API: WebhooksIntegrationAPI.get_webhooks_integration ...'
350
309
  end
@@ -382,7 +341,8 @@ module DatadogAPIClient::V1
382
341
  :form_params => form_params,
383
342
  :body => post_body,
384
343
  :auth_names => auth_names,
385
- :return_type => return_type
344
+ :return_type => return_type,
345
+ :api_version => "V1"
386
346
  )
387
347
 
388
348
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -412,15 +372,6 @@ module DatadogAPIClient::V1
412
372
  # @return [Array<(WebhooksIntegrationCustomVariableResponse, Integer, Hash)>] WebhooksIntegrationCustomVariableResponse data, response status code and response headers
413
373
  def get_webhooks_integration_custom_variable_with_http_info(custom_variable_name, opts = {})
414
374
 
415
- if @api_client.config.unstable_operations.has_key?(:get_webhooks_integration_custom_variable)
416
- unstable_enabled = @api_client.config.unstable_operations[:get_webhooks_integration_custom_variable]
417
- if unstable_enabled
418
- @api_client.config.logger.warn format("Using unstable operation '%s'", "get_webhooks_integration_custom_variable")
419
- else
420
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_webhooks_integration_custom_variable"))
421
- end
422
- end
423
-
424
375
  if @api_client.config.debugging
425
376
  @api_client.config.logger.debug 'Calling API: WebhooksIntegrationAPI.get_webhooks_integration_custom_variable ...'
426
377
  end
@@ -458,7 +409,8 @@ module DatadogAPIClient::V1
458
409
  :form_params => form_params,
459
410
  :body => post_body,
460
411
  :auth_names => auth_names,
461
- :return_type => return_type
412
+ :return_type => return_type,
413
+ :api_version => "V1"
462
414
  )
463
415
 
464
416
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
@@ -486,15 +438,6 @@ module DatadogAPIClient::V1
486
438
  # @return [Array<(WebhooksIntegration, Integer, Hash)>] WebhooksIntegration data, response status code and response headers
487
439
  def update_webhooks_integration_with_http_info(webhook_name, body, opts = {})
488
440
 
489
- if @api_client.config.unstable_operations.has_key?(:update_webhooks_integration)
490
- unstable_enabled = @api_client.config.unstable_operations[:update_webhooks_integration]
491
- if unstable_enabled
492
- @api_client.config.logger.warn format("Using unstable operation '%s'", "update_webhooks_integration")
493
- else
494
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "update_webhooks_integration"))
495
- end
496
- end
497
-
498
441
  if @api_client.config.debugging
499
442
  @api_client.config.logger.debug 'Calling API: WebhooksIntegrationAPI.update_webhooks_integration ...'
500
443
  end
@@ -538,7 +481,8 @@ module DatadogAPIClient::V1
538
481
  :form_params => form_params,
539
482
  :body => post_body,
540
483
  :auth_names => auth_names,
541
- :return_type => return_type
484
+ :return_type => return_type,
485
+ :api_version => "V1"
542
486
  )
543
487
 
544
488
  data, status_code, headers = @api_client.call_api(Net::HTTP::Put, local_var_path, new_options)
@@ -566,15 +510,6 @@ module DatadogAPIClient::V1
566
510
  # @return [Array<(WebhooksIntegrationCustomVariableResponse, Integer, Hash)>] WebhooksIntegrationCustomVariableResponse data, response status code and response headers
567
511
  def update_webhooks_integration_custom_variable_with_http_info(custom_variable_name, body, opts = {})
568
512
 
569
- if @api_client.config.unstable_operations.has_key?(:update_webhooks_integration_custom_variable)
570
- unstable_enabled = @api_client.config.unstable_operations[:update_webhooks_integration_custom_variable]
571
- if unstable_enabled
572
- @api_client.config.logger.warn format("Using unstable operation '%s'", "update_webhooks_integration_custom_variable")
573
- else
574
- raise APIError.new(message: format("Unstable operation '%s' is disabled", "update_webhooks_integration_custom_variable"))
575
- end
576
- end
577
-
578
513
  if @api_client.config.debugging
579
514
  @api_client.config.logger.debug 'Calling API: WebhooksIntegrationAPI.update_webhooks_integration_custom_variable ...'
580
515
  end
@@ -618,7 +553,8 @@ module DatadogAPIClient::V1
618
553
  :form_params => form_params,
619
554
  :body => post_body,
620
555
  :auth_names => auth_names,
621
- :return_type => return_type
556
+ :return_type => return_type,
557
+ :api_version => "V1"
622
558
  )
623
559
 
624
560
  data, status_code, headers = @api_client.call_api(Net::HTTP::Put, local_var_path, new_options)
@@ -21,7 +21,7 @@ module DatadogAPIClient::V1
21
21
  # @!visibility private
22
22
  def build_from_hash(value)
23
23
  constantValues = self.class.constants.select { |c| self.class::const_get(c) == value }
24
- constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value
24
+ constantValues.empty? ? DatadogAPIClient::UnparsedObject.new(value) : value
25
25
  end
26
26
 
27
27
  module ClassMethods
@@ -118,7 +118,7 @@ module DatadogAPIClient::V1
118
118
  # models (e.g. Pet) or oneOf
119
119
  klass = DatadogAPIClient::V1.const_get(type)
120
120
  res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
121
- if res.instance_of? DatadogAPIClient::V1::UnparsedObject
121
+ if res.instance_of? DatadogAPIClient::UnparsedObject
122
122
  self._unparsed = true
123
123
  end
124
124
  res
@@ -55,7 +55,7 @@ module DatadogAPIClient::V1
55
55
  data
56
56
  else
57
57
  self._unparsed = true
58
- DatadogAPIClient::V1::UnparsedObject.new(data)
58
+ DatadogAPIClient::UnparsedObject.new(data)
59
59
  end
60
60
  end
61
61
  end
@@ -56,7 +56,7 @@ module DatadogAPIClient::V1
56
56
  data
57
57
  else
58
58
  self._unparsed = true
59
- DatadogAPIClient::V1::UnparsedObject.new(data)
59
+ DatadogAPIClient::UnparsedObject.new(data)
60
60
  end
61
61
  end
62
62
  end
@@ -58,7 +58,7 @@ module DatadogAPIClient::V1
58
58
  data
59
59
  else
60
60
  self._unparsed = true
61
- DatadogAPIClient::V1::UnparsedObject.new(data)
61
+ DatadogAPIClient::UnparsedObject.new(data)
62
62
  end
63
63
  end
64
64
  end
@@ -37,7 +37,11 @@ module DatadogAPIClient::V1
37
37
  # The source of the usage attribution tag configuration and the selected tags in the format of `<source_org_name>:::<selected tag 1>///<selected tag 2>///<selected tag 3>`.
38
38
  attr_accessor :tag_config_source
39
39
 
40
- # Usage Summary by tag name.
40
+ # Tag keys and values.
41
+ #
42
+ # A `null` value here means that the requested tag breakdown cannot be applied because it does not match the [tags
43
+ # configured for usage attribution](https://docs.datadoghq.com/account_management/billing/usage_attribution/#getting-started).
44
+ # In this scenario the API returns the total usage, not broken down by tags.
41
45
  attr_accessor :tags
42
46
 
43
47
  # Total product usage for the given tags within the hour.
@@ -26,9 +26,16 @@ module DatadogAPIClient::V1
26
26
  APPSEC_USAGE = "appsec_usage".freeze
27
27
  BROWSER_USAGE = "browser_usage".freeze
28
28
  CONTAINER_USAGE = "container_usage".freeze
29
+ CSPM_CONTAINERS_USAGE = "cspm_containers_usage".freeze
30
+ CSPM_HOSTS_USAGE = "cspm_hosts_usage".freeze
29
31
  CUSTOM_TIMESERIES_USAGE = "custom_timeseries_usage".freeze
32
+ CWS_CONTAINERS_USAGE = "cws_containers_usage".freeze
33
+ CWS_HOSTS_USAGE = "cws_hosts_usage".freeze
34
+ DBM_HOSTS_USAGE = "dbm_hosts_usage".freeze
35
+ DBM_QUERIES_USAGE = "dbm_queries_usage".freeze
30
36
  ESTIMATED_INDEXED_LOGS_USAGE = "estimated_indexed_logs_usage".freeze
31
37
  ESTIMATED_INDEXED_SPANS_USAGE = "estimated_indexed_spans_usage".freeze
38
+ ESTIMATED_INGESTED_SPANS_USAGE = "estimated_ingested_spans_usage".freeze
32
39
  FARGATE_USAGE = "fargate_usage".freeze
33
40
  FUNCTIONS_USAGE = "functions_usage".freeze
34
41
  INDEXED_LOGS_USAGE = "indexed_logs_usage".freeze
@@ -68,7 +68,7 @@ module DatadogAPIClient::V1
68
68
  data
69
69
  else
70
70
  self._unparsed = true
71
- DatadogAPIClient::V1::UnparsedObject.new(data)
71
+ DatadogAPIClient::UnparsedObject.new(data)
72
72
  end
73
73
  end
74
74
  end
@@ -54,7 +54,7 @@ module DatadogAPIClient::V1
54
54
  data
55
55
  else
56
56
  self._unparsed = true
57
- DatadogAPIClient::V1::UnparsedObject.new(data)
57
+ DatadogAPIClient::UnparsedObject.new(data)
58
58
  end
59
59
  end
60
60
  end
@@ -34,10 +34,14 @@ module DatadogAPIClient::V1
34
34
  # The organization public ID.
35
35
  attr_accessor :public_id
36
36
 
37
- # The source of the usage attribution tag configuration and the selected tags in the format `<source_org_name>:<selected tag 1>///<selected tag 2>///<selected tag 3>`.
37
+ # The source of the usage attribution tag configuration and the selected tags in the format `<source_org_name>:::<selected tag 1>///<selected tag 2>///<selected tag 3>`.
38
38
  attr_accessor :tag_config_source
39
39
 
40
- # Usage Summary by tag name.
40
+ # Tag keys and values.
41
+ #
42
+ # A `null` value here means that the requested tag breakdown cannot be applied because it does not match the [tags
43
+ # configured for usage attribution](https://docs.datadoghq.com/account_management/billing/usage_attribution/#getting-started).
44
+ # In this scenario the API returns the total usage, not broken down by tags.
41
45
  attr_accessor :tags
42
46
 
43
47
  # Datetime of the most recent update to the usage values.
@@ -31,12 +31,26 @@ module DatadogAPIClient::V1
31
31
  BROWSER_PERCENTAGE = "browser_percentage".freeze
32
32
  CONTAINER_USAGE = "container_usage".freeze
33
33
  CONTAINER_PERCENTAGE = "container_percentage".freeze
34
+ CSPM_CONTAINERS_PERCENTAGE = "cspm_containers_percentage".freeze
35
+ CSPM_CONTAINERS_USAGE = "cspm_containers_usage".freeze
36
+ CSPM_HOSTS_PERCENTAGE = "cspm_hosts_percentage".freeze
37
+ CSPM_HOSTS_USAGE = "cspm_hosts_usage".freeze
34
38
  CUSTOM_TIMESERIES_USAGE = "custom_timeseries_usage".freeze
35
39
  CUSTOM_TIMESERIES_PERCENTAGE = "custom_timeseries_percentage".freeze
40
+ CWS_CONTAINERS_PERCENTAGE = "cws_containers_percentage".freeze
41
+ CWS_CONTAINERS_USAGE = "cws_containers_usage".freeze
42
+ CWS_HOSTS_PERCENTAGE = "cws_hosts_percentage".freeze
43
+ CWS_HOSTS_USAGE = "cws_hosts_usage".freeze
44
+ DBM_HOSTS_PERCENTAGE = "dbm_hosts_percentage".freeze
45
+ DBM_HOSTS_USAGE = "dbm_hosts_usage".freeze
46
+ DBM_QUERIES_PERCENTAGE = "dbm_queries_percentage".freeze
47
+ DBM_QUERIES_USAGE = "dbm_queries_usage".freeze
36
48
  ESTIMATED_INDEXED_LOGS_USAGE = "estimated_indexed_logs_usage".freeze
37
49
  ESTIMATED_INDEXED_LOGS_PERCENTAGE = "estimated_indexed_logs_percentage".freeze
38
50
  ESTIMATED_INDEXED_SPANS_USAGE = "estimated_indexed_spans_usage".freeze
39
51
  ESTIMATED_INDEXED_SPANS_PERCENTAGE = "estimated_indexed_spans_percentage".freeze
52
+ ESTIMATED_INGESTED_SPANS_USAGE = "estimated_ingested_spans_usage".freeze
53
+ ESTIMATED_INGESTED_SPANS_PERCENTAGE = "estimated_ingested_spans_percentage".freeze
40
54
  FARGATE_USAGE = "fargate_usage".freeze
41
55
  FARGATE_PERCENTAGE = "fargate_percentage".freeze
42
56
  FUNCTIONS_USAGE = "functions_usage".freeze
@@ -73,6 +73,12 @@ module DatadogAPIClient::V1
73
73
  # The estimated indexed spans usage by tag(s). This field is in private beta.
74
74
  attr_accessor :estimated_indexed_spans_usage
75
75
 
76
+ # The percentage of estimated ingested spans usage by tag(s). This field is in private beta.
77
+ attr_accessor :estimated_ingested_spans_percentage
78
+
79
+ # The estimated ingested spans usage by tag(s). This field is in private beta.
80
+ attr_accessor :estimated_ingested_spans_usage
81
+
76
82
  # The percentage of Fargate usage by tags.
77
83
  attr_accessor :fargate_percentage
78
84
 
@@ -147,6 +153,8 @@ module DatadogAPIClient::V1
147
153
  :'estimated_indexed_logs_usage' => :'estimated_indexed_logs_usage',
148
154
  :'estimated_indexed_spans_percentage' => :'estimated_indexed_spans_percentage',
149
155
  :'estimated_indexed_spans_usage' => :'estimated_indexed_spans_usage',
156
+ :'estimated_ingested_spans_percentage' => :'estimated_ingested_spans_percentage',
157
+ :'estimated_ingested_spans_usage' => :'estimated_ingested_spans_usage',
150
158
  :'fargate_percentage' => :'fargate_percentage',
151
159
  :'fargate_usage' => :'fargate_usage',
152
160
  :'functions_percentage' => :'functions_percentage',
@@ -194,6 +202,8 @@ module DatadogAPIClient::V1
194
202
  :'estimated_indexed_logs_usage' => :'Float',
195
203
  :'estimated_indexed_spans_percentage' => :'Float',
196
204
  :'estimated_indexed_spans_usage' => :'Float',
205
+ :'estimated_ingested_spans_percentage' => :'Float',
206
+ :'estimated_ingested_spans_usage' => :'Float',
197
207
  :'fargate_percentage' => :'Float',
198
208
  :'fargate_usage' => :'Float',
199
209
  :'functions_percentage' => :'Float',
@@ -302,6 +312,14 @@ module DatadogAPIClient::V1
302
312
  self.estimated_indexed_spans_usage = attributes[:'estimated_indexed_spans_usage']
303
313
  end
304
314
 
315
+ if attributes.key?(:'estimated_ingested_spans_percentage')
316
+ self.estimated_ingested_spans_percentage = attributes[:'estimated_ingested_spans_percentage']
317
+ end
318
+
319
+ if attributes.key?(:'estimated_ingested_spans_usage')
320
+ self.estimated_ingested_spans_usage = attributes[:'estimated_ingested_spans_usage']
321
+ end
322
+
305
323
  if attributes.key?(:'fargate_percentage')
306
324
  self.fargate_percentage = attributes[:'fargate_percentage']
307
325
  end
@@ -404,6 +422,8 @@ module DatadogAPIClient::V1
404
422
  estimated_indexed_logs_usage == o.estimated_indexed_logs_usage &&
405
423
  estimated_indexed_spans_percentage == o.estimated_indexed_spans_percentage &&
406
424
  estimated_indexed_spans_usage == o.estimated_indexed_spans_usage &&
425
+ estimated_ingested_spans_percentage == o.estimated_ingested_spans_percentage &&
426
+ estimated_ingested_spans_usage == o.estimated_ingested_spans_usage &&
407
427
  fargate_percentage == o.fargate_percentage &&
408
428
  fargate_usage == o.fargate_usage &&
409
429
  functions_percentage == o.functions_percentage &&
@@ -435,7 +455,7 @@ module DatadogAPIClient::V1
435
455
  # @return [Integer] Hash code
436
456
  # @!visibility private
437
457
  def hash
438
- [api_percentage, api_usage, apm_host_percentage, apm_host_usage, appsec_percentage, appsec_usage, browser_percentage, browser_usage, container_percentage, container_usage, custom_timeseries_percentage, custom_timeseries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, fargate_percentage, fargate_usage, functions_percentage, functions_usage, indexed_logs_percentage, indexed_logs_usage, infra_host_percentage, infra_host_usage, invocations_percentage, invocations_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_host_percentage, profiled_host_usage, snmp_percentage, snmp_usage].hash
458
+ [api_percentage, api_usage, apm_host_percentage, apm_host_usage, appsec_percentage, appsec_usage, browser_percentage, browser_usage, container_percentage, container_usage, custom_timeseries_percentage, custom_timeseries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, fargate_percentage, fargate_usage, functions_percentage, functions_usage, indexed_logs_percentage, indexed_logs_usage, infra_host_percentage, infra_host_usage, invocations_percentage, invocations_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_host_percentage, profiled_host_usage, snmp_percentage, snmp_usage].hash
439
459
  end
440
460
  end
441
461
  end
@@ -60,7 +60,7 @@ module DatadogAPIClient::V1
60
60
  data
61
61
  else
62
62
  self._unparsed = true
63
- DatadogAPIClient::V1::UnparsedObject.new(data)
63
+ DatadogAPIClient::UnparsedObject.new(data)
64
64
  end
65
65
  end
66
66
  end
@@ -60,7 +60,7 @@ module DatadogAPIClient::V1
60
60
  data
61
61
  else
62
62
  self._unparsed = true
63
- DatadogAPIClient::V1::UnparsedObject.new(data)
63
+ DatadogAPIClient::UnparsedObject.new(data)
64
64
  end
65
65
  end
66
66
  end
@@ -55,7 +55,7 @@ module DatadogAPIClient::V1
55
55
  data
56
56
  else
57
57
  self._unparsed = true
58
- DatadogAPIClient::V1::UnparsedObject.new(data)
58
+ DatadogAPIClient::UnparsedObject.new(data)
59
59
  end
60
60
  end
61
61
  end
@@ -60,7 +60,7 @@ module DatadogAPIClient::V1
60
60
  data
61
61
  else
62
62
  self._unparsed = true
63
- DatadogAPIClient::V1::UnparsedObject.new(data)
63
+ DatadogAPIClient::UnparsedObject.new(data)
64
64
  end
65
65
  end
66
66
  end
@@ -55,7 +55,7 @@ module DatadogAPIClient::V1
55
55
  data
56
56
  else
57
57
  self._unparsed = true
58
- DatadogAPIClient::V1::UnparsedObject.new(data)
58
+ DatadogAPIClient::UnparsedObject.new(data)
59
59
  end
60
60
  end
61
61
  end
@@ -56,7 +56,7 @@ module DatadogAPIClient::V1
56
56
  data
57
57
  else
58
58
  self._unparsed = true
59
- DatadogAPIClient::V1::UnparsedObject.new(data)
59
+ DatadogAPIClient::UnparsedObject.new(data)
60
60
  end
61
61
  end
62
62
  end
@@ -55,7 +55,7 @@ module DatadogAPIClient::V1
55
55
  data
56
56
  else
57
57
  self._unparsed = true
58
- DatadogAPIClient::V1::UnparsedObject.new(data)
58
+ DatadogAPIClient::UnparsedObject.new(data)
59
59
  end
60
60
  end
61
61
  end
@@ -56,7 +56,7 @@ module DatadogAPIClient::V1
56
56
  data
57
57
  else
58
58
  self._unparsed = true
59
- DatadogAPIClient::V1::UnparsedObject.new(data)
59
+ DatadogAPIClient::UnparsedObject.new(data)
60
60
  end
61
61
  end
62
62
  end
@@ -56,7 +56,7 @@ module DatadogAPIClient::V1
56
56
  data
57
57
  else
58
58
  self._unparsed = true
59
- DatadogAPIClient::V1::UnparsedObject.new(data)
59
+ DatadogAPIClient::UnparsedObject.new(data)
60
60
  end
61
61
  end
62
62
  end