datadog_api_client 2.3.0 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (663) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +592 -33
  4. data/.generator/schemas/v2/openapi.yaml +8379 -6204
  5. data/.generator/src/generator/templates/configuration.j2 +14 -4
  6. data/.generator/src/generator/templates/model_generic.j2 +17 -0
  7. data/.generator/src/generator/templates/package.j2 +0 -1
  8. data/.github/workflows/docs.yml +2 -0
  9. data/.github/workflows/test.yml +20 -19
  10. data/CHANGELOG.md +46 -0
  11. data/examples/v1/dashboards/CreateDashboard_41622531.rb +56 -0
  12. data/examples/v1/logs-indexes/UpdateLogsIndex.rb +3 -0
  13. data/examples/v1/monitors/CreateMonitor_2012680290.rb +23 -0
  14. data/examples/v1/service-level-objective-corrections/ListSLOCorrection.rb +5 -1
  15. data/examples/v1/service-level-objectives/GetSLOHistory.rb +0 -3
  16. data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +1 -1
  17. data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +1 -1
  18. data/examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.rb +1 -1
  19. data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +20 -1
  20. data/examples/v1/synthetics/CreateSyntheticsAPITest_960766374.rb +109 -0
  21. data/examples/v1/synthetics/CreateSyntheticsBrowserTest.rb +1 -1
  22. data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +1 -1
  23. data/examples/v1/synthetics/ListTests.rb +1 -1
  24. data/examples/v1/synthetics/UpdateAPITest.rb +1 -1
  25. data/examples/v1/synthetics/UpdateBrowserTest.rb +3 -1
  26. data/examples/v2/ci-visibility-pipelines/AggregateCIAppPipelineEvents.rb +33 -0
  27. data/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents.rb +11 -0
  28. data/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents_1270618359.rb +10 -0
  29. data/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb +23 -0
  30. data/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents_3246135003.rb +22 -0
  31. data/examples/v2/ci-visibility-tests/AggregateCIAppTestEvents.rb +36 -0
  32. data/examples/v2/ci-visibility-tests/ListCIAppTestEvents.rb +11 -0
  33. data/examples/v2/ci-visibility-tests/ListCIAppTestEvents_3852605281.rb +10 -0
  34. data/examples/v2/ci-visibility-tests/SearchCIAppTestEvents.rb +23 -0
  35. data/examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb +20 -0
  36. data/examples/v2/logs-metrics/CreateLogsMetric.rb +3 -1
  37. data/examples/v2/logs-metrics/UpdateLogsMetric_1901534424.rb +19 -0
  38. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb +41 -0
  39. data/examples/v2/security-monitoring/GetSecurityMonitoringRule.rb +4 -1
  40. data/examples/v2/security-monitoring/GetSecurityMonitoringRule_3370522281.rb +8 -0
  41. data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +23 -33
  42. data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.rb +36 -0
  43. data/examples/v2/sensitive-data-scanner/CreateScanningGroup.rb +36 -0
  44. data/examples/v2/sensitive-data-scanner/CreateScanningRule.rb +34 -0
  45. data/examples/v2/sensitive-data-scanner/DeleteScanningGroup.rb +12 -0
  46. data/examples/v2/sensitive-data-scanner/DeleteScanningRule.rb +12 -0
  47. data/examples/v2/sensitive-data-scanner/ListScanningGroups.rb +5 -0
  48. data/examples/v2/sensitive-data-scanner/ListStandardPatterns.rb +5 -0
  49. data/examples/v2/sensitive-data-scanner/ReorderScanningGroups.rb +29 -0
  50. data/examples/v2/sensitive-data-scanner/UpdateScanningGroup.rb +40 -0
  51. data/examples/v2/sensitive-data-scanner/UpdateScanningRule.rb +38 -0
  52. data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +1 -1
  53. data/examples/v2/service-definition/DeleteServiceDefinition.rb +1 -1
  54. data/examples/v2/service-definition/GetServiceDefinition.rb +1 -1
  55. data/examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb +1 -1
  56. data/examples/v2/usage-metering/GetHistoricalCostByOrg.rb +1 -1
  57. data/lib/datadog_api_client/configuration.rb +14 -5
  58. data/lib/datadog_api_client/inflector.rb +123 -1
  59. data/lib/datadog_api_client/models.rb +0 -1
  60. data/lib/datadog_api_client/v1/api/events_api.rb +1 -1
  61. data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +4 -0
  62. data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +0 -6
  63. data/lib/datadog_api_client/v1/api/synthetics_api.rb +6 -2
  64. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +5 -5
  65. data/lib/datadog_api_client/v1/models/add_signal_to_incident_request.rb +1 -1
  66. data/lib/datadog_api_client/v1/models/alert_graph_widget_definition.rb +3 -3
  67. data/lib/datadog_api_client/v1/models/alert_value_widget_definition.rb +2 -2
  68. data/lib/datadog_api_client/v1/models/api_error_response.rb +1 -1
  69. data/lib/datadog_api_client/v1/models/api_key.rb +1 -1
  70. data/lib/datadog_api_client/v1/models/apm_stats_query_column_type.rb +1 -1
  71. data/lib/datadog_api_client/v1/models/apm_stats_query_definition.rb +5 -5
  72. data/lib/datadog_api_client/v1/models/application_key.rb +1 -1
  73. data/lib/datadog_api_client/v1/models/aws_account_and_lambda_request.rb +2 -2
  74. data/lib/datadog_api_client/v1/models/aws_logs_services_request.rb +2 -2
  75. data/lib/datadog_api_client/v1/models/cancel_downtimes_by_scope_request.rb +1 -1
  76. data/lib/datadog_api_client/v1/models/change_widget_definition.rb +2 -2
  77. data/lib/datadog_api_client/v1/models/check_can_delete_monitor_response.rb +1 -1
  78. data/lib/datadog_api_client/v1/models/check_status_widget_definition.rb +3 -3
  79. data/lib/datadog_api_client/v1/models/dashboard.rb +3 -3
  80. data/lib/datadog_api_client/v1/models/dashboard_bulk_action_data.rb +2 -2
  81. data/lib/datadog_api_client/v1/models/dashboard_bulk_delete_request.rb +1 -1
  82. data/lib/datadog_api_client/v1/models/dashboard_list.rb +1 -1
  83. data/lib/datadog_api_client/v1/models/dashboard_restore_request.rb +1 -1
  84. data/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +1 -1
  85. data/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb +1 -1
  86. data/lib/datadog_api_client/v1/models/distribution_points_payload.rb +1 -1
  87. data/lib/datadog_api_client/v1/models/distribution_points_series.rb +2 -2
  88. data/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +2 -2
  89. data/lib/datadog_api_client/v1/models/downtime.rb +3 -3
  90. data/lib/datadog_api_client/v1/models/downtime_child.rb +3 -3
  91. data/lib/datadog_api_client/v1/models/downtime_recurrence.rb +2 -2
  92. data/lib/datadog_api_client/v1/models/event.rb +1 -1
  93. data/lib/datadog_api_client/v1/models/event_create_request.rb +3 -3
  94. data/lib/datadog_api_client/v1/models/event_query_definition.rb +2 -2
  95. data/lib/datadog_api_client/v1/models/event_stream_widget_definition.rb +2 -2
  96. data/lib/datadog_api_client/v1/models/event_timeline_widget_definition.rb +2 -2
  97. data/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb +7 -7
  98. data/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb +5 -5
  99. data/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb +3 -3
  100. data/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_compute.rb +1 -1
  101. data/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_search.rb +1 -1
  102. data/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by.rb +1 -1
  103. data/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by_sort.rb +1 -1
  104. data/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb +3 -3
  105. data/lib/datadog_api_client/v1/models/formula_and_function_process_query_definition.rb +3 -3
  106. data/lib/datadog_api_client/v1/models/free_text_widget_definition.rb +2 -2
  107. data/lib/datadog_api_client/v1/models/funnel_query.rb +3 -3
  108. data/lib/datadog_api_client/v1/models/funnel_step.rb +2 -2
  109. data/lib/datadog_api_client/v1/models/funnel_widget_definition.rb +2 -2
  110. data/lib/datadog_api_client/v1/models/funnel_widget_request.rb +2 -2
  111. data/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +4 -4
  112. data/lib/datadog_api_client/v1/models/geomap_widget_definition_style.rb +2 -2
  113. data/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb +1 -1
  114. data/lib/datadog_api_client/v1/models/group_widget_definition.rb +3 -3
  115. data/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb +2 -2
  116. data/lib/datadog_api_client/v1/models/host_map_widget_definition.rb +2 -2
  117. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -0
  118. data/lib/datadog_api_client/v1/models/http_log_error.rb +2 -2
  119. data/lib/datadog_api_client/v1/models/http_log_item.rb +1 -1
  120. data/lib/datadog_api_client/v1/models/i_frame_widget_definition.rb +2 -2
  121. data/lib/datadog_api_client/v1/models/idp_form_data.rb +1 -1
  122. data/lib/datadog_api_client/v1/models/idp_response.rb +1 -1
  123. data/lib/datadog_api_client/v1/models/image_widget_definition.rb +2 -2
  124. data/lib/datadog_api_client/v1/models/list_stream_column.rb +2 -2
  125. data/lib/datadog_api_client/v1/models/list_stream_query.rb +2 -2
  126. data/lib/datadog_api_client/v1/models/list_stream_widget_definition.rb +2 -2
  127. data/lib/datadog_api_client/v1/models/list_stream_widget_request.rb +3 -3
  128. data/lib/datadog_api_client/v1/models/log_query_definition_group_by.rb +1 -1
  129. data/lib/datadog_api_client/v1/models/log_query_definition_group_by_sort.rb +2 -2
  130. data/lib/datadog_api_client/v1/models/log_query_definition_search.rb +1 -1
  131. data/lib/datadog_api_client/v1/models/log_stream_widget_definition.rb +1 -1
  132. data/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb +3 -3
  133. data/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb +3 -3
  134. data/lib/datadog_api_client/v1/models/logs_category_processor.rb +3 -3
  135. data/lib/datadog_api_client/v1/models/logs_date_remapper.rb +2 -2
  136. data/lib/datadog_api_client/v1/models/logs_exclusion.rb +1 -1
  137. data/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb +1 -1
  138. data/lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb +3 -3
  139. data/lib/datadog_api_client/v1/models/logs_grok_parser.rb +4 -4
  140. data/lib/datadog_api_client/v1/models/logs_grok_parser_rules.rb +1 -1
  141. data/lib/datadog_api_client/v1/models/logs_index.rb +2 -2
  142. data/lib/datadog_api_client/v1/models/logs_index_update_request.rb +1 -1
  143. data/lib/datadog_api_client/v1/models/logs_indexes_order.rb +1 -1
  144. data/lib/datadog_api_client/v1/models/logs_list_request.rb +2 -2
  145. data/lib/datadog_api_client/v1/models/logs_list_request_time.rb +2 -2
  146. data/lib/datadog_api_client/v1/models/logs_lookup_processor.rb +4 -4
  147. data/lib/datadog_api_client/v1/models/logs_message_remapper.rb +2 -2
  148. data/lib/datadog_api_client/v1/models/logs_pipeline.rb +1 -1
  149. data/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb +1 -1
  150. data/lib/datadog_api_client/v1/models/logs_pipelines_order.rb +1 -1
  151. data/lib/datadog_api_client/v1/models/logs_processor.rb +1 -0
  152. data/lib/datadog_api_client/v1/models/logs_query_compute.rb +1 -1
  153. data/lib/datadog_api_client/v1/models/logs_service_remapper.rb +2 -2
  154. data/lib/datadog_api_client/v1/models/logs_status_remapper.rb +2 -2
  155. data/lib/datadog_api_client/v1/models/logs_string_builder_processor.rb +3 -3
  156. data/lib/datadog_api_client/v1/models/logs_trace_remapper.rb +1 -1
  157. data/lib/datadog_api_client/v1/models/logs_url_parser.rb +3 -3
  158. data/lib/datadog_api_client/v1/models/logs_user_agent_parser.rb +3 -3
  159. data/lib/datadog_api_client/v1/models/metrics_payload.rb +1 -1
  160. data/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +1 -1
  161. data/lib/datadog_api_client/v1/models/monitor.rb +3 -3
  162. data/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition.rb +3 -3
  163. data/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_compute.rb +1 -1
  164. data/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_search.rb +1 -1
  165. data/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by.rb +1 -1
  166. data/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by_sort.rb +1 -1
  167. data/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb +4 -0
  168. data/lib/datadog_api_client/v1/models/monitor_options.rb +22 -2
  169. data/lib/datadog_api_client/v1/models/monitor_options_scheduling_options.rb +98 -0
  170. data/lib/datadog_api_client/v1/models/monitor_options_scheduling_options_evaluation_window.rb +148 -0
  171. data/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb +2 -2
  172. data/lib/datadog_api_client/v1/models/monitor_update_request.rb +1 -1
  173. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -0
  174. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +141 -1
  175. data/lib/datadog_api_client/v1/models/note_widget_definition.rb +2 -2
  176. data/lib/datadog_api_client/v1/models/notebook_absolute_time.rb +2 -2
  177. data/lib/datadog_api_client/v1/models/notebook_cell_create_request.rb +2 -2
  178. data/lib/datadog_api_client/v1/models/notebook_cell_response.rb +3 -3
  179. data/lib/datadog_api_client/v1/models/notebook_cell_update_request.rb +3 -3
  180. data/lib/datadog_api_client/v1/models/notebook_create_data.rb +2 -2
  181. data/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb +3 -3
  182. data/lib/datadog_api_client/v1/models/notebook_create_request.rb +1 -1
  183. data/lib/datadog_api_client/v1/models/notebook_distribution_cell_attributes.rb +1 -1
  184. data/lib/datadog_api_client/v1/models/notebook_heat_map_cell_attributes.rb +1 -1
  185. data/lib/datadog_api_client/v1/models/notebook_log_stream_cell_attributes.rb +1 -1
  186. data/lib/datadog_api_client/v1/models/notebook_markdown_cell_attributes.rb +1 -1
  187. data/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition.rb +2 -2
  188. data/lib/datadog_api_client/v1/models/notebook_relative_time.rb +1 -1
  189. data/lib/datadog_api_client/v1/models/notebook_response_data.rb +3 -3
  190. data/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb +3 -3
  191. data/lib/datadog_api_client/v1/models/notebook_split_by.rb +2 -2
  192. data/lib/datadog_api_client/v1/models/notebook_timeseries_cell_attributes.rb +1 -1
  193. data/lib/datadog_api_client/v1/models/notebook_toplist_cell_attributes.rb +1 -1
  194. data/lib/datadog_api_client/v1/models/notebook_update_data.rb +2 -2
  195. data/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb +3 -3
  196. data/lib/datadog_api_client/v1/models/notebook_update_request.rb +1 -1
  197. data/lib/datadog_api_client/v1/models/notebooks_response_data.rb +3 -3
  198. data/lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb +1 -1
  199. data/lib/datadog_api_client/v1/models/organization.rb +1 -1
  200. data/lib/datadog_api_client/v1/models/organization_create_body.rb +1 -1
  201. data/lib/datadog_api_client/v1/models/pager_duty_service.rb +2 -2
  202. data/lib/datadog_api_client/v1/models/pager_duty_service_key.rb +1 -1
  203. data/lib/datadog_api_client/v1/models/pager_duty_service_name.rb +1 -1
  204. data/lib/datadog_api_client/v1/models/process_query_definition.rb +2 -2
  205. data/lib/datadog_api_client/v1/models/query_value_widget_definition.rb +2 -2
  206. data/lib/datadog_api_client/v1/models/reference_table_logs_lookup_processor.rb +198 -0
  207. data/lib/datadog_api_client/v1/models/scatter_plot_widget_definition.rb +2 -2
  208. data/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb +2 -2
  209. data/lib/datadog_api_client/v1/models/search_slo_threshold.rb +2 -2
  210. data/lib/datadog_api_client/v1/models/series.rb +2 -2
  211. data/lib/datadog_api_client/v1/models/service_check.rb +4 -4
  212. data/lib/datadog_api_client/v1/models/service_level_objective.rb +3 -3
  213. data/lib/datadog_api_client/v1/models/service_level_objective_query.rb +2 -2
  214. data/lib/datadog_api_client/v1/models/service_level_objective_request.rb +3 -3
  215. data/lib/datadog_api_client/v1/models/service_map_widget_definition.rb +3 -3
  216. data/lib/datadog_api_client/v1/models/service_summary_widget_definition.rb +4 -4
  217. data/lib/datadog_api_client/v1/models/signal_assignee_update_request.rb +1 -1
  218. data/lib/datadog_api_client/v1/models/signal_state_update_request.rb +1 -1
  219. data/lib/datadog_api_client/v1/models/slo_bulk_delete_error.rb +3 -3
  220. data/lib/datadog_api_client/v1/models/slo_correction_create_data.rb +1 -1
  221. data/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb +3 -3
  222. data/lib/datadog_api_client/v1/models/slo_history_metrics.rb +7 -7
  223. data/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb +3 -3
  224. data/lib/datadog_api_client/v1/models/slo_history_response_error_with_type.rb +2 -2
  225. data/lib/datadog_api_client/v1/models/slo_list_widget_definition.rb +2 -2
  226. data/lib/datadog_api_client/v1/models/slo_list_widget_query.rb +2 -2
  227. data/lib/datadog_api_client/v1/models/slo_list_widget_request.rb +2 -2
  228. data/lib/datadog_api_client/v1/models/slo_threshold.rb +2 -2
  229. data/lib/datadog_api_client/v1/models/slo_widget_definition.rb +2 -2
  230. data/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb +2 -2
  231. data/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic.rb +1 -1
  232. data/lib/datadog_api_client/v1/models/sunburst_widget_legend_table.rb +1 -1
  233. data/lib/datadog_api_client/v1/models/synthetics_api_step.rb +4 -4
  234. data/lib/datadog_api_client/v1/models/synthetics_api_test.rb +6 -6
  235. data/lib/datadog_api_client/v1/models/synthetics_api_test_result_full_check.rb +1 -1
  236. data/lib/datadog_api_client/v1/models/synthetics_assertion.rb +2 -1
  237. data/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target.rb +2 -2
  238. data/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +3 -3
  239. data/lib/datadog_api_client/v1/models/{http_method.rb → synthetics_assertion_x_path_operator.rb} +3 -9
  240. data/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target.rb +150 -0
  241. data/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target_target.rb +118 -0
  242. data/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb +3 -1
  243. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb +2 -2
  244. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm.rb +1 -1
  245. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_client.rb +212 -0
  246. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_client_type.rb +26 -0
  247. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_rop.rb +232 -0
  248. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_rop_type.rb +26 -0
  249. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_token_api_authentication.rb +27 -0
  250. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4.rb +3 -3
  251. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb +2 -2
  252. data/lib/datadog_api_client/v1/models/synthetics_browser_error.rb +3 -3
  253. data/lib/datadog_api_client/v1/models/synthetics_browser_test.rb +6 -6
  254. data/lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb +2 -2
  255. data/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full_check.rb +1 -1
  256. data/lib/datadog_api_client/v1/models/synthetics_browser_test_rum_settings.rb +1 -1
  257. data/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb +2 -2
  258. data/lib/datadog_api_client/v1/models/synthetics_ci_test.rb +1 -1
  259. data/lib/datadog_api_client/v1/models/synthetics_config_variable.rb +2 -2
  260. data/lib/datadog_api_client/v1/models/synthetics_device.rb +4 -4
  261. data/lib/datadog_api_client/v1/models/synthetics_global_variable.rb +4 -4
  262. data/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb +1 -1
  263. data/lib/datadog_api_client/v1/models/synthetics_private_location.rb +3 -3
  264. data/lib/datadog_api_client/v1/models/synthetics_step.rb +11 -1
  265. data/lib/datadog_api_client/v1/models/synthetics_step_detail_warning.rb +2 -2
  266. data/lib/datadog_api_client/v1/models/synthetics_test_call_type.rb +27 -0
  267. data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +4 -4
  268. data/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb +1 -1
  269. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +26 -6
  270. data/lib/datadog_api_client/v1/models/synthetics_test_request_body_type.rb +31 -0
  271. data/lib/datadog_api_client/v1/models/synthetics_test_request_proxy.rb +1 -1
  272. data/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb +1 -1
  273. data/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb +1 -1
  274. data/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb +1 -1
  275. data/lib/datadog_api_client/v1/models/table_widget_definition.rb +2 -2
  276. data/lib/datadog_api_client/v1/models/timeseries_background.rb +1 -1
  277. data/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb +2 -2
  278. data/lib/datadog_api_client/v1/models/timeseries_widget_expression_alias.rb +1 -1
  279. data/lib/datadog_api_client/v1/models/toplist_widget_definition.rb +2 -2
  280. data/lib/datadog_api_client/v1/models/toplist_widget_request.rb +1 -1
  281. data/lib/datadog_api_client/v1/models/topology_map_widget_definition.rb +2 -2
  282. data/lib/datadog_api_client/v1/models/topology_query.rb +1 -1
  283. data/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb +2 -2
  284. data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +2 -0
  285. data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +2 -0
  286. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +21 -1
  287. data/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb +91 -1
  288. data/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb +12 -1
  289. data/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +11 -1
  290. data/lib/datadog_api_client/v1/models/usage_host_hour.rb +11 -1
  291. data/lib/datadog_api_client/v1/models/usage_sds_hour.rb +31 -1
  292. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +71 -1
  293. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +71 -1
  294. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +71 -1
  295. data/lib/datadog_api_client/v1/models/webhooks_integration.rb +2 -2
  296. data/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable.rb +3 -3
  297. data/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_response.rb +2 -2
  298. data/lib/datadog_api_client/v1/models/widget.rb +1 -1
  299. data/lib/datadog_api_client/v1/models/widget_conditional_format.rb +3 -3
  300. data/lib/datadog_api_client/v1/models/widget_event.rb +1 -1
  301. data/lib/datadog_api_client/v1/models/widget_field_sort.rb +2 -2
  302. data/lib/datadog_api_client/v1/models/widget_formula.rb +15 -5
  303. data/lib/datadog_api_client/v1/models/widget_formula_style.rb +108 -0
  304. data/lib/datadog_api_client/v1/models/widget_layout.rb +4 -4
  305. data/lib/datadog_api_client/v1/models/widget_marker.rb +1 -1
  306. data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +1 -1
  307. data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +283 -0
  308. data/lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb +283 -0
  309. data/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb +1 -1
  310. data/lib/datadog_api_client/v2/api/incident_services_api.rb +1 -1
  311. data/lib/datadog_api_client/v2/api/incident_teams_api.rb +1 -1
  312. data/lib/datadog_api_client/v2/api/incidents_api.rb +1 -1
  313. data/lib/datadog_api_client/v2/api/key_management_api.rb +3 -3
  314. data/lib/datadog_api_client/v2/api/logs_api.rb +6 -0
  315. data/lib/datadog_api_client/v2/api/roles_api.rb +2 -2
  316. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +1 -1
  317. data/lib/datadog_api_client/v2/api/sensitive_data_scanner_api.rb +649 -0
  318. data/lib/datadog_api_client/v2/api/service_accounts_api.rb +1 -1
  319. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +4 -3
  320. data/lib/datadog_api_client/v2/api/users_api.rb +1 -1
  321. data/lib/datadog_api_client/v2/models/api_error_response.rb +1 -1
  322. data/lib/datadog_api_client/v2/models/api_key_create_attributes.rb +1 -1
  323. data/lib/datadog_api_client/v2/models/api_key_create_data.rb +2 -2
  324. data/lib/datadog_api_client/v2/models/api_key_create_request.rb +1 -1
  325. data/lib/datadog_api_client/v2/models/api_key_update_attributes.rb +1 -1
  326. data/lib/datadog_api_client/v2/models/api_key_update_data.rb +3 -3
  327. data/lib/datadog_api_client/v2/models/api_key_update_request.rb +1 -1
  328. data/lib/datadog_api_client/v2/models/application_key_create_attributes.rb +1 -1
  329. data/lib/datadog_api_client/v2/models/application_key_create_data.rb +2 -2
  330. data/lib/datadog_api_client/v2/models/application_key_create_request.rb +1 -1
  331. data/lib/datadog_api_client/v2/models/application_key_update_data.rb +3 -3
  332. data/lib/datadog_api_client/v2/models/application_key_update_request.rb +1 -1
  333. data/lib/datadog_api_client/v2/models/audit_logs_query_options.rb +1 -1
  334. data/lib/datadog_api_client/v2/models/audit_logs_query_page_options.rb +1 -1
  335. data/lib/datadog_api_client/v2/models/authn_mapping.rb +2 -2
  336. data/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb +1 -1
  337. data/lib/datadog_api_client/v2/models/authn_mapping_create_request.rb +1 -1
  338. data/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb +2 -2
  339. data/lib/datadog_api_client/v2/models/authn_mapping_update_request.rb +1 -1
  340. data/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value.rb +64 -0
  341. data/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value_timeseries_point.rb +108 -0
  342. data/lib/datadog_api_client/v2/models/ci_app_aggregate_sort.rb +128 -0
  343. data/lib/datadog_api_client/v2/models/ci_app_aggregate_sort_type.rb +27 -0
  344. data/lib/datadog_api_client/v2/models/ci_app_aggregation_function.rb +41 -0
  345. data/lib/datadog_api_client/v2/models/ci_app_compute.rb +140 -0
  346. data/lib/datadog_api_client/v2/models/ci_app_compute_type.rb +27 -0
  347. data/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb +132 -0
  348. data/lib/datadog_api_client/v2/models/ci_app_group_by_histogram.rb +154 -0
  349. data/lib/datadog_api_client/v2/models/ci_app_group_by_missing.rb +63 -0
  350. data/lib/datadog_api_client/v2/models/ci_app_group_by_total.rb +64 -0
  351. data/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb +118 -0
  352. data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_type_name.rb +26 -0
  353. data/lib/datadog_api_client/v2/models/ci_app_pipeline_events_request.rb +129 -0
  354. data/lib/datadog_api_client/v2/models/ci_app_pipeline_events_response.rb +120 -0
  355. data/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregate_request.rb +143 -0
  356. data/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregation_buckets_response.rb +100 -0
  357. data/lib/datadog_api_client/v2/models/ci_app_pipelines_analytics_aggregate_response.rb +118 -0
  358. data/lib/datadog_api_client/v2/models/ci_app_pipelines_bucket_response.rb +108 -0
  359. data/lib/datadog_api_client/v2/models/ci_app_pipelines_group_by.rb +160 -0
  360. data/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb +118 -0
  361. data/lib/datadog_api_client/v2/models/ci_app_query_options.rb +109 -0
  362. data/lib/datadog_api_client/v2/models/ci_app_query_page_options.rb +119 -0
  363. data/lib/datadog_api_client/v2/models/ci_app_response_links.rb +99 -0
  364. data/lib/datadog_api_client/v2/models/ci_app_response_metadata.rb +141 -0
  365. data/lib/datadog_api_client/v2/models/ci_app_response_page.rb +98 -0
  366. data/lib/datadog_api_client/v2/models/ci_app_response_status.rb +27 -0
  367. data/lib/datadog_api_client/v2/models/ci_app_sort.rb +27 -0
  368. data/lib/datadog_api_client/v2/models/ci_app_sort_order.rb +27 -0
  369. data/lib/datadog_api_client/v2/models/ci_app_test_event.rb +118 -0
  370. data/lib/datadog_api_client/v2/models/ci_app_test_event_type_name.rb +26 -0
  371. data/lib/datadog_api_client/v2/models/ci_app_test_events_request.rb +129 -0
  372. data/lib/datadog_api_client/v2/models/ci_app_test_events_response.rb +120 -0
  373. data/lib/datadog_api_client/v2/models/ci_app_tests_aggregate_request.rb +143 -0
  374. data/lib/datadog_api_client/v2/models/ci_app_tests_aggregation_buckets_response.rb +100 -0
  375. data/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb +118 -0
  376. data/lib/datadog_api_client/v2/models/ci_app_tests_bucket_response.rb +108 -0
  377. data/lib/datadog_api_client/v2/models/ci_app_tests_group_by.rb +160 -0
  378. data/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb +118 -0
  379. data/lib/datadog_api_client/v2/models/ci_app_warning.rb +118 -0
  380. data/lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb +143 -0
  381. data/lib/datadog_api_client/v2/models/cloud_configuration_rego_rule.rb +132 -0
  382. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_case_create.rb +121 -0
  383. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb +110 -0
  384. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb +239 -0
  385. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_options.rb +109 -0
  386. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_type.rb +26 -0
  387. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +2 -2
  388. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb +2 -2
  389. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb +1 -1
  390. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb +2 -2
  391. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb +1 -1
  392. data/lib/datadog_api_client/v2/models/confluent_account_create_request.rb +1 -1
  393. data/lib/datadog_api_client/v2/models/confluent_account_create_request_attributes.rb +2 -2
  394. data/lib/datadog_api_client/v2/models/confluent_account_create_request_data.rb +2 -2
  395. data/lib/datadog_api_client/v2/models/confluent_account_response_attributes.rb +1 -1
  396. data/lib/datadog_api_client/v2/models/confluent_account_response_data.rb +3 -3
  397. data/lib/datadog_api_client/v2/models/confluent_account_update_request.rb +1 -1
  398. data/lib/datadog_api_client/v2/models/confluent_account_update_request_attributes.rb +2 -2
  399. data/lib/datadog_api_client/v2/models/confluent_account_update_request_data.rb +2 -2
  400. data/lib/datadog_api_client/v2/models/confluent_resource_request.rb +1 -1
  401. data/lib/datadog_api_client/v2/models/confluent_resource_request_data.rb +3 -3
  402. data/lib/datadog_api_client/v2/models/confluent_resource_response_attributes.rb +1 -1
  403. data/lib/datadog_api_client/v2/models/confluent_resource_response_data.rb +3 -3
  404. data/lib/datadog_api_client/v2/models/dashboard_list_item.rb +3 -3
  405. data/lib/datadog_api_client/v2/models/dashboard_list_item_request.rb +2 -2
  406. data/lib/datadog_api_client/v2/models/dashboard_list_item_response.rb +2 -2
  407. data/lib/datadog_api_client/v2/models/dashboard_list_items.rb +1 -1
  408. data/lib/datadog_api_client/v2/models/events_query_options.rb +1 -1
  409. data/lib/datadog_api_client/v2/models/events_request_page.rb +1 -1
  410. data/lib/datadog_api_client/v2/models/full_api_key_attributes.rb +1 -1
  411. data/lib/datadog_api_client/v2/models/full_application_key_attributes.rb +1 -1
  412. data/lib/datadog_api_client/v2/models/http_log_item.rb +1 -1
  413. data/lib/datadog_api_client/v2/models/incident_attachment_data.rb +4 -4
  414. data/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb +2 -2
  415. data/lib/datadog_api_client/v2/models/incident_attachment_link_attributes_attachment_object.rb +2 -2
  416. data/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attributes.rb +2 -2
  417. data/lib/datadog_api_client/v2/models/incident_attachment_update_data.rb +1 -1
  418. data/lib/datadog_api_client/v2/models/incident_attachment_update_request.rb +1 -1
  419. data/lib/datadog_api_client/v2/models/incident_attachment_update_response.rb +1 -1
  420. data/lib/datadog_api_client/v2/models/incident_attachments_postmortem_attributes_attachment_object.rb +2 -2
  421. data/lib/datadog_api_client/v2/models/incident_attachments_response.rb +1 -1
  422. data/lib/datadog_api_client/v2/models/incident_create_attributes.rb +2 -2
  423. data/lib/datadog_api_client/v2/models/incident_create_data.rb +2 -2
  424. data/lib/datadog_api_client/v2/models/incident_create_relationships.rb +1 -1
  425. data/lib/datadog_api_client/v2/models/incident_create_request.rb +1 -1
  426. data/lib/datadog_api_client/v2/models/incident_response.rb +1 -1
  427. data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +1 -1
  428. data/lib/datadog_api_client/v2/models/incident_response_data.rb +2 -2
  429. data/lib/datadog_api_client/v2/models/incident_service_create_attributes.rb +1 -1
  430. data/lib/datadog_api_client/v2/models/incident_service_create_data.rb +1 -1
  431. data/lib/datadog_api_client/v2/models/incident_service_create_request.rb +1 -1
  432. data/lib/datadog_api_client/v2/models/incident_service_response.rb +1 -1
  433. data/lib/datadog_api_client/v2/models/incident_service_response_data.rb +2 -2
  434. data/lib/datadog_api_client/v2/models/incident_service_update_attributes.rb +1 -1
  435. data/lib/datadog_api_client/v2/models/incident_service_update_data.rb +1 -1
  436. data/lib/datadog_api_client/v2/models/incident_service_update_request.rb +1 -1
  437. data/lib/datadog_api_client/v2/models/incident_services_response.rb +1 -1
  438. data/lib/datadog_api_client/v2/models/incident_team_create_attributes.rb +1 -1
  439. data/lib/datadog_api_client/v2/models/incident_team_create_data.rb +1 -1
  440. data/lib/datadog_api_client/v2/models/incident_team_create_request.rb +1 -1
  441. data/lib/datadog_api_client/v2/models/incident_team_response.rb +1 -1
  442. data/lib/datadog_api_client/v2/models/incident_team_update_attributes.rb +1 -1
  443. data/lib/datadog_api_client/v2/models/incident_team_update_data.rb +1 -1
  444. data/lib/datadog_api_client/v2/models/incident_team_update_request.rb +1 -1
  445. data/lib/datadog_api_client/v2/models/incident_teams_response.rb +1 -1
  446. data/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb +2 -2
  447. data/lib/datadog_api_client/v2/models/incident_update_data.rb +2 -2
  448. data/lib/datadog_api_client/v2/models/incident_update_request.rb +1 -1
  449. data/lib/datadog_api_client/v2/models/incidents_response.rb +1 -1
  450. data/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +2 -2
  451. data/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb +3 -3
  452. data/lib/datadog_api_client/v2/models/logs_archive_create_request_definition.rb +1 -1
  453. data/lib/datadog_api_client/v2/models/logs_archive_definition.rb +1 -1
  454. data/lib/datadog_api_client/v2/models/logs_archive_destination_azure.rb +4 -4
  455. data/lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb +3 -3
  456. data/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb +3 -3
  457. data/lib/datadog_api_client/v2/models/logs_archive_integration_azure.rb +2 -2
  458. data/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb +2 -2
  459. data/lib/datadog_api_client/v2/models/logs_archive_integration_s3.rb +2 -2
  460. data/lib/datadog_api_client/v2/models/logs_archive_order_attributes.rb +1 -1
  461. data/lib/datadog_api_client/v2/models/logs_archive_order_definition.rb +2 -2
  462. data/lib/datadog_api_client/v2/models/logs_compute.rb +1 -1
  463. data/lib/datadog_api_client/v2/models/logs_group_by.rb +1 -1
  464. data/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb +3 -3
  465. data/lib/datadog_api_client/v2/models/logs_list_request_page.rb +1 -1
  466. data/lib/datadog_api_client/v2/models/logs_metric_compute.rb +13 -2
  467. data/lib/datadog_api_client/v2/models/logs_metric_create_attributes.rb +1 -1
  468. data/lib/datadog_api_client/v2/models/logs_metric_create_data.rb +3 -3
  469. data/lib/datadog_api_client/v2/models/logs_metric_create_request.rb +1 -1
  470. data/lib/datadog_api_client/v2/models/logs_metric_group_by.rb +1 -1
  471. data/lib/datadog_api_client/v2/models/logs_metric_response_compute.rb +12 -1
  472. data/lib/datadog_api_client/v2/models/logs_metric_update_attributes.rb +11 -1
  473. data/lib/datadog_api_client/v2/models/logs_metric_update_compute.rb +99 -0
  474. data/lib/datadog_api_client/v2/models/logs_metric_update_data.rb +2 -2
  475. data/lib/datadog_api_client/v2/models/logs_metric_update_request.rb +1 -1
  476. data/lib/datadog_api_client/v2/models/logs_query_filter.rb +11 -1
  477. data/lib/datadog_api_client/v2/models/logs_query_options.rb +1 -1
  478. data/lib/datadog_api_client/v2/models/logs_storage_tier.rb +27 -0
  479. data/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create.rb +2 -2
  480. data/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_request.rb +1 -1
  481. data/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete.rb +2 -2
  482. data/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_request.rb +1 -1
  483. data/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status.rb +2 -2
  484. data/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb +2 -2
  485. data/lib/datadog_api_client/v2/models/metric_origin.rb +3 -3
  486. data/lib/datadog_api_client/v2/models/metric_payload.rb +1 -1
  487. data/lib/datadog_api_client/v2/models/metric_series.rb +2 -2
  488. data/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb +1 -1
  489. data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +2 -2
  490. data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_data.rb +2 -2
  491. data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_request.rb +1 -1
  492. data/lib/datadog_api_client/v2/models/metric_tag_configuration_update_data.rb +2 -2
  493. data/lib/datadog_api_client/v2/models/metric_tag_configuration_update_request.rb +1 -1
  494. data/lib/datadog_api_client/v2/models/monitor_type.rb +1 -1
  495. data/lib/datadog_api_client/v2/models/nullable_relationship_to_user_data.rb +2 -2
  496. data/lib/datadog_api_client/v2/models/opsgenie_service_create_attributes.rb +3 -3
  497. data/lib/datadog_api_client/v2/models/opsgenie_service_create_data.rb +2 -2
  498. data/lib/datadog_api_client/v2/models/opsgenie_service_create_request.rb +1 -1
  499. data/lib/datadog_api_client/v2/models/opsgenie_service_response.rb +1 -1
  500. data/lib/datadog_api_client/v2/models/opsgenie_service_response_data.rb +3 -3
  501. data/lib/datadog_api_client/v2/models/opsgenie_service_update_data.rb +3 -3
  502. data/lib/datadog_api_client/v2/models/opsgenie_service_update_request.rb +1 -1
  503. data/lib/datadog_api_client/v2/models/opsgenie_services_response.rb +1 -1
  504. data/lib/datadog_api_client/v2/models/organization.rb +1 -1
  505. data/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb +1 -1
  506. data/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb +1 -1
  507. data/lib/datadog_api_client/v2/models/permission.rb +1 -1
  508. data/lib/datadog_api_client/v2/models/process_summaries_meta_page.rb +1 -1
  509. data/lib/datadog_api_client/v2/models/relationship_to_incident_attachment.rb +1 -1
  510. data/lib/datadog_api_client/v2/models/relationship_to_incident_attachment_data.rb +2 -2
  511. data/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadata_data.rb +2 -2
  512. data/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadatas.rb +1 -1
  513. data/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem.rb +1 -1
  514. data/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem_data.rb +2 -2
  515. data/lib/datadog_api_client/v2/models/relationship_to_organization.rb +1 -1
  516. data/lib/datadog_api_client/v2/models/relationship_to_organization_data.rb +2 -2
  517. data/lib/datadog_api_client/v2/models/relationship_to_organizations.rb +1 -1
  518. data/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute.rb +1 -1
  519. data/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute_data.rb +2 -2
  520. data/lib/datadog_api_client/v2/models/relationship_to_user.rb +1 -1
  521. data/lib/datadog_api_client/v2/models/relationship_to_user_data.rb +2 -2
  522. data/lib/datadog_api_client/v2/models/relationship_to_users.rb +1 -1
  523. data/lib/datadog_api_client/v2/models/role.rb +1 -1
  524. data/lib/datadog_api_client/v2/models/role_clone.rb +2 -2
  525. data/lib/datadog_api_client/v2/models/role_clone_attributes.rb +1 -1
  526. data/lib/datadog_api_client/v2/models/role_clone_request.rb +1 -1
  527. data/lib/datadog_api_client/v2/models/role_create_attributes.rb +1 -1
  528. data/lib/datadog_api_client/v2/models/role_create_data.rb +1 -1
  529. data/lib/datadog_api_client/v2/models/role_create_request.rb +1 -1
  530. data/lib/datadog_api_client/v2/models/role_create_response_data.rb +1 -1
  531. data/lib/datadog_api_client/v2/models/role_update_data.rb +3 -3
  532. data/lib/datadog_api_client/v2/models/role_update_request.rb +1 -1
  533. data/lib/datadog_api_client/v2/models/role_update_response_data.rb +1 -1
  534. data/lib/datadog_api_client/v2/models/rum_application.rb +3 -3
  535. data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +41 -10
  536. data/lib/datadog_api_client/v2/models/rum_application_create.rb +2 -2
  537. data/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb +1 -1
  538. data/lib/datadog_api_client/v2/models/rum_application_create_request.rb +1 -1
  539. data/lib/datadog_api_client/v2/models/rum_application_list.rb +130 -0
  540. data/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb +280 -0
  541. data/lib/datadog_api_client/v2/models/rum_application_list_type.rb +26 -0
  542. data/lib/datadog_api_client/v2/models/rum_application_update.rb +2 -2
  543. data/lib/datadog_api_client/v2/models/rum_application_update_request.rb +1 -1
  544. data/lib/datadog_api_client/v2/models/rum_applications_response.rb +1 -1
  545. data/lib/datadog_api_client/v2/models/rum_compute.rb +1 -1
  546. data/lib/datadog_api_client/v2/models/rum_group_by.rb +1 -1
  547. data/lib/datadog_api_client/v2/models/rum_group_by_histogram.rb +3 -3
  548. data/lib/datadog_api_client/v2/models/rum_query_filter.rb +2 -2
  549. data/lib/datadog_api_client/v2/models/rum_query_options.rb +1 -1
  550. data/lib/datadog_api_client/v2/models/rum_query_page_options.rb +1 -1
  551. data/lib/datadog_api_client/v2/models/saml_assertion_attribute.rb +2 -2
  552. data/lib/datadog_api_client/v2/models/security_filter_attributes.rb +1 -1
  553. data/lib/datadog_api_client/v2/models/security_filter_create_attributes.rb +5 -5
  554. data/lib/datadog_api_client/v2/models/security_filter_create_data.rb +2 -2
  555. data/lib/datadog_api_client/v2/models/security_filter_create_request.rb +1 -1
  556. data/lib/datadog_api_client/v2/models/security_filter_exclusion_filter.rb +2 -2
  557. data/lib/datadog_api_client/v2/models/security_filter_update_attributes.rb +1 -1
  558. data/lib/datadog_api_client/v2/models/security_filter_update_data.rb +2 -2
  559. data/lib/datadog_api_client/v2/models/security_filter_update_request.rb +1 -1
  560. data/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb +1 -1
  561. data/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +2 -1
  562. data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +11 -1
  563. data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +12 -2
  564. data/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_attributes.rb +1 -1
  565. data/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_data.rb +1 -1
  566. data/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_request.rb +1 -1
  567. data/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_attributes.rb +1 -1
  568. data/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_data.rb +1 -1
  569. data/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_request.rb +1 -1
  570. data/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_page.rb +1 -1
  571. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +6 -6
  572. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_query.rb +2 -2
  573. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response_query.rb +1 -1
  574. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_attributes.rb +1 -1
  575. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb +1 -1
  576. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_request.rb +1 -1
  577. data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_attributes.rb +5 -5
  578. data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_response.rb +1 -1
  579. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +6 -6
  580. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +1 -1
  581. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +11 -1
  582. data/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb +1 -1
  583. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_config_request.rb +130 -0
  584. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration.rb +108 -0
  585. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_data.rb +98 -0
  586. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_relationships.rb +98 -0
  587. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_type.rb +26 -0
  588. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_group_response.rb +108 -0
  589. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_rule_response.rb +108 -0
  590. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_filter.rb +98 -0
  591. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_included_item.rb +63 -0
  592. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response.rb +120 -0
  593. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response_data.rb +118 -0
  594. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group.rb +108 -0
  595. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb +140 -0
  596. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create.rb +140 -0
  597. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create_request.rb +108 -0
  598. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_data.rb +98 -0
  599. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_request.rb +109 -0
  600. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_response.rb +98 -0
  601. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_included_item.rb +128 -0
  602. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_item.rb +108 -0
  603. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_list.rb +100 -0
  604. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_relationships.rb +108 -0
  605. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_response.rb +128 -0
  606. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_type.rb +26 -0
  607. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update.rb +128 -0
  608. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_request.rb +130 -0
  609. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_response.rb +98 -0
  610. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb +149 -0
  611. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta_version_only.rb +109 -0
  612. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_product.rb +29 -0
  613. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_config.rb +118 -0
  614. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_groups_response.rb +98 -0
  615. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule.rb +108 -0
  616. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_attributes.rb +162 -0
  617. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create.rb +151 -0
  618. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create_request.rb +130 -0
  619. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_data.rb +100 -0
  620. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_request.rb +109 -0
  621. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_response.rb +98 -0
  622. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_included_item.rb +128 -0
  623. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_relationships.rb +108 -0
  624. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_response.rb +128 -0
  625. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_type.rb +26 -0
  626. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update.rb +128 -0
  627. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_request.rb +130 -0
  628. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_response.rb +98 -0
  629. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern.rb +108 -0
  630. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +120 -0
  631. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_data.rb +98 -0
  632. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_type.rb +26 -0
  633. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_data.rb +100 -0
  634. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_item.rb +118 -0
  635. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_text_replacement.rb +135 -0
  636. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_text_replacement_type.rb +35 -0
  637. data/lib/datadog_api_client/v2/models/service_account_create_attributes.rb +2 -2
  638. data/lib/datadog_api_client/v2/models/service_account_create_data.rb +2 -2
  639. data/lib/datadog_api_client/v2/models/service_account_create_request.rb +1 -1
  640. data/lib/datadog_api_client/v2/models/service_definition_v1.rb +2 -2
  641. data/lib/datadog_api_client/v2/models/service_definition_v1_info.rb +1 -1
  642. data/lib/datadog_api_client/v2/models/service_definition_v1_resource.rb +3 -3
  643. data/lib/datadog_api_client/v2/models/service_definition_v2.rb +2 -2
  644. data/lib/datadog_api_client/v2/models/service_definition_v2_doc.rb +2 -2
  645. data/lib/datadog_api_client/v2/models/service_definition_v2_email.rb +2 -2
  646. data/lib/datadog_api_client/v2/models/service_definition_v2_link.rb +3 -3
  647. data/lib/datadog_api_client/v2/models/service_definition_v2_opsgenie.rb +14 -14
  648. data/lib/datadog_api_client/v2/models/service_definition_v2_repo.rb +2 -2
  649. data/lib/datadog_api_client/v2/models/service_definition_v2_slack.rb +2 -2
  650. data/lib/datadog_api_client/v2/models/user_create_attributes.rb +1 -1
  651. data/lib/datadog_api_client/v2/models/user_create_data.rb +2 -2
  652. data/lib/datadog_api_client/v2/models/user_create_request.rb +1 -1
  653. data/lib/datadog_api_client/v2/models/user_invitation_data.rb +2 -2
  654. data/lib/datadog_api_client/v2/models/user_invitation_relationships.rb +1 -1
  655. data/lib/datadog_api_client/v2/models/user_invitations_request.rb +1 -1
  656. data/lib/datadog_api_client/v2/models/user_update_data.rb +3 -3
  657. data/lib/datadog_api_client/v2/models/user_update_request.rb +1 -1
  658. data/lib/datadog_api_client/version.rb +1 -1
  659. data/spec/fixtures/synthetics_unknown_nested_enum.json +3 -3
  660. data/spec/v1/deserialization_spec.rb +4 -5
  661. metadata +151 -5
  662. data/examples/v2/usage-metering/GetEstimatedCostByOrg_2734954020.rb +0 -9
  663. data/lib/datadog_api_client/api_key_configuration.rb +0 -16
