datadog_api_client 2.40.0 → 2.41.0

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 (258) hide show
  1. checksums.yaml +4 -4
  2. data/.generated-info +2 -2
  3. data/.generator/schemas/v1/openapi.yaml +35 -0
  4. data/.generator/schemas/v2/openapi.yaml +3544 -93
  5. data/CHANGELOG.md +30 -0
  6. data/examples/v1/dashboards/CreateDashboard_3066042014.rb +1 -0
  7. data/examples/v1/dashboards/CreateDashboard_3451918078.rb +1 -0
  8. data/examples/v1/dashboards/CreateDashboard_4262729673.rb +1 -0
  9. data/examples/v2/agentless-scanning/CreateAwsOnDemandTask.rb +1 -1
  10. data/examples/v2/agentless-scanning/GetAwsScanOptions.rb +8 -0
  11. data/examples/v2/agentless-scanning/ListAwsScanOptions.rb +1 -1
  12. data/examples/v2/cloud-cost-management/DeleteCostAWSCURConfig.rb +1 -1
  13. data/examples/v2/cloud-cost-management/DeleteCostAzureUCConfig.rb +1 -1
  14. data/examples/v2/cloud-cost-management/DeleteCostGCPUsageCostConfig.rb +1 -1
  15. data/examples/v2/cloud-cost-management/UpdateCostAWSCURConfig.rb +1 -1
  16. data/examples/v2/cloud-cost-management/UpdateCostAzureUCConfigs.rb +1 -1
  17. data/examples/v2/cloud-cost-management/UpdateCostGCPUsageCostConfig.rb +1 -1
  18. data/examples/v2/datasets/CreateDataset.rb +1 -1
  19. data/examples/v2/datasets/UpdateDataset.rb +1 -1
  20. data/examples/v2/error-tracking/GetIssue.rb +8 -0
  21. data/examples/v2/error-tracking/SearchIssues.rb +17 -0
  22. data/examples/v2/error-tracking/UpdateIssueAssignee.rb +15 -0
  23. data/examples/v2/error-tracking/UpdateIssueState.rb +18 -0
  24. data/examples/v2/incidents/CreateIncidentNotificationTemplate.rb +31 -0
  25. data/examples/v2/incidents/DeleteIncidentNotificationTemplate.rb +8 -0
  26. data/examples/v2/incidents/DeleteIncidentNotificationTemplate_1602689347.rb +11 -0
  27. data/examples/v2/incidents/GetIncidentNotificationTemplate.rb +11 -0
  28. data/examples/v2/incidents/ListIncidentNotificationTemplates.rb +8 -0
  29. data/examples/v2/incidents/UpdateIncidentNotificationTemplate.rb +24 -0
  30. data/examples/v2/org-connections/CreateOrgConnections.rb +24 -0
  31. data/examples/v2/org-connections/DeleteOrgConnections.rb +8 -0
  32. data/examples/v2/org-connections/ListOrgConnections.rb +5 -0
  33. data/examples/v2/org-connections/UpdateOrgConnections.rb +21 -0
  34. data/examples/v2/rum/CreateRUMApplication_1946294560.rb +17 -0
  35. data/examples/v2/rum/UpdateRUMApplication_394074053.rb +20 -0
  36. data/examples/v2/security-monitoring/ConvertExistingSecurityMonitoringRule.rb +3 -3
  37. data/examples/v2/security-monitoring/ConvertSecurityMonitoringRuleFromJSONToTerraform.rb +1 -1
  38. data/examples/v2/security-monitoring/GetSecurityMonitoringHistsignal.rb +8 -0
  39. data/examples/v2/security-monitoring/GetSecurityMonitoringHistsignalsByJobId.rb +8 -0
  40. data/examples/v2/security-monitoring/GetSuppressionsAffectingFutureRule.rb +36 -0
  41. data/examples/v2/security-monitoring/GetSuppressionsAffectingRule.rb +8 -0
  42. data/examples/v2/security-monitoring/ListSecurityMonitoringHistsignals.rb +8 -0
  43. data/examples/v2/security-monitoring/SearchSecurityMonitoringHistsignals.rb +24 -0
  44. data/examples/v2/security-monitoring/ValidateSecurityMonitoringSuppression.rb +18 -0
  45. data/examples/v2/sensitive-data-scanner/CreateScanningRule_502667299.rb +37 -0
  46. data/examples/v2/service-scorecards/UpdateScorecardOutcomesAsync.rb +27 -0
  47. data/examples/v2/spa/GetSPARecommendations.rb +8 -0
  48. data/examples/v2/teams/SyncTeams.rb +18 -0
  49. data/examples/v2/teams/SyncTeams_3215592344.rb +18 -0
  50. data/lib/datadog_api_client/configuration.rb +12 -0
  51. data/lib/datadog_api_client/inflector.rb +166 -0
  52. data/lib/datadog_api_client/v1/models/logs_api_limit_reached_response.rb +105 -0
  53. data/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb +11 -1
  54. data/lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb +11 -1
  55. data/lib/datadog_api_client/v1/models/synthetics_ci_test.rb +13 -3
  56. data/lib/datadog_api_client/v1/models/widget_legacy_live_span.rb +11 -1
  57. data/lib/datadog_api_client/v1/models/widget_new_fixed_span.rb +11 -1
  58. data/lib/datadog_api_client/v1/models/widget_new_live_span.rb +11 -1
  59. data/lib/datadog_api_client/v2/api/action_connection_api.rb +1 -1
  60. data/lib/datadog_api_client/v2/api/agentless_scanning_api.rb +67 -2
  61. data/lib/datadog_api_client/v2/api/app_builder_api.rb +8 -8
  62. data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +14 -6
  63. data/lib/datadog_api_client/v2/api/error_tracking_api.rb +306 -0
  64. data/lib/datadog_api_client/v2/api/incidents_api.rb +369 -0
  65. data/lib/datadog_api_client/v2/api/monitors_api.rb +20 -0
  66. data/lib/datadog_api_client/v2/api/org_connections_api.rb +290 -0
  67. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +514 -0
  68. data/lib/datadog_api_client/v2/api/service_scorecards_api.rb +73 -0
  69. data/lib/datadog_api_client/v2/api/spa_api.rb +102 -0
  70. data/lib/datadog_api_client/v2/api/teams_api.rb +83 -0
  71. data/lib/datadog_api_client/v2/api/workflow_automation_api.rb +8 -8
  72. data/lib/datadog_api_client/v2/models/aws_cur_config.rb +1 -1
  73. data/lib/datadog_api_client/v2/models/aws_cur_config_post_request_attributes.rb +1 -11
  74. data/lib/datadog_api_client/v2/models/aws_namespace_filters_exclude_only.rb +4 -4
  75. data/lib/datadog_api_client/v2/models/azure_uc_config.rb +1 -1
  76. data/lib/datadog_api_client/v2/models/azure_uc_config_pair.rb +1 -1
  77. data/lib/datadog_api_client/v2/models/azure_uc_config_pair_attributes.rb +1 -1
  78. data/lib/datadog_api_client/v2/models/component_recommendation.rb +123 -0
  79. data/lib/datadog_api_client/v2/models/cpu.rb +125 -0
  80. data/lib/datadog_api_client/v2/models/create_incident_notification_template_request.rb +123 -0
  81. data/lib/datadog_api_client/v2/models/dataset_request.rb +2 -2
  82. data/lib/datadog_api_client/v2/models/dataset_response.rb +2 -2
  83. data/lib/datadog_api_client/v2/models/dataset_type.rb +26 -0
  84. data/lib/datadog_api_client/v2/models/estimation.rb +145 -0
  85. data/lib/datadog_api_client/v2/models/get_issue_include_query_parameter_item.rb +28 -0
  86. data/lib/datadog_api_client/v2/models/google_meet_configuration_reference.rb +113 -0
  87. data/lib/datadog_api_client/v2/models/google_meet_configuration_reference_data.rb +144 -0
  88. data/lib/datadog_api_client/v2/models/incident_notification_template.rb +135 -0
  89. data/lib/datadog_api_client/v2/models/incident_notification_template_array.rb +147 -0
  90. data/lib/datadog_api_client/v2/models/incident_notification_template_array_meta.rb +105 -0
  91. data/lib/datadog_api_client/v2/models/incident_notification_template_array_meta_page.rb +115 -0
  92. data/lib/datadog_api_client/v2/models/incident_notification_template_attributes.rb +228 -0
  93. data/lib/datadog_api_client/v2/models/incident_notification_template_create_attributes.rb +186 -0
  94. data/lib/datadog_api_client/v2/models/incident_notification_template_create_data.rb +154 -0
  95. data/lib/datadog_api_client/v2/models/incident_notification_template_create_data_relationships.rb +105 -0
  96. data/lib/datadog_api_client/v2/models/incident_notification_template_included_items.rb +63 -0
  97. data/lib/datadog_api_client/v2/models/incident_notification_template_relationships.rb +125 -0
  98. data/lib/datadog_api_client/v2/models/incident_notification_template_response_data.rb +164 -0
  99. data/lib/datadog_api_client/v2/models/incident_notification_template_type.rb +26 -0
  100. data/lib/datadog_api_client/v2/models/incident_notification_template_update_attributes.rb +135 -0
  101. data/lib/datadog_api_client/v2/models/incident_notification_template_update_data.rb +154 -0
  102. data/lib/datadog_api_client/v2/models/incident_type_object.rb +11 -1
  103. data/lib/datadog_api_client/v2/models/incident_type_relationships.rb +155 -0
  104. data/lib/datadog_api_client/v2/models/issue.rb +175 -0
  105. data/lib/datadog_api_client/v2/models/issue_assignee_relationship.rb +123 -0
  106. data/lib/datadog_api_client/v2/models/issue_attributes.rb +227 -0
  107. data/lib/datadog_api_client/v2/models/issue_case.rb +175 -0
  108. data/lib/datadog_api_client/v2/models/issue_case_attributes.rb +237 -0
  109. data/lib/datadog_api_client/v2/models/issue_case_insight.rb +125 -0
  110. data/lib/datadog_api_client/v2/models/issue_case_jira_issue.rb +115 -0
  111. data/lib/datadog_api_client/v2/models/issue_case_jira_issue_result.rb +135 -0
  112. data/lib/datadog_api_client/v2/models/issue_case_reference.rb +144 -0
  113. data/lib/datadog_api_client/v2/models/issue_case_relationship.rb +123 -0
  114. data/lib/datadog_api_client/v2/models/issue_case_relationships.rb +145 -0
  115. data/lib/datadog_api_client/v2/models/issue_case_resource_type.rb +26 -0
  116. data/lib/datadog_api_client/v2/models/issue_included.rb +64 -0
  117. data/lib/datadog_api_client/v2/models/issue_language.rb +52 -0
  118. data/lib/datadog_api_client/v2/models/issue_platform.rb +33 -0
  119. data/lib/datadog_api_client/v2/models/issue_reference.rb +144 -0
  120. data/lib/datadog_api_client/v2/models/issue_relationships.rb +125 -0
  121. data/lib/datadog_api_client/v2/models/issue_response.rb +117 -0
  122. data/lib/datadog_api_client/v2/models/issue_state.rb +30 -0
  123. data/lib/datadog_api_client/v2/models/issue_team.rb +165 -0
  124. data/lib/datadog_api_client/v2/models/issue_team_attributes.rb +125 -0
  125. data/lib/datadog_api_client/v2/models/issue_team_owners_relationship.rb +125 -0
  126. data/lib/datadog_api_client/v2/models/issue_team_reference.rb +144 -0
  127. data/lib/datadog_api_client/v2/models/issue_team_type.rb +26 -0
  128. data/lib/datadog_api_client/v2/models/issue_type.rb +26 -0
  129. data/lib/datadog_api_client/v2/models/issue_update_assignee_request.rb +123 -0
  130. data/lib/datadog_api_client/v2/models/issue_update_assignee_request_data.rb +144 -0
  131. data/lib/datadog_api_client/v2/models/issue_update_assignee_request_data_type.rb +26 -0
  132. data/lib/datadog_api_client/v2/models/issue_update_state_request.rb +123 -0
  133. data/lib/datadog_api_client/v2/models/issue_update_state_request_data.rb +165 -0
  134. data/lib/datadog_api_client/v2/models/issue_update_state_request_data_attributes.rb +123 -0
  135. data/lib/datadog_api_client/v2/models/issue_update_state_request_data_type.rb +26 -0
  136. data/lib/datadog_api_client/v2/models/issue_user.rb +165 -0
  137. data/lib/datadog_api_client/v2/models/issue_user_attributes.rb +125 -0
  138. data/lib/datadog_api_client/v2/models/issue_user_reference.rb +144 -0
  139. data/lib/datadog_api_client/v2/models/issue_user_type.rb +26 -0
  140. data/lib/datadog_api_client/v2/models/issues_search_request.rb +123 -0
  141. data/lib/datadog_api_client/v2/models/issues_search_request_data.rb +144 -0
  142. data/lib/datadog_api_client/v2/models/issues_search_request_data_attributes.rb +195 -0
  143. data/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_order_by.rb +29 -0
  144. data/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_persona.rb +29 -0
  145. data/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_track.rb +28 -0
  146. data/lib/datadog_api_client/v2/models/issues_search_request_data_type.rb +26 -0
  147. data/lib/datadog_api_client/v2/models/issues_search_response.rb +119 -0
  148. data/lib/datadog_api_client/v2/models/issues_search_result.rb +175 -0
  149. data/lib/datadog_api_client/v2/models/issues_search_result_attributes.rb +125 -0
  150. data/lib/datadog_api_client/v2/models/issues_search_result_included.rb +65 -0
  151. data/lib/datadog_api_client/v2/models/issues_search_result_issue_relationship.rb +123 -0
  152. data/lib/datadog_api_client/v2/models/issues_search_result_relationships.rb +105 -0
  153. data/lib/datadog_api_client/v2/models/issues_search_result_type.rb +26 -0
  154. data/lib/datadog_api_client/v2/models/microsoft_teams_configuration_reference.rb +113 -0
  155. data/lib/datadog_api_client/v2/models/microsoft_teams_configuration_reference_data.rb +144 -0
  156. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_security_lake_destination.rb +252 -0
  157. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_security_lake_destination_type.rb +26 -0
  158. data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +4 -1
  159. data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_item.rb +3 -1
  160. data/lib/datadog_api_client/v2/models/observability_pipeline_config_source_item.rb +2 -1
  161. data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination.rb +208 -0
  162. data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination_compression.rb +133 -0
  163. data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination_compression_algorithm.rb +27 -0
  164. data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination_encoding.rb +27 -0
  165. data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination_type.rb +26 -0
  166. data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor.rb +215 -0
  167. data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor_remap.rb +207 -0
  168. data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor_type.rb +26 -0
  169. data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor.rb +253 -0
  170. data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor_action.rb +27 -0
  171. data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor_mode.rb +26 -0
  172. data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor_type.rb +26 -0
  173. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination.rb +240 -0
  174. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_encoding.rb +27 -0
  175. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing.rb +64 -0
  176. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_bytes.rb +123 -0
  177. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_bytes_method.rb +26 -0
  178. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_character_delimited.rb +152 -0
  179. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_character_delimited_method.rb +26 -0
  180. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_newline_delimited.rb +123 -0
  181. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_newline_delimited_method.rb +26 -0
  182. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_mode.rb +27 -0
  183. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_type.rb +26 -0
  184. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source.rb +196 -0
  185. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing.rb +66 -0
  186. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_bytes.rb +123 -0
  187. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_bytes_method.rb +26 -0
  188. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_character_delimited.rb +152 -0
  189. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_character_delimited_method.rb +26 -0
  190. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_chunked_gelf.rb +123 -0
  191. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_chunked_gelf_method.rb +26 -0
  192. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_newline_delimited.rb +123 -0
  193. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_newline_delimited_method.rb +26 -0
  194. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_octet_counting.rb +123 -0
  195. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_octet_counting_method.rb +26 -0
  196. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_mode.rb +27 -0
  197. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_type.rb +26 -0
  198. data/lib/datadog_api_client/v2/models/org_connection.rb +186 -0
  199. data/lib/datadog_api_client/v2/models/org_connection_attributes.rb +146 -0
  200. data/lib/datadog_api_client/v2/models/org_connection_create.rb +165 -0
  201. data/lib/datadog_api_client/v2/models/org_connection_create_attributes.rb +129 -0
  202. data/lib/datadog_api_client/v2/models/org_connection_create_relationships.rb +123 -0
  203. data/lib/datadog_api_client/v2/models/org_connection_create_request.rb +123 -0
  204. data/lib/datadog_api_client/v2/models/org_connection_list_response.rb +135 -0
  205. data/lib/datadog_api_client/v2/models/org_connection_list_response_meta.rb +105 -0
  206. data/lib/datadog_api_client/v2/models/org_connection_list_response_meta_page.rb +115 -0
  207. data/lib/datadog_api_client/v2/models/org_connection_org_relationship.rb +105 -0
  208. data/lib/datadog_api_client/v2/models/org_connection_org_relationship_data.rb +125 -0
  209. data/lib/datadog_api_client/v2/models/org_connection_org_relationship_data_type.rb +26 -0
  210. data/lib/datadog_api_client/v2/models/org_connection_relationships.rb +125 -0
  211. data/lib/datadog_api_client/v2/models/org_connection_response.rb +123 -0
  212. data/lib/datadog_api_client/v2/models/org_connection_type.rb +26 -0
  213. data/lib/datadog_api_client/v2/models/org_connection_type_enum.rb +27 -0
  214. data/lib/datadog_api_client/v2/models/org_connection_update.rb +165 -0
  215. data/lib/datadog_api_client/v2/models/org_connection_update_attributes.rb +129 -0
  216. data/lib/datadog_api_client/v2/models/org_connection_update_request.rb +123 -0
  217. data/lib/datadog_api_client/v2/models/org_connection_user_relationship.rb +105 -0
  218. data/lib/datadog_api_client/v2/models/org_connection_user_relationship_data.rb +125 -0
  219. data/lib/datadog_api_client/v2/models/org_connection_user_relationship_data_type.rb +26 -0
  220. data/lib/datadog_api_client/v2/models/patch_incident_notification_template_request.rb +123 -0
  221. data/lib/datadog_api_client/v2/models/recommendation_attributes.rb +144 -0
  222. data/lib/datadog_api_client/v2/models/recommendation_data.rb +154 -0
  223. data/lib/datadog_api_client/v2/models/recommendation_document.rb +123 -0
  224. data/lib/datadog_api_client/v2/models/recommendation_type.rb +26 -0
  225. data/lib/datadog_api_client/v2/models/relationship_to_incident_type.rb +123 -0
  226. data/lib/datadog_api_client/v2/models/relationship_to_incident_type_data.rb +144 -0
  227. data/lib/datadog_api_client/v2/models/rule_attributes.rb +33 -1
  228. data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +11 -1
  229. data/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb +21 -1
  230. data/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb +11 -1
  231. data/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb +21 -1
  232. data/lib/datadog_api_client/v2/models/rum_event_processing_scale.rb +115 -0
  233. data/lib/datadog_api_client/v2/models/rum_event_processing_state.rb +28 -0
  234. data/lib/datadog_api_client/v2/models/rum_product_analytics_retention_scale.rb +115 -0
  235. data/lib/datadog_api_client/v2/models/rum_product_analytics_retention_state.rb +27 -0
  236. data/lib/datadog_api_client/v2/models/rum_product_scales.rb +115 -0
  237. data/lib/datadog_api_client/v2/models/search_issues_include_query_parameter_item.rb +29 -0
  238. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_text_replacement.rb +11 -1
  239. data/lib/datadog_api_client/v2/models/shift.rb +2 -2
  240. data/lib/datadog_api_client/v2/models/shift_data.rb +3 -3
  241. data/lib/datadog_api_client/v2/models/shift_data_attributes.rb +1 -1
  242. data/lib/datadog_api_client/v2/models/shift_data_relationships.rb +1 -1
  243. data/lib/datadog_api_client/v2/models/shift_included.rb +1 -1
  244. data/lib/datadog_api_client/v2/models/team_sync_attributes.rb +144 -0
  245. data/lib/datadog_api_client/v2/models/team_sync_attributes_source.rb +26 -0
  246. data/lib/datadog_api_client/v2/models/team_sync_attributes_type.rb +26 -0
  247. data/lib/datadog_api_client/v2/models/team_sync_bulk_type.rb +26 -0
  248. data/lib/datadog_api_client/v2/models/team_sync_data.rb +144 -0
  249. data/lib/datadog_api_client/v2/models/team_sync_request.rb +123 -0
  250. data/lib/datadog_api_client/v2/models/update_outcomes_async_attributes.rb +107 -0
  251. data/lib/datadog_api_client/v2/models/update_outcomes_async_request.rb +105 -0
  252. data/lib/datadog_api_client/v2/models/update_outcomes_async_request_data.rb +115 -0
  253. data/lib/datadog_api_client/v2/models/update_outcomes_async_request_item.rb +175 -0
  254. data/lib/datadog_api_client/v2/models/update_outcomes_async_type.rb +26 -0
  255. data/lib/datadog_api_client/v2/models/zoom_configuration_reference.rb +113 -0
  256. data/lib/datadog_api_client/v2/models/zoom_configuration_reference_data.rb +144 -0
  257. data/lib/datadog_api_client/version.rb +1 -1
  258. metadata +196 -1