@@ -0,0 +1,283 @@
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 CIVisibilityPipelinesAPI
20
+ attr_accessor :api_client
21
+
22
+ def initialize(api_client = DatadogAPIClient::APIClient.default)
23
+ @api_client = api_client
24
+ end
25
+
26
+ # Aggregate pipelines events.
27
+ #
28
+ # @see #aggregate_ci_app_pipeline_events_with_http_info
29
+ def aggregate_ci_app_pipeline_events(body, opts = {})
30
+ data, _status_code, _headers = aggregate_ci_app_pipeline_events_with_http_info(body, opts)
31
+ data
32
+ end
33
+
34
+ # Aggregate pipelines events.
35
+ #
36
+ # The API endpoint to aggregate CI Visibility pipeline events into buckets of computed metrics and timeseries.
37
+ #
38
+ # @param body [CIAppPipelinesAggregateRequest]
39
+ # @param opts [Hash] the optional parameters
40
+ # @return [Array<(CIAppPipelinesAnalyticsAggregateResponse, Integer, Hash)>] CIAppPipelinesAnalyticsAggregateResponse data, response status code and response headers
41
+ def aggregate_ci_app_pipeline_events_with_http_info(body, opts = {})
42
+
43
+ if @api_client.config.debugging
44
+ @api_client.config.logger.debug 'Calling API: CIVisibilityPipelinesAPI.aggregate_ci_app_pipeline_events ...'
45
+ end
46
+ # verify the required parameter 'body' is set
47
+ if @api_client.config.client_side_validation && body.nil?
48
+ fail ArgumentError, "Missing the required parameter 'body' when calling CIVisibilityPipelinesAPI.aggregate_ci_app_pipeline_events"
49
+ end
50
+ # resource path
51
+ local_var_path = '/api/v2/ci/pipelines/analytics/aggregate'
52
+
53
+ # query parameters
54
+ query_params = opts[:query_params] || {}
55
+
56
+ # header parameters
57
+ header_params = opts[:header_params] || {}
58
+ # HTTP header 'Accept' (if needed)
59
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
60
+ # HTTP header 'Content-Type'
61
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
62
+
63
+ # form parameters
64
+ form_params = opts[:form_params] || {}
65
+
66
+ # http body (model)
67
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
68
+
69
+ # return_type
70
+ return_type = opts[:debug_return_type] || 'CIAppPipelinesAnalyticsAggregateResponse'
71
+
72
+ # auth_names
73
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
74
+
75
+ new_options = opts.merge(
76
+ :operation => :aggregate_ci_app_pipeline_events,
77
+ :header_params => header_params,
78
+ :query_params => query_params,
79
+ :form_params => form_params,
80
+ :body => post_body,
81
+ :auth_names => auth_names,
82
+ :return_type => return_type,
83
+ :api_version => "V2"
84
+ )
85
+
86
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
87
+ if @api_client.config.debugging
88
+ @api_client.config.logger.debug "API called: CIVisibilityPipelinesAPI#aggregate_ci_app_pipeline_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
+ end
90
+ return data, status_code, headers
91
+ end
92
+
93
+ # Get a list of pipelines events.
94
+ #
95
+ # @see #list_ci_app_pipeline_events_with_http_info
96
+ def list_ci_app_pipeline_events(opts = {})
97
+ data, _status_code, _headers = list_ci_app_pipeline_events_with_http_info(opts)
98
+ data
99
+ end
100
+
101
+ # Get a list of pipelines events.
102
+ #
103
+ # List endpoint returns CI Visibility pipeline events that match a log search query.
104
+ # [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).
105
+ #
106
+ # Use this endpoint to see your latest pipeline events.
107
+ #
108
+ # @param opts [Hash] the optional parameters
109
+ # @option opts [String] :filter_query Search query following log syntax.
110
+ # @option opts [Time] :filter_from Minimum timestamp for requested events.
111
+ # @option opts [Time] :filter_to Maximum timestamp for requested events.
112
+ # @option opts [CIAppSort] :sort Order of events in results.
113
+ # @option opts [String] :page_cursor List following results with a cursor provided in the previous query.
114
+ # @option opts [Integer] :page_limit Maximum number of events in the response.
115
+ # @return [Array<(CIAppPipelineEventsResponse, Integer, Hash)>] CIAppPipelineEventsResponse data, response status code and response headers
116
+ def list_ci_app_pipeline_events_with_http_info(opts = {})
117
+
118
+ if @api_client.config.debugging
119
+ @api_client.config.logger.debug 'Calling API: CIVisibilityPipelinesAPI.list_ci_app_pipeline_events ...'
120
+ end
121
+ allowable_values = ['timestamp', '-timestamp']
122
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
123
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
124
+ end
125
+ if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] > 1000
126
+ fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling CIVisibilityPipelinesAPI.list_ci_app_pipeline_events, must be smaller than or equal to 1000.'
127
+ end
128
+ # resource path
129
+ local_var_path = '/api/v2/ci/pipelines/events'
130
+
131
+ # query parameters
132
+ query_params = opts[:query_params] || {}
133
+ query_params[:'filter[query]'] = opts[:'filter_query'] if !opts[:'filter_query'].nil?
134
+ query_params[:'filter[from]'] = opts[:'filter_from'] if !opts[:'filter_from'].nil?
135
+ query_params[:'filter[to]'] = opts[:'filter_to'] if !opts[:'filter_to'].nil?
136
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
137
+ query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil?
138
+ query_params[:'page[limit]'] = opts[:'page_limit'] if !opts[:'page_limit'].nil?
139
+
140
+ # header parameters
141
+ header_params = opts[:header_params] || {}
142
+ # HTTP header 'Accept' (if needed)
143
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
144
+
145
+ # form parameters
146
+ form_params = opts[:form_params] || {}
147
+
148
+ # http body (model)
149
+ post_body = opts[:debug_body]
150
+
151
+ # return_type
152
+ return_type = opts[:debug_return_type] || 'CIAppPipelineEventsResponse'
153
+
154
+ # auth_names
155
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
156
+
157
+ new_options = opts.merge(
158
+ :operation => :list_ci_app_pipeline_events,
159
+ :header_params => header_params,
160
+ :query_params => query_params,
161
+ :form_params => form_params,
162
+ :body => post_body,
163
+ :auth_names => auth_names,
164
+ :return_type => return_type,
165
+ :api_version => "V2"
166
+ )
167
+
168
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
169
+ if @api_client.config.debugging
170
+ @api_client.config.logger.debug "API called: CIVisibilityPipelinesAPI#list_ci_app_pipeline_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
171
+ end
172
+ return data, status_code, headers
173
+ end
174
+
175
+ # Get a list of pipelines events.
176
+ #
177
+ # Provide a paginated version of {#list_ci_app_pipeline_events}, returning all items.
178
+ #
179
+ # To use it you need to use a block: list_ci_app_pipeline_events_with_pagination { |item| p item }
180
+ #
181
+ # @yield [CIAppPipelineEvent] Paginated items
182
+ def list_ci_app_pipeline_events_with_pagination(opts = {})
183
+ api_version = "V2"
184
+ page_size = @api_client.get_attribute_from_path(opts, "page_limit", 10)
185
+ @api_client.set_attribute_from_path(api_version, opts, "page_limit", Integer, page_size)
186
+ while true do
187
+ response = list_ci_app_pipeline_events(opts)
188
+ @api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
189
+ if @api_client.get_attribute_from_path(response, "data").length < page_size
190
+ break
191
+ end
192
+ @api_client.set_attribute_from_path(api_version, opts, "page_cursor", Integer, @api_client.get_attribute_from_path(response, "meta.page.after"))
193
+ end
194
+ end
195
+
196
+ # Search pipelines events.
197
+ #
198
+ # @see #search_ci_app_pipeline_events_with_http_info
199
+ def search_ci_app_pipeline_events(opts = {})
200
+ data, _status_code, _headers = search_ci_app_pipeline_events_with_http_info(opts)
201
+ data
202
+ end
203
+
204
+ # Search pipelines events.
205
+ #
206
+ # List endpoint returns CI Visibility pipeline events that match a log search query.
207
+ # [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).
208
+ #
209
+ # Use this endpoint to build complex events filtering and search.
210
+ #
211
+ # @param opts [Hash] the optional parameters
212
+ # @option opts [CIAppPipelineEventsRequest] :body
213
+ # @return [Array<(CIAppPipelineEventsResponse, Integer, Hash)>] CIAppPipelineEventsResponse data, response status code and response headers
214
+ def search_ci_app_pipeline_events_with_http_info(opts = {})
215
+
216
+ if @api_client.config.debugging
217
+ @api_client.config.logger.debug 'Calling API: CIVisibilityPipelinesAPI.search_ci_app_pipeline_events ...'
218
+ end
219
+ # resource path
220
+ local_var_path = '/api/v2/ci/pipelines/events/search'
221
+
222
+ # query parameters
223
+ query_params = opts[:query_params] || {}
224
+
225
+ # header parameters
226
+ header_params = opts[:header_params] || {}
227
+ # HTTP header 'Accept' (if needed)
228
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
229
+ # HTTP header 'Content-Type'
230
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
231
+
232
+ # form parameters
233
+ form_params = opts[:form_params] || {}
234
+
235
+ # http body (model)
236
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
237
+
238
+ # return_type
239
+ return_type = opts[:debug_return_type] || 'CIAppPipelineEventsResponse'
240
+
241
+ # auth_names
242
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
243
+
244
+ new_options = opts.merge(
245
+ :operation => :search_ci_app_pipeline_events,
246
+ :header_params => header_params,
247
+ :query_params => query_params,
248
+ :form_params => form_params,
249
+ :body => post_body,
250
+ :auth_names => auth_names,
251
+ :return_type => return_type,
252
+ :api_version => "V2"
253
+ )
254
+
255
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
256
+ if @api_client.config.debugging
257
+ @api_client.config.logger.debug "API called: CIVisibilityPipelinesAPI#search_ci_app_pipeline_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
258
+ end
259
+ return data, status_code, headers
260
+ end
261
+
262
+ # Search pipelines events.
263
+ #
264
+ # Provide a paginated version of {#search_ci_app_pipeline_events}, returning all items.
265
+ #
266
+ # To use it you need to use a block: search_ci_app_pipeline_events_with_pagination { |item| p item }
267
+ #
268
+ # @yield [CIAppPipelineEvent] Paginated items
269
+ def search_ci_app_pipeline_events_with_pagination(opts = {})
270
+ api_version = "V2"
271
+ page_size = @api_client.get_attribute_from_path(opts, "body.page.limit", 10)
272
+ @api_client.set_attribute_from_path(api_version, opts, "body.page.limit", CIAppPipelineEventsRequest, page_size)
273
+ while true do
274
+ response = search_ci_app_pipeline_events(opts)
275
+ @api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
276
+ if @api_client.get_attribute_from_path(response, "data").length < page_size
277
+ break
278
+ end
279
+ @api_client.set_attribute_from_path(api_version, opts, "body.page.cursor", CIAppPipelineEventsRequest, @api_client.get_attribute_from_path(response, "meta.page.after"))
280
+ end
281
+ end
282
+ end
283
+ end
@@ -0,0 +1,283 @@
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 CIVisibilityTestsAPI
20
+ attr_accessor :api_client
21
+
22
+ def initialize(api_client = DatadogAPIClient::APIClient.default)
23
+ @api_client = api_client
24
+ end
25
+
26
+ # Aggregate tests events.
27
+ #
28
+ # @see #aggregate_ci_app_test_events_with_http_info
29
+ def aggregate_ci_app_test_events(body, opts = {})
30
+ data, _status_code, _headers = aggregate_ci_app_test_events_with_http_info(body, opts)
31
+ data
32
+ end
33
+
34
+ # Aggregate tests events.
35
+ #
36
+ # The API endpoint to aggregate CI Visibility test events into buckets of computed metrics and timeseries.
37
+ #
38
+ # @param body [CIAppTestsAggregateRequest]
39
+ # @param opts [Hash] the optional parameters
40
+ # @return [Array<(CIAppTestsAnalyticsAggregateResponse, Integer, Hash)>] CIAppTestsAnalyticsAggregateResponse data, response status code and response headers
41
+ def aggregate_ci_app_test_events_with_http_info(body, opts = {})
42
+
43
+ if @api_client.config.debugging
44
+ @api_client.config.logger.debug 'Calling API: CIVisibilityTestsAPI.aggregate_ci_app_test_events ...'
45
+ end
46
+ # verify the required parameter 'body' is set
47
+ if @api_client.config.client_side_validation && body.nil?
48
+ fail ArgumentError, "Missing the required parameter 'body' when calling CIVisibilityTestsAPI.aggregate_ci_app_test_events"
49
+ end
50
+ # resource path
51
+ local_var_path = '/api/v2/ci/tests/analytics/aggregate'
52
+
53
+ # query parameters
54
+ query_params = opts[:query_params] || {}
55
+
56
+ # header parameters
57
+ header_params = opts[:header_params] || {}
58
+ # HTTP header 'Accept' (if needed)
59
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
60
+ # HTTP header 'Content-Type'
61
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
62
+
63
+ # form parameters
64
+ form_params = opts[:form_params] || {}
65
+
66
+ # http body (model)
67
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
68
+
69
+ # return_type
70
+ return_type = opts[:debug_return_type] || 'CIAppTestsAnalyticsAggregateResponse'
71
+
72
+ # auth_names
73
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
74
+
75
+ new_options = opts.merge(
76
+ :operation => :aggregate_ci_app_test_events,
77
+ :header_params => header_params,
78
+ :query_params => query_params,
79
+ :form_params => form_params,
80
+ :body => post_body,
81
+ :auth_names => auth_names,
82
+ :return_type => return_type,
83
+ :api_version => "V2"
84
+ )
85
+
86
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
87
+ if @api_client.config.debugging
88
+ @api_client.config.logger.debug "API called: CIVisibilityTestsAPI#aggregate_ci_app_test_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
+ end
90
+ return data, status_code, headers
91
+ end
92
+
93
+ # Get a list of tests events.
94
+ #
95
+ # @see #list_ci_app_test_events_with_http_info
96
+ def list_ci_app_test_events(opts = {})
97
+ data, _status_code, _headers = list_ci_app_test_events_with_http_info(opts)
98
+ data
99
+ end
100
+
101
+ # Get a list of tests events.
102
+ #
103
+ # List endpoint returns CI Visibility test events that match a log search query.
104
+ # [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).
105
+ #
106
+ # Use this endpoint to see your latest test events.
107
+ #
108
+ # @param opts [Hash] the optional parameters
109
+ # @option opts [String] :filter_query Search query following log syntax.
110
+ # @option opts [Time] :filter_from Minimum timestamp for requested events.
111
+ # @option opts [Time] :filter_to Maximum timestamp for requested events.
112
+ # @option opts [CIAppSort] :sort Order of events in results.
113
+ # @option opts [String] :page_cursor List following results with a cursor provided in the previous query.
114
+ # @option opts [Integer] :page_limit Maximum number of events in the response.
115
+ # @return [Array<(CIAppTestEventsResponse, Integer, Hash)>] CIAppTestEventsResponse data, response status code and response headers
116
+ def list_ci_app_test_events_with_http_info(opts = {})
117
+
118
+ if @api_client.config.debugging
119
+ @api_client.config.logger.debug 'Calling API: CIVisibilityTestsAPI.list_ci_app_test_events ...'
120
+ end
121
+ allowable_values = ['timestamp', '-timestamp']
122
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
123
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
124
+ end
125
+ if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] > 1000
126
+ fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling CIVisibilityTestsAPI.list_ci_app_test_events, must be smaller than or equal to 1000.'
127
+ end
128
+ # resource path
129
+ local_var_path = '/api/v2/ci/tests/events'
130
+
131
+ # query parameters
132
+ query_params = opts[:query_params] || {}
133
+ query_params[:'filter[query]'] = opts[:'filter_query'] if !opts[:'filter_query'].nil?
134
+ query_params[:'filter[from]'] = opts[:'filter_from'] if !opts[:'filter_from'].nil?
135
+ query_params[:'filter[to]'] = opts[:'filter_to'] if !opts[:'filter_to'].nil?
136
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
137
+ query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil?
138
+ query_params[:'page[limit]'] = opts[:'page_limit'] if !opts[:'page_limit'].nil?
139
+
140
+ # header parameters
141
+ header_params = opts[:header_params] || {}
142
+ # HTTP header 'Accept' (if needed)
143
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
144
+
145
+ # form parameters
146
+ form_params = opts[:form_params] || {}
147
+
148
+ # http body (model)
149
+ post_body = opts[:debug_body]
150
+
151
+ # return_type
152
+ return_type = opts[:debug_return_type] || 'CIAppTestEventsResponse'
153
+
154
+ # auth_names
155
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
156
+
157
+ new_options = opts.merge(
158
+ :operation => :list_ci_app_test_events,
159
+ :header_params => header_params,
160
+ :query_params => query_params,
161
+ :form_params => form_params,
162
+ :body => post_body,
163
+ :auth_names => auth_names,
164
+ :return_type => return_type,
165
+ :api_version => "V2"
166
+ )
167
+
168
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
169
+ if @api_client.config.debugging
170
+ @api_client.config.logger.debug "API called: CIVisibilityTestsAPI#list_ci_app_test_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
171
+ end
172
+ return data, status_code, headers
173
+ end
174
+
175
+ # Get a list of tests events.
176
+ #
177
+ # Provide a paginated version of {#list_ci_app_test_events}, returning all items.
178
+ #
179
+ # To use it you need to use a block: list_ci_app_test_events_with_pagination { |item| p item }
180
+ #
181
+ # @yield [CIAppTestEvent] Paginated items
182
+ def list_ci_app_test_events_with_pagination(opts = {})
183
+ api_version = "V2"
184
+ page_size = @api_client.get_attribute_from_path(opts, "page_limit", 10)
185
+ @api_client.set_attribute_from_path(api_version, opts, "page_limit", Integer, page_size)
186
+ while true do
187
+ response = list_ci_app_test_events(opts)
188
+ @api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
189
+ if @api_client.get_attribute_from_path(response, "data").length < page_size
190
+ break
191
+ end
192
+ @api_client.set_attribute_from_path(api_version, opts, "page_cursor", Integer, @api_client.get_attribute_from_path(response, "meta.page.after"))
193
+ end
194
+ end
195
+
196
+ # Search tests events.
197
+ #
198
+ # @see #search_ci_app_test_events_with_http_info
199
+ def search_ci_app_test_events(opts = {})
200
+ data, _status_code, _headers = search_ci_app_test_events_with_http_info(opts)
201
+ data
202
+ end
203
+
204
+ # Search tests events.
205
+ #
206
+ # List endpoint returns CI Visibility test events that match a log search query.
207
+ # [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).
208
+ #
209
+ # Use this endpoint to build complex events filtering and search.
210
+ #
211
+ # @param opts [Hash] the optional parameters
212
+ # @option opts [CIAppTestEventsRequest] :body
213
+ # @return [Array<(CIAppTestEventsResponse, Integer, Hash)>] CIAppTestEventsResponse data, response status code and response headers
214
+ def search_ci_app_test_events_with_http_info(opts = {})
215
+
216
+ if @api_client.config.debugging
217
+ @api_client.config.logger.debug 'Calling API: CIVisibilityTestsAPI.search_ci_app_test_events ...'
218
+ end
219
+ # resource path
220
+ local_var_path = '/api/v2/ci/tests/events/search'
221
+
222
+ # query parameters
223
+ query_params = opts[:query_params] || {}
224
+
225
+ # header parameters
226
+ header_params = opts[:header_params] || {}
227
+ # HTTP header 'Accept' (if needed)
228
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
229
+ # HTTP header 'Content-Type'
230
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
231
+
232
+ # form parameters
233
+ form_params = opts[:form_params] || {}
234
+
235
+ # http body (model)
236
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
237
+
238
+ # return_type
239
+ return_type = opts[:debug_return_type] || 'CIAppTestEventsResponse'
240
+
241
+ # auth_names
242
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
243
+
244
+ new_options = opts.merge(
245
+ :operation => :search_ci_app_test_events,
246
+ :header_params => header_params,
247
+ :query_params => query_params,
248
+ :form_params => form_params,
249
+ :body => post_body,
250
+ :auth_names => auth_names,
251
+ :return_type => return_type,
252
+ :api_version => "V2"
253
+ )
254
+
255
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
256
+ if @api_client.config.debugging
257
+ @api_client.config.logger.debug "API called: CIVisibilityTestsAPI#search_ci_app_test_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
258
+ end
259
+ return data, status_code, headers
260
+ end
261
+
262
+ # Search tests events.
263
+ #
264
+ # Provide a paginated version of {#search_ci_app_test_events}, returning all items.
265
+ #
266
+ # To use it you need to use a block: search_ci_app_test_events_with_pagination { |item| p item }
267
+ #
268
+ # @yield [CIAppTestEvent] Paginated items
269
+ def search_ci_app_test_events_with_pagination(opts = {})
270
+ api_version = "V2"
271
+ page_size = @api_client.get_attribute_from_path(opts, "body.page.limit", 10)
272
+ @api_client.set_attribute_from_path(api_version, opts, "body.page.limit", CIAppTestEventsRequest, page_size)
273
+ while true do
274
+ response = search_ci_app_test_events(opts)
275
+ @api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
276
+ if @api_client.get_attribute_from_path(response, "data").length < page_size
277
+ break
278
+ end
279
+ @api_client.set_attribute_from_path(api_version, opts, "body.page.cursor", CIAppTestEventsRequest, @api_client.get_attribute_from_path(response, "meta.page.after"))
280
+ end
281
+ end
282
+ end
283
+ end
@@ -167,7 +167,7 @@ module DatadogAPIClient::V2
167
167
  #
168
168
  # The download endpoint generates a Cloud Workload Security policy file from your currently active
169
169
  # Cloud Workload Security rules, and downloads them as a .policy file. This file can then be deployed to
170
- # your agents to update the policy running in your environment.
170
+ # your Agents to update the policy running in your environment.
171
171
  #
172
172
  # @param opts [Hash] the optional parameters
173
173
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
@@ -259,7 +259,7 @@ module DatadogAPIClient::V2
259
259
  #
260
260
  # @param opts [Hash] the optional parameters
261
261
  # @option opts [IncidentRelatedObject] :include Specifies which types of related objects should be included in the response.
262
- # @option opts [Integer] :page_size Size for a given page.
262
+ # @option opts [Integer] :page_size Size for a given page. The maximum allowed value is 5000.
263
263
  # @option opts [Integer] :page_offset Specific offset to use as the beginning of the returned page.
264
264
  # @option opts [String] :filter A search query that filters services by name.
265
265
  # @return [Array<(IncidentServicesResponse, Integer, Hash)>] IncidentServicesResponse data, response status code and response headers
@@ -259,7 +259,7 @@ module DatadogAPIClient::V2
259
259
  #
260
260
  # @param opts [Hash] the optional parameters
261
261
  # @option opts [IncidentRelatedObject] :include Specifies which types of related objects should be included in the response.