@@ -0,0 +1,102 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'cgi'
17
+
18
+ module DatadogAPIClient::V2
19
+ class SpaAPI
20
+ attr_accessor :api_client
21
+
22
+ def initialize(api_client = DatadogAPIClient::APIClient.default)
23
+ @api_client = api_client
24
+ end
25
+
26
+ # Get SPA Recommendations.
27
+ #
28
+ # @see #get_spa_recommendations_with_http_info
29
+ def get_spa_recommendations(shard, service, opts = {})
30
+ data, _status_code, _headers = get_spa_recommendations_with_http_info(shard, service, opts)
31
+ data
32
+ end
33
+
34
+ # Get SPA Recommendations.
35
+ #
36
+ # Retrieve resource recommendations for a Spark job. The caller (Spark Gateway or DJM UI) provides a service name and shard identifier, and SPA returns structured recommendations for driver and executor resources.
37
+ #
38
+ # @param shard [String] The shard tag for a spark job, which differentiates jobs within the same service that have different resource needs
39
+ # @param service [String] The service name for a spark job
40
+ # @param opts [Hash] the optional parameters
41
+ # @return [Array<(RecommendationDocument, Integer, Hash)>] RecommendationDocument data, response status code and response headers
42
+ def get_spa_recommendations_with_http_info(shard, service, opts = {})
43
+ unstable_enabled = @api_client.config.unstable_operations["v2.get_spa_recommendations".to_sym]
44
+ if unstable_enabled
45
+ @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_spa_recommendations")
46
+ else
47
+ raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_spa_recommendations"))
48
+ end
49
+
50
+ if @api_client.config.debugging
51
+ @api_client.config.logger.debug 'Calling API: SpaAPI.get_spa_recommendations ...'
52
+ end
53
+ # verify the required parameter 'shard' is set
54
+ if @api_client.config.client_side_validation && shard.nil?
55
+ fail ArgumentError, "Missing the required parameter 'shard' when calling SpaAPI.get_spa_recommendations"
56
+ end
57
+ # verify the required parameter 'service' is set
58
+ if @api_client.config.client_side_validation && service.nil?
59
+ fail ArgumentError, "Missing the required parameter 'service' when calling SpaAPI.get_spa_recommendations"
60
+ end
61
+ # resource path
62
+ local_var_path = '/api/v2/spa/recommendations/{service}/{shard}'.sub('{shard}', CGI.escape(shard.to_s).gsub('%2F', '/')).sub('{service}', CGI.escape(service.to_s).gsub('%2F', '/'))
63
+
64
+ # query parameters
65
+ query_params = opts[:query_params] || {}
66
+
67
+ # header parameters
68
+ header_params = opts[:header_params] || {}
69
+ # HTTP header 'Accept' (if needed)
70
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
71
+
72
+ # form parameters
73
+ form_params = opts[:form_params] || {}
74
+
75
+ # http body (model)
76
+ post_body = opts[:debug_body]
77
+
78
+ # return_type
79
+ return_type = opts[:debug_return_type] || 'RecommendationDocument'
80
+
81
+ # auth_names
82
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
83
+
84
+ new_options = opts.merge(
85
+ :operation => :get_spa_recommendations,
86
+ :header_params => header_params,
87
+ :query_params => query_params,
88
+ :form_params => form_params,
89
+ :body => post_body,
90
+ :auth_names => auth_names,
91
+ :return_type => return_type,
92
+ :api_version => "V2"
93
+ )
94
+
95
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
96
+ if @api_client.config.debugging
97
+ @api_client.config.logger.debug "API called: SpaAPI#get_spa_recommendations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
98
+ end
99
+ return data, status_code, headers
100
+ end
101
+ end
102
+ end
@@ -1225,6 +1225,89 @@ module DatadogAPIClient::V2
1225
1225
  return data, status_code, headers