262
- # @option opts [Integer] :page_size Size for a given page.
262
+ # @option opts [Integer] :page_size Size for a given page. The maximum allowed value is 5000.
263
263
  # @option opts [Integer] :page_offset Specific offset to use as the beginning of the returned page.
264
264
  # @option opts [String] :filter A search query that filters teams by name.
265
265
  # @return [Array<(IncidentTeamsResponse, Integer, Hash)>] IncidentTeamsResponse data, response status code and response headers
@@ -329,7 +329,7 @@ module DatadogAPIClient::V2
329
329
  #
330
330
  # @param opts [Hash] the optional parameters
331
331
  # @option opts [Array<IncidentRelatedObject>] :include Specifies which types of related objects should be included in the response.
332
- # @option opts [Integer] :page_size Size for a given page.
332
+ # @option opts [Integer] :page_size Size for a given page. The maximum allowed value is 5000.
333
333
  # @option opts [Integer] :page_offset Specific offset to use as the beginning of the returned page.
334
334
  # @return [Array<(IncidentsResponse, Integer, Hash)>] IncidentsResponse data, response status code and response headers
335
335
  def list_incidents_with_http_info(opts = {})
@@ -564,7 +564,7 @@ module DatadogAPIClient::V2
564
564
  # List all API keys available for your account.
565
565
  #
566
566
  # @param opts [Hash] the optional parameters
567
- # @option opts [Integer] :page_size Size for a given page.
567
+ # @option opts [Integer] :page_size Size for a given page. The maximum allowed value is 5000.
568
568
  # @option opts [Integer] :page_number Specific page number to return.
569
569
  # @option opts [APIKeysSort] :sort API key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign.
570
570
  # @option opts [String] :filter Filter API keys by the specified string.
@@ -646,7 +646,7 @@ module DatadogAPIClient::V2
646
646
  # List all application keys available for your org
647
647
  #
648
648
  # @param opts [Hash] the optional parameters
649
- # @option opts [Integer] :page_size Size for a given page.
649
+ # @option opts [Integer] :page_size Size for a given page. The maximum allowed value is 5000.
650
650
  # @option opts [Integer] :page_number Specific page number to return.
651
651
  # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign.
652
652
  # @option opts [String] :filter Filter application keys by the specified string.
@@ -722,7 +722,7 @@ module DatadogAPIClient::V2
722
722
  # List all application keys available for current user
723
723
  #
724
724
  # @param opts [Hash] the optional parameters
725
- # @option opts [Integer] :page_size Size for a given page.
725
+ # @option opts [Integer] :page_size Size for a given page. The maximum allowed value is 5000.
726
726
  # @option opts [Integer] :page_number Specific page number to return.