1226
1226
  end
1227
1227
 
1228
+ # Link Teams with GitHub Teams.
1229
+ #
1230
+ # @see #sync_teams_with_http_info
1231
+ def sync_teams(body, opts = {})
1232
+ sync_teams_with_http_info(body, opts)
1233
+ nil
1234
+ end
1235
+
1236
+ # Link Teams with GitHub Teams.
1237
+ #
1238
+ # This endpoint attempts to link your existing Datadog teams with GitHub teams by matching their names.
1239
+ # It evaluates all current Datadog teams and compares them against teams in the GitHub organization
1240
+ # connected to your Datadog account, based on Datadog Team handle and GitHub Team slug
1241
+ # (lowercased and kebab-cased).
1242
+ #
1243
+ # This operation is read-only on the GitHub side, no teams will be modified or created.
1244
+ #
1245
+ # [A GitHub organization must be connected to your Datadog account](https://docs.datadoghq.com/integrations/github/),
1246
+ # and the GitHub App integrated with Datadog must have the `Members Read` permission. Matching is performed by comparing the Datadog team handle to the GitHub team slug
1247
+ # using a normalized exact match; case is ignored and spaces are removed. No modifications are made
1248
+ # to teams in GitHub. This will not create new Teams in Datadog.
1249
+ #
1250
+ # @param body [TeamSyncRequest]
1251
+ # @param opts [Hash] the optional parameters
1252
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1253
+ def sync_teams_with_http_info(body, opts = {})
1254
+ unstable_enabled = @api_client.config.unstable_operations["v2.sync_teams".to_sym]
1255
+ if unstable_enabled
1256
+ @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.sync_teams")
1257
+ else
1258
+ raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.sync_teams"))
1259
+ end
1260
+
1261
+ if @api_client.config.debugging
1262
+ @api_client.config.logger.debug 'Calling API: TeamsAPI.sync_teams ...'
1263
+ end
1264
+ # verify the required parameter 'body' is set
1265
+ if @api_client.config.client_side_validation && body.nil?
1266
+ fail ArgumentError, "Missing the required parameter 'body' when calling TeamsAPI.sync_teams"
1267
+ end
1268
+ # resource path
1269
+ local_var_path = '/api/v2/team/sync'
1270
+
1271
+ # query parameters
1272
+ query_params = opts[:query_params] || {}
1273
+
1274
+ # header parameters
1275
+ header_params = opts[:header_params] || {}
1276
+ # HTTP header 'Accept' (if needed)
1277
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1278
+ # HTTP header 'Content-Type'
1279
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1280
+
1281
+ # form parameters
1282
+ form_params = opts[:form_params] || {}
1283
+
1284
+ # http body (model)
1285
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1286
+
1287
+ # return_type
1288
+ return_type = opts[:debug_return_type]
1289
+
1290
+ # auth_names
1291
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1292
+
1293
+ new_options = opts.merge(
1294
+ :operation => :sync_teams,
1295
+ :header_params => header_params,
1296
+ :query_params => query_params,
1297
+ :form_params => form_params,
1298
+ :body => post_body,
1299
+ :auth_names => auth_names,
1300
+ :return_type => return_type,
1301
+ :api_version => "V2"
1302
+ )
1303
+
1304
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
1305
+ if @api_client.config.debugging
1306
+ @api_client.config.logger.debug "API called: TeamsAPI#sync_teams\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1307
+ end
1308
+ return data, status_code, headers
1309
+ end
1310
+
1228
1311
  # Update a team.
1229
1312
  #
1230
1313
  # @see #update_team_with_http_info
@@ -33,7 +33,7 @@ module DatadogAPIClient::V2
33
33
 
34
34
  # Cancel a workflow instance.
35
35
  #
36
- # Cancels a specific execution of a given workflow. This API requires a [registered application key](https://docs.datadoghq.com/api/latest/action-connection/#register-a-new-app-key).
36
+ # Cancels a specific execution of a given workflow. This API requires a [registered application key](https://docs.datadoghq.com/api/latest/action-connection/#register-a-new-app-key). Alternatively, you can configure these permissions [in the UI](https://docs.datadoghq.com/account_management/api-app-keys/#actions-api-access).
37
37
  #
38
38
  # @param workflow_id [String] The ID of the workflow.
39
39
  # @param instance_id [String] The ID of the workflow instance.
@@ -103,7 +103,7 @@ module DatadogAPIClient::V2
103
103
 
104
104
  # Create a Workflow.
105
105
  #
106
- # Create a new workflow, returning the workflow ID. This API requires a [registered application key](https://docs.datadoghq.com/api/latest/action-connection/#register-a-new-app-key).
106
+ # Create a new workflow, returning the workflow ID. This API requires a [registered application key](https://docs.datadoghq.com/api/latest/action-connection/#register-a-new-app-key). Alternatively, you can configure these permissions [in the UI](https://docs.datadoghq.com/account_management/api-app-keys/#actions-api-access).
107
107
  #