727
727
  # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign.
728
728
  # @option opts [String] :filter Filter application keys by the specified string.
@@ -211,6 +211,7 @@ module DatadogAPIClient::V2
211
211
  # @option opts [String] :filter_index For customers with multiple indexes, the indexes to search Defaults to '*' which means all indexes
212
212
  # @option opts [Time] :filter_from Minimum timestamp for requested logs.
213
213
  # @option opts [Time] :filter_to Maximum timestamp for requested logs.
214
+ # @option opts [LogsStorageTier] :filter_storage_tier Specifies the storage type to be used
214
215
  # @option opts [LogsSort] :sort Order of logs in results.
215
216
  # @option opts [String] :page_cursor List following results with a cursor provided in the previous query.
216
217
  # @option opts [Integer] :page_limit Maximum number of logs in the response.
@@ -220,6 +221,10 @@ module DatadogAPIClient::V2
220
221
  if @api_client.config.debugging
221
222
  @api_client.config.logger.debug 'Calling API: LogsAPI.list_logs_get ...'
222
223
  end
224
+ allowable_values = ['indexes', 'online-archives']
225
+ if @api_client.config.client_side_validation && opts[:'filter_storage_tier'] && !allowable_values.include?(opts[:'filter_storage_tier'])
226
+ fail ArgumentError, "invalid value for \"filter_storage_tier\", must be one of #{allowable_values}"
227
+ end
223
228
  allowable_values = ['timestamp', '-timestamp']
224
229
  if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
225
230
  fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
@@ -236,6 +241,7 @@ module DatadogAPIClient::V2
236
241
  query_params[:'filter[index]'] = opts[:'filter_index'] if !opts[:'filter_index'].nil?
237
242
  query_params[:'filter[from]'] = opts[:'filter_from'] if !opts[:'filter_from'].nil?
238
243
  query_params[:'filter[to]'] = opts[:'filter_to'] if !opts[:'filter_to'].nil?
244
+ query_params[:'filter[storage_tier]'] = opts[:'filter_storage_tier'] if !opts[:'filter_storage_tier'].nil?
239
245
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
240
246
  query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil?
241
247
  query_params[:'page[limit]'] = opts[:'page_limit'] if !opts[:'page_limit'].nil?