108
108
  # @param body [CreateWorkflowRequest]
109
109
  # @param opts [Hash] the optional parameters
@@ -170,7 +170,7 @@ module DatadogAPIClient::V2
170
170
 
171
171
  # Execute a workflow.
172
172
  #
173
- # Execute the given workflow. This API requires a [registered application key](https://docs.datadoghq.com/api/latest/action-connection/#register-a-new-app-key).
173
+ # Execute the given workflow. This API requires a [registered application key](https://docs.datadoghq.com/api/latest/action-connection/#register-a-new-app-key). Alternatively, you can configure these permissions [in the UI](https://docs.datadoghq.com/account_management/api-app-keys/#actions-api-access).
174
174
  #
175
175
  # @param workflow_id [String] The ID of the workflow.
176
176
  # @param body [WorkflowInstanceCreateRequest]
@@ -242,7 +242,7 @@ module DatadogAPIClient::V2
242
242
 
243
243
  # Delete an existing Workflow.
244
244
  #
245
- # Delete a workflow by ID. This API requires a [registered application key](https://docs.datadoghq.com/api/latest/action-connection/#register-a-new-app-key).
245
+ # Delete a workflow by ID. This API requires a [registered application key](https://docs.datadoghq.com/api/latest/action-connection/#register-a-new-app-key). Alternatively, you can configure these permissions [in the UI](https://docs.datadoghq.com/account_management/api-app-keys/#actions-api-access).
246
246
  #
247
247
  # @param workflow_id [String] The ID of the workflow.
248
248
  # @param opts [Hash] the optional parameters
@@ -307,7 +307,7 @@ module DatadogAPIClient::V2
307
307
 
308
308
  # Get an existing Workflow.
309
309
  #
310
- # Get a workflow by ID. This API requires a [registered application key](https://docs.datadoghq.com/api/latest/action-connection/#register-a-new-app-key).
310
+ # Get a workflow by ID. This API requires a [registered application key](https://docs.datadoghq.com/api/latest/action-connection/#register-a-new-app-key). Alternatively, you can configure these permissions [in the UI](https://docs.datadoghq.com/account_management/api-app-keys/#actions-api-access).
311
311
  #
312
312
  # @param workflow_id [String] The ID of the workflow.
313
313
  # @param opts [Hash] the optional parameters
@@ -372,7 +372,7 @@ module DatadogAPIClient::V2
372
372
 
373
373
  # Get a workflow instance.
374
374
  #
375
- # Get a specific execution of a given workflow. This API requires a [registered application key](https://docs.datadoghq.com/api/latest/action-connection/#register-a-new-app-key).
375
+ # Get a specific execution of a given workflow. This API requires a [registered application key](https://docs.datadoghq.com/api/latest/action-connection/#register-a-new-app-key). Alternatively, you can configure these permissions [in the UI](https://docs.datadoghq.com/account_management/api-app-keys/#actions-api-access).
376
376
  #
377
377
  # @param workflow_id [String] The ID of the workflow.
378
378
  # @param instance_id [String] The ID of the workflow instance.
@@ -442,7 +442,7 @@ module DatadogAPIClient::V2
442
442
 
443
443
  # List workflow instances.
444
444
  #
445
- # List all instances of a given workflow. This API requires a [registered application key](https://docs.datadoghq.com/api/latest/action-connection/#register-a-new-app-key).
445
+ # List all instances of a given workflow. This API requires a [registered application key](https://docs.datadoghq.com/api/latest/action-connection/#register-a-new-app-key). Alternatively, you can configure these permissions [in the UI](https://docs.datadoghq.com/account_management/api-app-keys/#actions-api-access).
446
446
  #
447
447
  # @param workflow_id [String] The ID of the workflow.
448
448
  # @param opts [Hash] the optional parameters
@@ -511,7 +511,7 @@ module DatadogAPIClient::V2
511
511
 
512
512
  # Update an existing Workflow.
513
513
  #
514
- # Update a workflow by ID. This API requires a [registered application key](https://docs.datadoghq.com/api/latest/action-connection/#register-a-new-app-key).
514
+ # Update a workflow by ID. This API requires a [registered application key](https://docs.datadoghq.com/api/latest/action-connection/#register-a-new-app-key). Alternatively, you can configure these permissions [in the UI](https://docs.datadoghq.com/account_management/api-app-keys/#actions-api-access).
515
515
  #
516
516
  # @param workflow_id [String] The ID of the workflow.
517
517
  # @param body [UpdateWorkflowRequest]
@@ -47,7 +47,7 @@ module DatadogAPIClient::V2
47
47
  def self.openapi_types
48
48
  {
49
49
  :'attributes' => :'AwsCURConfigAttributes',
50
- :'id' => :'Integer',
50
+ :'id' => :'String',
51
51
  :'type' => :'AwsCURConfigType'
52
52
  }
53
53
  end
@@ -33,9 +33,6 @@ module DatadogAPIClient::V2
33
33
  # The region the bucket is located in.
34
34
  attr_accessor :bucket_region
35
35
 
36
- # Whether or not the Cloud Cost Management account is enabled.
37
- attr_accessor :is_enabled
38
-
39
36
  # The month of the report.
40
37
  attr_reader :months
41
38
 
@@ -55,7 +52,6 @@ module DatadogAPIClient::V2
55
52
  :'account_id' => :'account_id',
56
53
  :'bucket_name' => :'bucket_name',
57
54
  :'bucket_region' => :'bucket_region',
58
- :'is_enabled' => :'is_enabled',
59
55
  :'months' => :'months',
60
56
  :'report_name' => :'report_name',
61
57
  :'report_prefix' => :'report_prefix'
@@ -70,7 +66,6 @@ module DatadogAPIClient::V2
70
66
  :'account_id' => :'String',
71
67
  :'bucket_name' => :'String',
72
68
  :'bucket_region' => :'String',
73
- :'is_enabled' => :'Boolean',
74
69
  :'months' => :'Integer',
75
70
  :'report_name' => :'String',
76
71
  :'report_prefix' => :'String'
@@ -111,10 +106,6 @@ module DatadogAPIClient::V2
111
106
  self.bucket_region = attributes[:'bucket_region']
112
107
  end
113
108
 
114
- if attributes.key?(:'is_enabled')
115
- self.is_enabled = attributes[:'is_enabled']
116
- end
117
-
118
109
  if attributes.key?(:'months')
119
110
  self.months = attributes[:'months']
120
111
  end
@@ -220,7 +211,6 @@ module DatadogAPIClient::V2
220
211
  account_id == o.account_id &&
221
212
  bucket_name == o.bucket_name &&
222
213
  bucket_region == o.bucket_region &&
223
- is_enabled == o.is_enabled &&
224
214
  months == o.months &&
225
215
  report_name == o.report_name &&
226
216
  report_prefix == o.report_prefix &&
@@ -231,7 +221,7 @@ module DatadogAPIClient::V2
231
221
  # @return [Integer] Hash code
232
222
  # @!visibility private
233
223
  def hash
234
- [account_filters, account_id, bucket_name, bucket_region, is_enabled, months, report_name, report_prefix, additional_properties].hash
224
+ [account_filters, account_id, bucket_name, bucket_region, months, report_name, report_prefix, additional_properties].hash
235
225
  end
236
226
  end
237
227
  end
@@ -17,13 +17,13 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V2
20
- # Exclude only these namespaces from metrics collection. Defaults to `["AWS/SQS", "AWS/ElasticMapReduce"]`.
21
- # `AWS/SQS` and `AWS/ElasticMapReduce` are excluded by default to reduce your AWS CloudWatch costs from `GetMetricData` API calls.
20
+ # Exclude only these namespaces from metrics collection. Defaults to `["AWS/SQS", "AWS/ElasticMapReduce", "AWS/Usage"]`.
21
+ # `AWS/SQS`, `AWS/ElasticMapReduce`, and `AWS/Usage` are excluded by default to reduce your AWS CloudWatch costs from `GetMetricData` API calls.
22
22
  class AWSNamespaceFiltersExcludeOnly
23
23
  include BaseGenericModel
24
24
 
25
- # Exclude only these namespaces from metrics collection. Defaults to `["AWS/SQS", "AWS/ElasticMapReduce"]`.
26
- # `AWS/SQS` and `AWS/ElasticMapReduce` are excluded by default to reduce your AWS CloudWatch costs from `GetMetricData` API calls.
25
+ # Exclude only these namespaces from metrics collection. Defaults to `["AWS/SQS", "AWS/ElasticMapReduce", "AWS/Usage"]`.
26
+ # `AWS/SQS`, `AWS/ElasticMapReduce`, and `AWS/Usage` are excluded by default to reduce your AWS CloudWatch costs from `GetMetricData` API calls.
27
27
  attr_reader :exclude_only
28
28
 
29
29
  attr_accessor :additional_properties
@@ -101,7 +101,7 @@ module DatadogAPIClient::V2
101
101
  :'error_messages' => :'Array<String>',
102
102
  :'export_name' => :'String',
103
103
  :'export_path' => :'String',
104
- :'id' => :'Integer',
104
+ :'id' => :'String',
105
105
  :'months' => :'Integer',
106
106
  :'scope' => :'String',
107
107
  :'status' => :'String',
@@ -47,7 +47,7 @@ module DatadogAPIClient::V2
47
47
  def self.openapi_types
48
48
  {
49
49
  :'attributes' => :'AzureUCConfigPairAttributes',
50
- :'id' => :'Integer',
50
+ :'id' => :'String',
51
51
  :'type' => :'AzureUCConfigPairType'
52
52
  }
53
53
  end
@@ -43,7 +43,7 @@ module DatadogAPIClient::V2
43
43
  def self.openapi_types
44
44
  {
45
45
  :'configs' => :'Array<AzureUCConfig>',
46
- :'id' => :'Integer'
46
+ :'id' => :'String'
47
47
  }
48
48
  end
49
49
 
@@ -0,0 +1,123 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # Resource recommendation for a single Spark component (driver or executor). Contains estimation data used to patch Spark job specs.
21
+ class ComponentRecommendation
22
+ include BaseGenericModel
23
+
24
+ # Recommended resource values for a Spark driver or executor, derived from recent real usage metrics. Used by SPA to propose more efficient pod sizing.
25
+ attr_reader :estimation
26
+
27
+ attr_accessor :additional_properties
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ # @!visibility private
31
+ def self.attribute_map
32
+ {
33
+ :'estimation' => :'estimation'
34
+ }
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ # @!visibility private
39
+ def self.openapi_types
40
+ {
41
+ :'estimation' => :'Estimation'
42
+ }
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param attributes [Hash] Model attributes in the form of hash
47
+ # @!visibility private
48
+ def initialize(attributes = {})
49
+ if (!attributes.is_a?(Hash))
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ComponentRecommendation` initialize method"
51
+ end
52
+
53
+ self.additional_properties = {}
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h|
56
+ if (!self.class.attribute_map.key?(k.to_sym))
57
+ self.additional_properties[k.to_sym] = v
58
+ else
59
+ h[k.to_sym] = v
60
+ end
61
+ }
62
+
63
+ if attributes.key?(:'estimation')
64
+ self.estimation = attributes[:'estimation']
65
+ end
66
+ end
67
+
68
+ # Check to see if the all the properties in the model are valid
69
+ # @return true if the model is valid
70
+ # @!visibility private
71
+ def valid?
72
+ return false if @estimation.nil?
73
+ true
74
+ end
75
+
76
+ # Custom attribute writer method with validation
77
+ # @param estimation [Object] Object to be assigned
78
+ # @!visibility private
79
+ def estimation=(estimation)
80
+ if estimation.nil?
81
+ fail ArgumentError, 'invalid value for "estimation", estimation cannot be nil.'
82
+ end
83
+ @estimation = estimation
84
+ end
85
+
86
+ # Returns the object in the form of hash, with additionalProperties support.
87
+ # @return [Hash] Returns the object in the form of hash
88
+ # @!visibility private
89
+ def to_hash
90
+ hash = {}
91
+ self.class.attribute_map.each_pair do |attr, param|
92
+ value = self.send(attr)
93
+ if value.nil?
94
+ is_nullable = self.class.openapi_nullable.include?(attr)
95
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
96
+ end
97
+
98
+ hash[param] = _to_hash(value)
99
+ end
100
+ self.additional_properties.each_pair do |attr, value|
101
+ hash[attr] = value
102
+ end
103
+ hash
104
+ end
105
+
106
+ # Checks equality by comparing each attribute.
107
+ # @param o [Object] Object to be compared
108
+ # @!visibility private
109
+ def ==(o)
110
+ return true if self.equal?(o)
111
+ self.class == o.class &&
112
+ estimation == o.estimation &&
113
+ additional_properties == o.additional_properties
114
+ end
115
+
116
+ # Calculates hash code according to all attributes.
117
+ # @return [Integer] Hash code
118
+ # @!visibility private
119
+ def hash
120
+ [estimation, additional_properties].hash
121
+ end
122
+ end
123
+ end
@@ -0,0 +1,125 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # CPU usage statistics derived from historical Spark job metrics. Provides multiple estimates so users can choose between conservative and cost-saving risk profiles.
21
+ class Cpu
22
+ include BaseGenericModel
23
+
24
+ # Maximum CPU usage observed for the job, expressed in millicores. This represents the upper bound of usage.
25
+ attr_accessor :max
26
+
27
+ # 75th percentile of CPU usage (millicores). Represents a cost-saving configuration while covering most workloads.
28
+ attr_accessor :p75
29
+
30
+ # 95th percentile of CPU usage (millicores). Balances performance and cost, providing a safer margin than p75.
31
+ attr_accessor :p95
32
+
33
+ attr_accessor :additional_properties
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ # @!visibility private
37
+ def self.attribute_map
38
+ {
39
+ :'max' => :'max',
40
+ :'p75' => :'p75',
41
+ :'p95' => :'p95'
42
+ }
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ # @!visibility private
47
+ def self.openapi_types
48
+ {
49
+ :'max' => :'Integer',
50
+ :'p75' => :'Integer',
51
+ :'p95' => :'Integer'
52
+ }
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param attributes [Hash] Model attributes in the form of hash
57
+ # @!visibility private
58
+ def initialize(attributes = {})
59
+ if (!attributes.is_a?(Hash))
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Cpu` initialize method"
61
+ end
62
+
63
+ self.additional_properties = {}
64
+ # check to see if the attribute exists and convert string to symbol for hash key
65
+ attributes = attributes.each_with_object({}) { |(k, v), h|
66
+ if (!self.class.attribute_map.key?(k.to_sym))
67
+ self.additional_properties[k.to_sym] = v
68
+ else
69
+ h[k.to_sym] = v
70
+ end
71
+ }
72
+
73
+ if attributes.key?(:'max')
74
+ self.max = attributes[:'max']
75
+ end
76
+
77
+ if attributes.key?(:'p75')
78
+ self.p75 = attributes[:'p75']
79
+ end
80
+
81
+ if attributes.key?(:'p95')
82
+ self.p95 = attributes[:'p95']
83
+ end
84
+ end
85
+
86
+ # Returns the object in the form of hash, with additionalProperties support.
87
+ # @return [Hash] Returns the object in the form of hash
88
+ # @!visibility private
89
+ def to_hash
90
+ hash = {}
91
+ self.class.attribute_map.each_pair do |attr, param|
92
+ value = self.send(attr)
93
+ if value.nil?
94
+ is_nullable = self.class.openapi_nullable.include?(attr)
95
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
96
+ end
97
+
98
+ hash[param] = _to_hash(value)
99
+ end
100
+ self.additional_properties.each_pair do |attr, value|
101
+ hash[attr] = value
102
+ end
103
+ hash
104
+ end
105
+
106
+ # Checks equality by comparing each attribute.
107
+ # @param o [Object] Object to be compared
108
+ # @!visibility private
109
+ def ==(o)
110
+ return true if self.equal?(o)
111
+ self.class == o.class &&
112
+ max == o.max &&
113
+ p75 == o.p75 &&
114
+ p95 == o.p95 &&
115
+ additional_properties == o.additional_properties
116
+ end
117
+
118
+ # Calculates hash code according to all attributes.
119
+ # @return [Integer] Hash code
120
+ # @!visibility private
121
+ def hash
122
+ [max, p75, p95, additional_properties].hash
123
+ end
124
+ end
125
+ end