datadog_api_client 2.47.0 → 2.49.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 (345) hide show
  1. checksums.yaml +4 -4
  2. data/.generator/schemas/v1/openapi.yaml +520 -49
  3. data/.generator/schemas/v2/openapi.yaml +4542 -1006
  4. data/CHANGELOG.md +45 -0
  5. data/examples/v1/dashboards/CreateDashboard_1093147852.rb +66 -0
  6. data/examples/v1/dashboards/CreateDashboard_1442588603.rb +1 -1
  7. data/examples/v1/dashboards/CreateDashboard_1617893815.rb +61 -0
  8. data/examples/v1/dashboards/CreateDashboard_1712853070.rb +66 -0
  9. data/examples/v1/dashboards/CreateDashboard_2345541687.rb +65 -0
  10. data/examples/v1/dashboards/CreateDashboard_252716965.rb +1 -1
  11. data/examples/v1/dashboards/CreateDashboard_2617251399.rb +66 -0
  12. data/examples/v1/dashboards/CreateDashboard_2823363212.rb +55 -0
  13. data/examples/v1/dashboards/CreateDashboard_3882428227.rb +1 -1
  14. data/examples/v1/monitors/CreateMonitor_3626832481.rb +33 -0
  15. data/examples/v1/synthetics/CreateSyntheticsAPITest_2106135939.rb +49 -0
  16. data/examples/v1/tags/GetHostTags.rb +1 -1
  17. data/examples/v1/tags/ListHostTags.rb +1 -1
  18. data/examples/v2/aws-integration/CreateAWSAccount.rb +0 -11
  19. data/examples/v2/aws-integration/CreateAWSAccount_1716720881.rb +0 -11
  20. data/examples/v2/aws-integration/UpdateAWSAccount.rb +0 -11
  21. data/examples/v2/incidents/CreateIncidentAttachment.rb +22 -0
  22. data/examples/v2/incidents/DeleteIncidentAttachment.rb +8 -0
  23. data/examples/v2/incidents/ListIncidentAttachments.rb +1 -1
  24. data/examples/v2/incidents/UpdateIncidentAttachment.rb +20 -0
  25. data/examples/v2/observability-pipelines/CreatePipeline.rb +1 -1
  26. data/examples/v2/observability-pipelines/UpdatePipeline.rb +1 -1
  27. data/examples/v2/observability-pipelines/ValidatePipeline.rb +1 -1
  28. data/examples/v2/on-call/CreateUserNotificationRule.rb +29 -0
  29. data/examples/v2/on-call/DeleteUserNotificationRule.rb +11 -0
  30. data/examples/v2/on-call/GetUserNotificationRule.rb +14 -0
  31. data/examples/v2/on-call/ListUserNotificationRules.rb +11 -0
  32. data/examples/v2/on-call/UpdateUserNotificationRule.rb +36 -0
  33. data/examples/v2/product-analytics/SubmitProductAnalyticsEvent.rb +24 -0
  34. data/examples/v2/reference-tables/UpdateReferenceTable.rb +0 -1
  35. data/examples/v2/reference-tables/UpsertRows.rb +1 -3
  36. data/examples/v2/security-monitoring/CreateSecurityMonitoringCriticalAsset.rb +20 -0
  37. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_2323193894.rb +48 -0
  38. data/examples/v2/security-monitoring/DeleteSecurityMonitoringCriticalAsset.rb +8 -0
  39. data/examples/v2/security-monitoring/GetCriticalAssetsAffectingRule.rb +8 -0
  40. data/examples/v2/security-monitoring/GetSecurityMonitoringCriticalAsset.rb +8 -0
  41. data/examples/v2/security-monitoring/ListSecurityFindings.rb +5 -0
  42. data/examples/v2/security-monitoring/ListSecurityFindings_2925663885.rb +8 -0
  43. data/examples/v2/security-monitoring/ListSecurityMonitoringCriticalAssets.rb +5 -0
  44. data/examples/v2/security-monitoring/SearchSecurityFindings.rb +13 -0
  45. data/examples/v2/security-monitoring/SearchSecurityFindings_3678541639.rb +16 -0
  46. data/examples/v2/security-monitoring/UpdateSecurityMonitoringCriticalAsset.rb +24 -0
  47. data/examples/v2/spa/GetSPARecommendations.rb +1 -1
  48. data/examples/v2/spa/GetSPARecommendationsWithShard.rb +8 -0
  49. data/examples/v2/synthetics/PatchGlobalVariable.rb +19 -0
  50. data/examples/v2/teams/CreateTeamNotificationRule.rb +23 -0
  51. data/examples/v2/teams/DeleteTeamConnections.rb +0 -3
  52. data/examples/v2/teams/DeleteTeamNotificationRule.rb +11 -0
  53. data/examples/v2/teams/GetTeamNotificationRule.rb +11 -0
  54. data/examples/v2/teams/GetTeamNotificationRules.rb +8 -0
  55. data/examples/v2/teams/GetTeamSync.rb +0 -3
  56. data/examples/v2/teams/ListTeamConnections.rb +0 -3
  57. data/examples/v2/teams/ListTeamConnections_2418873869.rb +0 -3
  58. data/examples/v2/teams/SyncTeams.rb +0 -3
  59. data/examples/v2/teams/SyncTeams_3215592344.rb +0 -3
  60. data/examples/v2/teams/UpdateTeamNotificationRule.rb +27 -0
  61. data/lib/datadog_api_client/configuration.rb +62 -12
  62. data/lib/datadog_api_client/inflector.rb +171 -26
  63. data/lib/datadog_api_client/v1/api/synthetics_api.rb +3 -3
  64. data/lib/datadog_api_client/v1/api/tags_api.rb +17 -17
  65. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +6 -4
  66. data/lib/datadog_api_client/v1/models/bar_chart_widget_definition.rb +216 -0
  67. data/lib/datadog_api_client/v1/models/bar_chart_widget_definition_type.rb +26 -0
  68. data/lib/datadog_api_client/v1/models/bar_chart_widget_display.rb +63 -0
  69. data/lib/datadog_api_client/v1/models/bar_chart_widget_flat.rb +123 -0
  70. data/lib/datadog_api_client/v1/models/bar_chart_widget_flat_type.rb +26 -0
  71. data/lib/datadog_api_client/v1/models/bar_chart_widget_legend.rb +28 -0
  72. data/lib/datadog_api_client/v1/models/bar_chart_widget_request.rb +261 -0
  73. data/lib/datadog_api_client/v1/models/bar_chart_widget_scaling.rb +27 -0
  74. data/lib/datadog_api_client/v1/models/bar_chart_widget_stacked.rb +133 -0
  75. data/lib/datadog_api_client/v1/models/bar_chart_widget_stacked_type.rb +26 -0
  76. data/lib/datadog_api_client/v1/models/bar_chart_widget_style.rb +125 -0
  77. data/lib/datadog_api_client/v1/models/distribution_widget_request.rb +36 -2
  78. data/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb +29 -1
  79. data/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb +23 -1
  80. data/lib/datadog_api_client/v1/models/heat_map_widget_request.rb +21 -1
  81. data/lib/datadog_api_client/v1/models/heat_map_widget_x_axis.rb +107 -0
  82. data/lib/datadog_api_client/v1/models/host_tags.rb +2 -2
  83. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +3 -0
  84. data/lib/datadog_api_client/v1/models/monitor_formula_and_function_data_quality_data_source.rb +26 -0
  85. data/lib/datadog_api_client/v1/models/monitor_formula_and_function_data_quality_model_type_override.rb +28 -0
  86. data/lib/datadog_api_client/{v2/models/data_export_config.rb → v1/models/monitor_formula_and_function_data_quality_monitor_options.rb} +43 -41
  87. data/lib/datadog_api_client/v1/models/monitor_formula_and_function_data_quality_query_definition.rb +232 -0
  88. data/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb +2 -1
  89. data/lib/datadog_api_client/v1/models/monitor_type.rb +1 -0
  90. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +6 -0
  91. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +61 -1
  92. data/lib/datadog_api_client/v1/models/split_graph_source_widget_definition.rb +1 -0
  93. data/lib/datadog_api_client/v1/models/synthetics_api_step.rb +2 -1
  94. data/lib/datadog_api_client/v1/models/synthetics_api_subtest_step.rb +236 -0
  95. data/lib/datadog_api_client/v1/models/synthetics_api_subtest_step_subtype.rb +26 -0
  96. data/lib/datadog_api_client/v1/models/synthetics_list_tests_response.rb +1 -1
  97. data/lib/datadog_api_client/v1/models/synthetics_test_details.rb +1 -1
  98. data/lib/datadog_api_client/v1/models/synthetics_test_details_without_steps.rb +221 -0
  99. data/lib/datadog_api_client/v1/models/tag_to_hosts.rb +2 -2
  100. data/lib/datadog_api_client/v1/models/widget_definition.rb +1 -0
  101. data/lib/datadog_api_client/v1/models/{distribution_widget_histogram_request_type.rb → widget_histogram_request_type.rb} +1 -1
  102. data/lib/datadog_api_client/v1/models/widget_marker.rb +3 -1
  103. data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +8 -8
  104. data/lib/datadog_api_client/v2/api/events_api.rb +0 -2
  105. data/lib/datadog_api_client/v2/api/fleet_automation_api.rb +3 -3
  106. data/lib/datadog_api_client/v2/api/incidents_api.rb +188 -36
  107. data/lib/datadog_api_client/v2/api/observability_pipelines_api.rb +6 -6
  108. data/lib/datadog_api_client/v2/api/on_call_api.rb +360 -0
  109. data/lib/datadog_api_client/v2/api/product_analytics_api.rb +121 -0
  110. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +597 -0
  111. data/lib/datadog_api_client/v2/api/software_catalog_api.rb +4 -0
  112. data/lib/datadog_api_client/v2/api/spa_api.rb +86 -11
  113. data/lib/datadog_api_client/v2/api/synthetics_api.rb +79 -0
  114. data/lib/datadog_api_client/v2/api/teams_api.rb +339 -30
  115. data/lib/datadog_api_client/v2/models/{awsccm_config.rb → attachment.rb} +22 -12
  116. data/lib/datadog_api_client/v2/models/{incident_attachments_response.rb → attachment_array.rb} +7 -7
  117. data/lib/datadog_api_client/v2/models/{incident_attachment_data.rb → attachment_data.rb} +8 -8
  118. data/lib/datadog_api_client/v2/models/attachment_data_attributes.rb +125 -0
  119. data/lib/datadog_api_client/v2/models/attachment_data_attributes_attachment.rb +115 -0
  120. data/lib/datadog_api_client/v2/models/{incident_attachment_attachment_type.rb → attachment_data_attributes_attachment_type.rb} +3 -3
  121. data/lib/datadog_api_client/v2/models/{incident_attachment_relationships.rb → attachment_data_relationships.rb} +5 -5
  122. data/lib/datadog_api_client/v2/models/{incident_attachment_update_request.rb → attachment_data_relationships_last_modified_by_user.rb} +6 -11
  123. data/lib/datadog_api_client/v2/models/attachment_data_relationships_last_modified_by_user_data.rb +144 -0
  124. data/lib/datadog_api_client/v2/models/{incident_attachments_response_included_item.rb → attachment_included.rb} +3 -3
  125. data/lib/datadog_api_client/v2/models/aws_account_create_request_attributes.rb +1 -11
  126. data/lib/datadog_api_client/v2/models/aws_account_response_attributes.rb +1 -11
  127. data/lib/datadog_api_client/v2/models/aws_account_update_request_attributes.rb +1 -11
  128. data/lib/datadog_api_client/v2/models/azure_storage_destination.rb +2 -0
  129. data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes.rb +2 -2
  130. data/lib/datadog_api_client/v2/models/{incident_attachment_update_attributes.rb → batch_upsert_rows_request_data_attributes_value.rb} +4 -4
  131. data/lib/datadog_api_client/v2/models/case_create_attributes.rb +11 -1
  132. data/lib/datadog_api_client/v2/models/{dora_fetch_response.rb → create_attachment_request.rb} +5 -5
  133. data/lib/datadog_api_client/v2/models/{incident_attachment_update_data.rb → create_attachment_request_data.rb} +6 -6
  134. data/lib/datadog_api_client/v2/models/create_attachment_request_data_attributes.rb +115 -0
  135. data/lib/datadog_api_client/v2/models/create_attachment_request_data_attributes_attachment.rb +115 -0
  136. data/lib/datadog_api_client/v2/models/create_on_call_notification_rule_request.rb +123 -0
  137. data/lib/datadog_api_client/v2/models/create_on_call_notification_rule_request_data.rb +143 -0
  138. data/lib/datadog_api_client/v2/models/custom_attribute_type.rb +1 -0
  139. data/lib/datadog_api_client/v2/models/dora_deployment_fetch_response.rb +105 -0
  140. data/lib/datadog_api_client/v2/models/dora_deployment_object.rb +125 -0
  141. data/lib/datadog_api_client/v2/models/dora_deployment_object_attributes.rb +225 -0
  142. data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +1 -1
  143. data/lib/datadog_api_client/v2/models/dora_deployments_list_response.rb +107 -0
  144. data/lib/datadog_api_client/v2/models/dora_failure_fetch_response.rb +105 -0
  145. data/lib/datadog_api_client/v2/models/dora_failure_request_attributes.rb +1 -1
  146. data/lib/datadog_api_client/v2/models/{dora_list_response.rb → dora_failures_list_response.rb} +5 -5
  147. data/lib/datadog_api_client/v2/models/{dora_event.rb → dora_incident_object.rb} +8 -8
  148. data/lib/datadog_api_client/v2/models/dora_incident_object_attributes.rb +225 -0
  149. data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +23 -1
  150. data/lib/datadog_api_client/v2/models/global_variable_data.rb +125 -0
  151. data/lib/datadog_api_client/v2/models/global_variable_json_patch_request.rb +123 -0
  152. data/lib/datadog_api_client/v2/models/global_variable_json_patch_request_data.rb +115 -0
  153. data/lib/datadog_api_client/v2/models/global_variable_json_patch_request_data_attributes.rb +107 -0
  154. data/lib/datadog_api_client/v2/models/global_variable_json_patch_type.rb +26 -0
  155. data/lib/datadog_api_client/v2/models/global_variable_response.rb +105 -0
  156. data/lib/datadog_api_client/v2/models/{incident_attachment_link_attachment_type.rb → global_variable_type.rb} +3 -3
  157. data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +1 -1
  158. data/lib/datadog_api_client/v2/models/json_patch_operation.rb +154 -0
  159. data/lib/datadog_api_client/v2/models/json_patch_operation_op.rb +31 -0
  160. data/lib/datadog_api_client/v2/models/list_on_call_notification_rules_response.rb +119 -0
  161. data/lib/datadog_api_client/v2/models/list_security_findings_response.rb +127 -0
  162. data/lib/datadog_api_client/v2/models/microsoft_sentinel_destination.rb +2 -0
  163. data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor.rb +14 -2
  164. data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor.rb +15 -3
  165. data/lib/datadog_api_client/v2/models/observability_pipeline_add_hostname_processor.rb +198 -0
  166. data/lib/datadog_api_client/v2/models/observability_pipeline_add_hostname_processor_type.rb +26 -0
  167. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_data_firehose_source.rb +3 -1
  168. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_open_search_destination.rb +2 -0
  169. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_destination.rb +2 -0
  170. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_source.rb +3 -1
  171. data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_security_lake_destination.rb +2 -0
  172. data/lib/datadog_api_client/v2/models/{incident_attachment_link_attributes.rb → observability_pipeline_cloud_prem_destination.rb} +52 -37
  173. data/lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination_type.rb +26 -0
  174. data/lib/datadog_api_client/v2/models/observability_pipeline_config.rb +25 -1
  175. data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +17 -13
  176. data/lib/datadog_api_client/v2/models/observability_pipeline_config_pipeline_type.rb +27 -0
  177. data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_group.rb +11 -1
  178. data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_item.rb +14 -10
  179. data/lib/datadog_api_client/v2/models/observability_pipeline_config_source_item.rb +11 -10
  180. data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination.rb +2 -0
  181. data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor.rb +14 -2
  182. data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_agent_source.rb +4 -2
  183. data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_logs_destination.rb +2 -0
  184. data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_metrics_destination.rb +169 -0
  185. data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_metrics_destination_type.rb +26 -0
  186. data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor.rb +15 -3
  187. data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor.rb +14 -2
  188. data/lib/datadog_api_client/v2/models/observability_pipeline_elasticsearch_destination.rb +13 -1
  189. data/lib/datadog_api_client/v2/models/observability_pipeline_elasticsearch_destination_data_stream.rb +125 -0
  190. data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_processor.rb +25 -3
  191. data/lib/datadog_api_client/v2/models/{incident_attachment_postmortem_attributes.rb → observability_pipeline_enrichment_table_reference_table.rb} +42 -30
  192. data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor.rb +17 -5
  193. data/lib/datadog_api_client/v2/models/observability_pipeline_fluent_bit_source.rb +3 -1
  194. data/lib/datadog_api_client/v2/models/observability_pipeline_fluentd_source.rb +3 -1
  195. data/lib/datadog_api_client/v2/models/observability_pipeline_generate_metrics_processor.rb +14 -2
  196. data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +2 -0
  197. data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +2 -0
  198. data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination.rb +2 -0
  199. data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb +3 -1
  200. data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination.rb +220 -0
  201. data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_auth_strategy.rb +28 -0
  202. data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_compression.rb +123 -0
  203. data/lib/datadog_api_client/v2/models/{incident_attachment_postmortem_attachment_type.rb → observability_pipeline_http_client_destination_compression_algorithm.rb} +3 -3
  204. data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_encoding.rb +26 -0
  205. data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_type.rb +26 -0
  206. data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source.rb +3 -1
  207. data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source_auth_strategy.rb +1 -0
  208. data/lib/datadog_api_client/v2/models/observability_pipeline_http_server_source.rb +2 -0
  209. data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination.rb +361 -0
  210. data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination_compression.rb +30 -0
  211. data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination_encoding.rb +27 -0
  212. data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination_type.rb +26 -0
  213. data/lib/datadog_api_client/v2/models/{observability_pipeline_kafka_source_librdkafka_option.rb → observability_pipeline_kafka_librdkafka_option.rb} +3 -3
  214. data/lib/datadog_api_client/v2/models/{observability_pipeline_kafka_source_sasl.rb → observability_pipeline_kafka_sasl.rb} +3 -3
  215. data/lib/datadog_api_client/v2/models/{observability_pipeline_pipeline_kafka_source_sasl_mechanism.rb → observability_pipeline_kafka_sasl_mechanism.rb} +1 -1
  216. data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_source.rb +5 -3
  217. data/lib/datadog_api_client/v2/models/observability_pipeline_logstash_source.rb +3 -1
  218. data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor.rb +229 -0
  219. data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor_rule.rb +188 -0
  220. data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor_rule_action.rb +27 -0
  221. data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor_rule_mode.rb +26 -0
  222. data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor_type.rb +26 -0
  223. data/lib/datadog_api_client/v2/models/observability_pipeline_new_relic_destination.rb +2 -0
  224. data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor.rb +14 -2
  225. data/lib/datadog_api_client/v2/models/observability_pipeline_open_search_destination.rb +2 -0
  226. data/lib/datadog_api_client/v2/models/observability_pipeline_opentelemetry_source.rb +176 -0
  227. data/lib/datadog_api_client/v2/models/observability_pipeline_opentelemetry_source_type.rb +26 -0
  228. data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor.rb +14 -2
  229. data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor.rb +14 -2
  230. data/lib/datadog_api_client/v2/models/observability_pipeline_parse_xml_processor.rb +300 -0
  231. data/lib/datadog_api_client/v2/models/observability_pipeline_parse_xml_processor_type.rb +26 -0
  232. data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +31 -6
  233. data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor_overflow_action.rb +1 -1
  234. data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor.rb +14 -2
  235. data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor.rb +15 -3
  236. data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor.rb +14 -2
  237. data/lib/datadog_api_client/v2/models/observability_pipeline_rsyslog_destination.rb +2 -0
  238. data/lib/datadog_api_client/v2/models/observability_pipeline_rsyslog_source.rb +3 -1
  239. data/lib/datadog_api_client/v2/models/observability_pipeline_sample_processor.rb +45 -20
  240. data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor.rb +15 -3
  241. data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_custom_pattern_options.rb +11 -1
  242. data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_library_pattern_options.rb +11 -1
  243. data/lib/datadog_api_client/v2/models/observability_pipeline_sentinel_one_destination.rb +2 -0
  244. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination.rb +2 -0
  245. data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source.rb +3 -1
  246. data/lib/datadog_api_client/v2/models/observability_pipeline_split_array_processor.rb +229 -0
  247. data/lib/datadog_api_client/v2/models/{incident_attachment_link_attributes_attachment_object.rb → observability_pipeline_split_array_processor_array_config.rb} +30 -30
  248. data/lib/datadog_api_client/v2/models/observability_pipeline_split_array_processor_type.rb +26 -0
  249. data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_destination.rb +3 -1
  250. data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_source.rb +3 -1
  251. data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_tcp_source.rb +3 -1
  252. data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_destination.rb +2 -0
  253. data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_source.rb +3 -1
  254. data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_destination.rb +2 -0
  255. data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_source.rb +3 -1
  256. data/lib/datadog_api_client/v2/models/observability_pipeline_throttle_processor.rb +14 -2
  257. data/lib/datadog_api_client/v2/models/{incident_attachment_update_response.rb → on_call_notification_rule.rb} +8 -11
  258. data/lib/datadog_api_client/v2/models/on_call_notification_rule_attributes.rb +125 -0
  259. data/lib/datadog_api_client/v2/models/on_call_notification_rule_category.rb +27 -0
  260. data/lib/datadog_api_client/v2/models/on_call_notification_rule_channel_relationship.rb +123 -0
  261. data/lib/datadog_api_client/v2/models/on_call_notification_rule_channel_relationship_data.rb +115 -0
  262. data/lib/datadog_api_client/v2/models/{incident_attachment_attributes.rb → on_call_notification_rule_channel_settings.rb} +3 -4
  263. data/lib/datadog_api_client/v2/models/on_call_notification_rule_data.rb +153 -0
  264. data/lib/datadog_api_client/v2/models/on_call_notification_rule_relationships.rb +105 -0
  265. data/lib/datadog_api_client/v2/models/on_call_notification_rule_request_attributes.rb +125 -0
  266. data/lib/datadog_api_client/v2/models/on_call_notification_rule_type.rb +26 -0
  267. data/lib/datadog_api_client/v2/models/on_call_notification_rules_included.rb +62 -0
  268. data/lib/datadog_api_client/v2/models/on_call_phone_notification_rule_method.rb +27 -0
  269. data/lib/datadog_api_client/v2/models/{incident_attachments_postmortem_attributes_attachment_object.rb → on_call_phone_notification_rule_settings.rb} +30 -30
  270. data/lib/datadog_api_client/v2/models/patch_attachment_request.rb +105 -0
  271. data/lib/datadog_api_client/v2/models/patch_attachment_request_data.rb +143 -0
  272. data/lib/datadog_api_client/v2/models/patch_attachment_request_data_attributes.rb +105 -0
  273. data/lib/datadog_api_client/v2/models/patch_attachment_request_data_attributes_attachment.rb +115 -0
  274. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes.rb +1 -11
  275. data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_error.rb +125 -0
  276. data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_errors.rb +107 -0
  277. data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item.rb +195 -0
  278. data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_account.rb +123 -0
  279. data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_application.rb +124 -0
  280. data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_event.rb +123 -0
  281. data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_session.rb +123 -0
  282. data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_type.rb +26 -0
  283. data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_usr.rb +123 -0
  284. data/lib/datadog_api_client/v2/models/recommendation_attributes.rb +11 -1
  285. data/lib/datadog_api_client/v2/models/security_findings_attributes.rb +127 -0
  286. data/lib/datadog_api_client/v2/models/security_findings_data.rb +125 -0
  287. data/lib/datadog_api_client/v2/models/security_findings_data_type.rb +26 -0
  288. data/lib/datadog_api_client/v2/models/security_findings_links.rb +105 -0
  289. data/lib/datadog_api_client/v2/models/security_findings_meta.rb +135 -0
  290. data/lib/datadog_api_client/v2/models/security_findings_page.rb +105 -0
  291. data/lib/datadog_api_client/v2/models/security_findings_search_request.rb +105 -0
  292. data/lib/datadog_api_client/v2/models/security_findings_search_request_data.rb +105 -0
  293. data/lib/datadog_api_client/v2/models/security_findings_search_request_data_attributes.rb +125 -0
  294. data/lib/datadog_api_client/v2/models/security_findings_search_request_page.rb +137 -0
  295. data/lib/datadog_api_client/v2/models/security_findings_sort.rb +27 -0
  296. data/lib/datadog_api_client/v2/models/security_findings_status.rb +27 -0
  297. data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset.rb +125 -0
  298. data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_attributes.rb +235 -0
  299. data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_create_attributes.rb +187 -0
  300. data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_create_data.rb +144 -0
  301. data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_create_request.rb +123 -0
  302. data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_response.rb +105 -0
  303. data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_severity.rb +32 -0
  304. data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_type.rb +26 -0
  305. data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_update_attributes.rb +175 -0
  306. data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_update_data.rb +144 -0
  307. data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_update_request.rb +123 -0
  308. data/lib/datadog_api_client/v2/models/security_monitoring_critical_assets_response.rb +107 -0
  309. data/lib/datadog_api_client/v2/models/security_monitoring_rule_anomaly_detection_options.rb +155 -0
  310. data/lib/datadog_api_client/v2/models/security_monitoring_rule_anomaly_detection_options_bucket_duration.rb +32 -0
  311. data/lib/datadog_api_client/v2/models/security_monitoring_rule_anomaly_detection_options_detection_tolerance.rb +31 -0
  312. data/lib/datadog_api_client/v2/models/security_monitoring_rule_anomaly_detection_options_learning_duration.rb +32 -0
  313. data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +11 -1
  314. data/lib/datadog_api_client/v2/models/synthetics_global_variable.rb +248 -0
  315. data/lib/datadog_api_client/v2/models/synthetics_global_variable_attributes.rb +107 -0
  316. data/lib/datadog_api_client/v2/models/synthetics_global_variable_options.rb +105 -0
  317. data/lib/datadog_api_client/v2/models/synthetics_global_variable_parse_test_options.rb +153 -0
  318. data/lib/datadog_api_client/v2/models/synthetics_global_variable_parse_test_options_type.rb +29 -0
  319. data/lib/datadog_api_client/v2/models/synthetics_global_variable_parser_type.rb +29 -0
  320. data/lib/datadog_api_client/v2/models/synthetics_global_variable_totp_parameters.rb +152 -0
  321. data/lib/datadog_api_client/v2/models/synthetics_global_variable_value.rb +126 -0
  322. data/lib/datadog_api_client/v2/models/synthetics_variable_parser.rb +133 -0
  323. data/lib/datadog_api_client/v2/models/team_notification_rule.rb +154 -0
  324. data/lib/datadog_api_client/v2/models/team_notification_rule_attributes.rb +135 -0
  325. data/lib/datadog_api_client/v2/models/team_notification_rule_attributes_email.rb +105 -0
  326. data/lib/datadog_api_client/v2/models/team_notification_rule_attributes_ms_teams.rb +105 -0
  327. data/lib/datadog_api_client/v2/models/team_notification_rule_attributes_pagerduty.rb +105 -0
  328. data/lib/datadog_api_client/v2/models/team_notification_rule_attributes_slack.rb +115 -0
  329. data/lib/datadog_api_client/v2/models/team_notification_rule_request.rb +123 -0
  330. data/lib/datadog_api_client/v2/models/team_notification_rule_response.rb +105 -0
  331. data/lib/datadog_api_client/v2/models/team_notification_rule_type.rb +26 -0
  332. data/lib/datadog_api_client/v2/models/team_notification_rules_response.rb +117 -0
  333. data/lib/datadog_api_client/v2/models/team_notification_rules_response_meta.rb +105 -0
  334. data/lib/datadog_api_client/v2/models/team_notification_rules_response_meta_page.rb +184 -0
  335. data/lib/datadog_api_client/v2/models/threat_hunting_job_options.rb +11 -1
  336. data/lib/datadog_api_client/v2/models/update_on_call_notification_rule_request.rb +123 -0
  337. data/lib/datadog_api_client/v2/models/update_on_call_notification_rule_request_attributes.rb +125 -0
  338. data/lib/datadog_api_client/v2/models/update_on_call_notification_rule_request_data.rb +153 -0
  339. data/lib/datadog_api_client/v2/models/user140420082644000.rb +143 -0
  340. data/lib/datadog_api_client/v2/models/{incident_attachment_related_object.rb → user_type.rb} +2 -2
  341. data/lib/datadog_api_client/version.rb +1 -1
  342. metadata +207 -30
  343. data/examples/v2/incidents/ListIncidentAttachments_2457735435.rb +0 -11
  344. data/examples/v2/incidents/UpdateIncidentAttachments.rb +0 -38
  345. data/examples/v2/incidents/UpdateIncidentAttachments_3881702075.rb +0 -26
@@ -0,0 +1,236 @@
1
+ =begin
2
+ #Datadog API V1 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::V1
20
+ # The subtest step used in a Synthetics multi-step API test.
21
+ class SyntheticsAPISubtestStep
22
+ include BaseGenericModel
23
+
24
+ # Determines whether or not to continue with test if this step fails.
25
+ attr_accessor :allow_failure
26
+
27
+ # A boolean set to always execute this step even if the previous step failed or was skipped.
28
+ attr_accessor :always_execute
29
+
30
+ # Determines whether or not to exit the test if the step succeeds.
31
+ attr_accessor :exit_if_succeed
32
+
33
+ # Generate variables using JavaScript.
34
+ attr_accessor :extracted_values_from_script
35
+
36
+ # ID of the step.
37
+ attr_accessor :id
38
+
39
+ # Determines whether or not to consider the entire test as failed if this step fails.
40
+ # Can be used only if `allowFailure` is `true`.
41
+ attr_accessor :is_critical
42
+
43
+ # The name of the step.
44
+ attr_reader :name
45
+
46
+ # Object describing the retry strategy to apply to a Synthetic test.
47
+ attr_accessor :_retry
48
+
49
+ # Public ID of the test to be played as part of a `playSubTest` step type.
50
+ attr_reader :subtest_public_id
51
+
52
+ # The subtype of the Synthetic multi-step API subtest step.
53
+ attr_reader :subtype
54
+
55
+ attr_accessor :additional_properties
56
+
57
+ # Attribute mapping from ruby-style variable name to JSON key.
58
+ # @!visibility private
59
+ def self.attribute_map
60
+ {
61
+ :'allow_failure' => :'allowFailure',
62
+ :'always_execute' => :'alwaysExecute',
63
+ :'exit_if_succeed' => :'exitIfSucceed',
64
+ :'extracted_values_from_script' => :'extractedValuesFromScript',
65
+ :'id' => :'id',
66
+ :'is_critical' => :'isCritical',
67
+ :'name' => :'name',
68
+ :'_retry' => :'retry',
69
+ :'subtest_public_id' => :'subtestPublicId',
70
+ :'subtype' => :'subtype'
71
+ }
72
+ end
73
+
74
+ # Attribute type mapping.
75
+ # @!visibility private
76
+ def self.openapi_types
77
+ {
78
+ :'allow_failure' => :'Boolean',
79
+ :'always_execute' => :'Boolean',
80
+ :'exit_if_succeed' => :'Boolean',
81
+ :'extracted_values_from_script' => :'String',
82
+ :'id' => :'String',
83
+ :'is_critical' => :'Boolean',
84
+ :'name' => :'String',
85
+ :'_retry' => :'SyntheticsTestOptionsRetry',
86
+ :'subtest_public_id' => :'String',
87
+ :'subtype' => :'SyntheticsAPISubtestStepSubtype'
88
+ }
89
+ end
90
+
91
+ # Initializes the object
92
+ # @param attributes [Hash] Model attributes in the form of hash
93
+ # @!visibility private
94
+ def initialize(attributes = {})
95
+ if (!attributes.is_a?(Hash))
96
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPISubtestStep` initialize method"
97
+ end
98
+
99
+ self.additional_properties = {}
100
+ # check to see if the attribute exists and convert string to symbol for hash key
101
+ attributes = attributes.each_with_object({}) { |(k, v), h|
102
+ if (!self.class.attribute_map.key?(k.to_sym))
103
+ self.additional_properties[k.to_sym] = v
104
+ else
105
+ h[k.to_sym] = v
106
+ end
107
+ }
108
+
109
+ if attributes.key?(:'allow_failure')
110
+ self.allow_failure = attributes[:'allow_failure']
111
+ end
112
+
113
+ if attributes.key?(:'always_execute')
114
+ self.always_execute = attributes[:'always_execute']
115
+ end
116
+
117
+ if attributes.key?(:'exit_if_succeed')
118
+ self.exit_if_succeed = attributes[:'exit_if_succeed']
119
+ end
120
+
121
+ if attributes.key?(:'extracted_values_from_script')
122
+ self.extracted_values_from_script = attributes[:'extracted_values_from_script']
123
+ end
124
+
125
+ if attributes.key?(:'id')
126
+ self.id = attributes[:'id']
127
+ end
128
+
129
+ if attributes.key?(:'is_critical')
130
+ self.is_critical = attributes[:'is_critical']
131
+ end
132
+
133
+ if attributes.key?(:'name')
134
+ self.name = attributes[:'name']
135
+ end
136
+
137
+ if attributes.key?(:'_retry')
138
+ self._retry = attributes[:'_retry']
139
+ end
140
+
141
+ if attributes.key?(:'subtest_public_id')
142
+ self.subtest_public_id = attributes[:'subtest_public_id']
143
+ end
144
+
145
+ if attributes.key?(:'subtype')
146
+ self.subtype = attributes[:'subtype']
147
+ end
148
+ end
149
+
150
+ # Check to see if the all the properties in the model are valid
151
+ # @return true if the model is valid
152
+ # @!visibility private
153
+ def valid?
154
+ return false if @name.nil?
155
+ return false if @subtest_public_id.nil?
156
+ return false if @subtype.nil?
157
+ true
158
+ end
159
+
160
+ # Custom attribute writer method with validation
161
+ # @param name [Object] Object to be assigned
162
+ # @!visibility private
163
+ def name=(name)
164
+ if name.nil?
165
+ fail ArgumentError, 'invalid value for "name", name cannot be nil.'
166
+ end
167
+ @name = name
168
+ end
169
+
170
+ # Custom attribute writer method with validation
171
+ # @param subtest_public_id [Object] Object to be assigned
172
+ # @!visibility private
173
+ def subtest_public_id=(subtest_public_id)
174
+ if subtest_public_id.nil?
175
+ fail ArgumentError, 'invalid value for "subtest_public_id", subtest_public_id cannot be nil.'
176
+ end
177
+ @subtest_public_id = subtest_public_id
178
+ end
179
+
180
+ # Custom attribute writer method with validation
181
+ # @param subtype [Object] Object to be assigned
182
+ # @!visibility private
183
+ def subtype=(subtype)
184
+ if subtype.nil?
185
+ fail ArgumentError, 'invalid value for "subtype", subtype cannot be nil.'
186
+ end
187
+ @subtype = subtype
188
+ end
189
+
190
+ # Returns the object in the form of hash, with additionalProperties support.
191
+ # @return [Hash] Returns the object in the form of hash
192
+ # @!visibility private
193
+ def to_hash
194
+ hash = {}
195
+ self.class.attribute_map.each_pair do |attr, param|
196
+ value = self.send(attr)
197
+ if value.nil?
198
+ is_nullable = self.class.openapi_nullable.include?(attr)
199
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
200
+ end
201
+
202
+ hash[param] = _to_hash(value)
203
+ end
204
+ self.additional_properties.each_pair do |attr, value|
205
+ hash[attr] = value
206
+ end
207
+ hash
208
+ end
209
+
210
+ # Checks equality by comparing each attribute.
211
+ # @param o [Object] Object to be compared
212
+ # @!visibility private
213
+ def ==(o)
214
+ return true if self.equal?(o)
215
+ self.class == o.class &&
216
+ allow_failure == o.allow_failure &&
217
+ always_execute == o.always_execute &&
218
+ exit_if_succeed == o.exit_if_succeed &&
219
+ extracted_values_from_script == o.extracted_values_from_script &&
220
+ id == o.id &&
221
+ is_critical == o.is_critical &&
222
+ name == o.name &&
223
+ _retry == o._retry &&
224
+ subtest_public_id == o.subtest_public_id &&
225
+ subtype == o.subtype &&
226
+ additional_properties == o.additional_properties
227
+ end
228
+
229
+ # Calculates hash code according to all attributes.
230
+ # @return [Integer] Hash code
231
+ # @!visibility private
232
+ def hash
233
+ [allow_failure, always_execute, exit_if_succeed, extracted_values_from_script, id, is_critical, name, _retry, subtest_public_id, subtype, additional_properties].hash
234
+ end
235
+ end
236
+ end
@@ -0,0 +1,26 @@
1
+ =begin
2
+ #Datadog API V1 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::V1
20
+ # The subtype of the Synthetic multi-step API subtest step.
21
+ class SyntheticsAPISubtestStepSubtype
22
+ include BaseEnumModel
23
+
24
+ PLAY_SUB_TEST = "playSubTest".freeze
25
+ end
26
+ end
@@ -38,7 +38,7 @@ module DatadogAPIClient::V1
38
38
  # @!visibility private
39
39
  def self.openapi_types
40
40
  {
41
- :'tests' => :'Array<SyntheticsTestDetails>'
41
+ :'tests' => :'Array<SyntheticsTestDetailsWithoutSteps>'
42
42
  }
43
43
  end
44
44
 
@@ -49,7 +49,7 @@ module DatadogAPIClient::V1
49
49
  # Synthetic test.
50
50
  attr_accessor :status
51
51
 
52
- # For browser test, the steps of the test.
52
+ # The steps of the test if they exist.
53
53
  attr_accessor :steps
54
54
 
55
55
  # The subtype of the Synthetic API test, `http`, `ssl`, `tcp`,
@@ -0,0 +1,221 @@
1
+ =begin
2
+ #Datadog API V1 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::V1
20
+ # Object containing details about your Synthetic test, without test steps.
21
+ class SyntheticsTestDetailsWithoutSteps
22
+ include BaseGenericModel
23
+
24
+ # Configuration object for a Synthetic test.
25
+ attr_accessor :config
26
+
27
+ # Object describing the creator of the shared element.
28
+ attr_accessor :creator
29
+
30
+ # Array of locations used to run the test.
31
+ attr_accessor :locations
32
+
33
+ # Notification message associated with the test.
34
+ attr_accessor :message
35
+
36
+ # The associated monitor ID.
37
+ attr_accessor :monitor_id
38
+
39
+ # Name of the test.
40
+ attr_accessor :name
41
+
42
+ # Object describing the extra options for a Synthetic test.
43
+ attr_accessor :options
44
+
45
+ # The test public ID.
46
+ attr_accessor :public_id
47
+
48
+ # Define whether you want to start (`live`) or pause (`paused`) a
49
+ # Synthetic test.
50
+ attr_accessor :status
51
+
52
+ # The subtype of the Synthetic API test, `http`, `ssl`, `tcp`,
53
+ # `dns`, `icmp`, `udp`, `websocket`, `grpc` or `multi`.
54
+ attr_accessor :subtype
55
+
56
+ # Array of tags attached to the test.
57
+ attr_accessor :tags
58
+
59
+ # Type of the Synthetic test, either `api` or `browser`.
60
+ attr_accessor :type
61
+
62
+ attr_accessor :additional_properties
63
+
64
+ # Attribute mapping from ruby-style variable name to JSON key.
65
+ # @!visibility private
66
+ def self.attribute_map
67
+ {
68
+ :'config' => :'config',
69
+ :'creator' => :'creator',
70
+ :'locations' => :'locations',
71
+ :'message' => :'message',
72
+ :'monitor_id' => :'monitor_id',
73
+ :'name' => :'name',
74
+ :'options' => :'options',
75
+ :'public_id' => :'public_id',
76
+ :'status' => :'status',
77
+ :'subtype' => :'subtype',
78
+ :'tags' => :'tags',
79
+ :'type' => :'type'
80
+ }
81
+ end
82
+
83
+ # Attribute type mapping.
84
+ # @!visibility private
85
+ def self.openapi_types
86
+ {
87
+ :'config' => :'SyntheticsTestConfig',
88
+ :'creator' => :'Creator',
89
+ :'locations' => :'Array<String>',
90
+ :'message' => :'String',
91
+ :'monitor_id' => :'Integer',
92
+ :'name' => :'String',
93
+ :'options' => :'SyntheticsTestOptions',
94
+ :'public_id' => :'String',
95
+ :'status' => :'SyntheticsTestPauseStatus',
96
+ :'subtype' => :'SyntheticsTestDetailsSubType',
97
+ :'tags' => :'Array<String>',
98
+ :'type' => :'SyntheticsTestDetailsType'
99
+ }
100
+ end
101
+
102
+ # Initializes the object
103
+ # @param attributes [Hash] Model attributes in the form of hash
104
+ # @!visibility private
105
+ def initialize(attributes = {})
106
+ if (!attributes.is_a?(Hash))
107
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestDetailsWithoutSteps` initialize method"
108
+ end
109
+
110
+ self.additional_properties = {}
111
+ # check to see if the attribute exists and convert string to symbol for hash key
112
+ attributes = attributes.each_with_object({}) { |(k, v), h|
113
+ if (!self.class.attribute_map.key?(k.to_sym))
114
+ self.additional_properties[k.to_sym] = v
115
+ else
116
+ h[k.to_sym] = v
117
+ end
118
+ }
119
+
120
+ if attributes.key?(:'config')
121
+ self.config = attributes[:'config']
122
+ end
123
+
124
+ if attributes.key?(:'creator')
125
+ self.creator = attributes[:'creator']
126
+ end
127
+
128
+ if attributes.key?(:'locations')
129
+ if (value = attributes[:'locations']).is_a?(Array)
130
+ self.locations = value
131
+ end
132
+ end
133
+
134
+ if attributes.key?(:'message')
135
+ self.message = attributes[:'message']
136
+ end
137
+
138
+ if attributes.key?(:'monitor_id')
139
+ self.monitor_id = attributes[:'monitor_id']
140
+ end
141
+
142
+ if attributes.key?(:'name')
143
+ self.name = attributes[:'name']
144
+ end
145
+
146
+ if attributes.key?(:'options')
147
+ self.options = attributes[:'options']
148
+ end
149
+
150
+ if attributes.key?(:'public_id')
151
+ self.public_id = attributes[:'public_id']
152
+ end
153
+
154
+ if attributes.key?(:'status')
155
+ self.status = attributes[:'status']
156
+ end
157
+
158
+ if attributes.key?(:'subtype')
159
+ self.subtype = attributes[:'subtype']
160
+ end
161
+
162
+ if attributes.key?(:'tags')
163
+ if (value = attributes[:'tags']).is_a?(Array)
164
+ self.tags = value
165
+ end
166
+ end
167
+
168
+ if attributes.key?(:'type')
169
+ self.type = attributes[:'type']
170
+ end
171
+ end
172
+
173
+ # Returns the object in the form of hash, with additionalProperties support.
174
+ # @return [Hash] Returns the object in the form of hash
175
+ # @!visibility private
176
+ def to_hash
177
+ hash = {}
178
+ self.class.attribute_map.each_pair do |attr, param|
179
+ value = self.send(attr)
180
+ if value.nil?
181
+ is_nullable = self.class.openapi_nullable.include?(attr)
182
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
183
+ end
184
+
185
+ hash[param] = _to_hash(value)
186
+ end
187
+ self.additional_properties.each_pair do |attr, value|
188
+ hash[attr] = value
189
+ end
190
+ hash
191
+ end
192
+
193
+ # Checks equality by comparing each attribute.
194
+ # @param o [Object] Object to be compared
195
+ # @!visibility private
196
+ def ==(o)
197
+ return true if self.equal?(o)
198
+ self.class == o.class &&
199
+ config == o.config &&
200
+ creator == o.creator &&
201
+ locations == o.locations &&
202
+ message == o.message &&
203
+ monitor_id == o.monitor_id &&
204
+ name == o.name &&
205
+ options == o.options &&
206
+ public_id == o.public_id &&
207
+ status == o.status &&
208
+ subtype == o.subtype &&
209
+ tags == o.tags &&
210
+ type == o.type &&
211
+ additional_properties == o.additional_properties
212
+ end
213
+
214
+ # Calculates hash code according to all attributes.
215
+ # @return [Integer] Hash code
216
+ # @!visibility private
217
+ def hash
218
+ [config, creator, locations, message, monitor_id, name, options, public_id, status, subtype, tags, type, additional_properties].hash
219
+ end
220
+ end
221
+ end
@@ -17,11 +17,11 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V1
20
- # In this object, the key is the tag, the value is a list of host names that are reporting that tag.
20
+ # In this object, the key is the tag, and the value is a list of host names that are reporting that tag.
21
21
  class TagToHosts
22
22
  include BaseGenericModel
23
23
 
24
- # A list of tags to apply to the host.
24
+ # A mapping of tags to host names
25
25
  attr_accessor :tags
26
26
 
27
27
  attr_accessor :additional_properties
@@ -28,6 +28,7 @@ module DatadogAPIClient::V1
28
28
  [
29
29
  :'AlertGraphWidgetDefinition',
30
30
  :'AlertValueWidgetDefinition',
31
+ :'BarChartWidgetDefinition',
31
32
  :'ChangeWidgetDefinition',
32
33
  :'CheckStatusWidgetDefinition',
33
34
  :'DistributionWidgetDefinition',
@@ -18,7 +18,7 @@ require 'time'
18
18
 
19
19
  module DatadogAPIClient::V1
20
20
  # Request type for the histogram request.
21
- class DistributionWidgetHistogramRequestType
21
+ class WidgetHistogramRequestType
22
22
  include BaseEnumModel
23
23
 
24
24
  HISTOGRAM = "histogram".freeze
@@ -24,7 +24,7 @@ module DatadogAPIClient::V1
24
24
  # Combination of:
25
25
  # - A severity error, warning, ok, or info
26
26
  # - A line type: dashed, solid, or bold
27
- # In this case of a Distribution widget, this can be set to be `x_axis_percentile`.
27
+ # In this case of a Distribution widget, this can be set to be `percentile`.
28
28
  attr_accessor :display_type
29
29
 
30
30
  # Label to display over the marker.
@@ -34,6 +34,8 @@ module DatadogAPIClient::V1
34
34
  attr_accessor :time
35
35
 
36
36
  # Value to apply. Can be a single value y = 15 or a range of values 0 < y < 10.
37
+ # For Distribution widgets with `display_type` set to `percentile`, this should be
38
+ # a numeric percentile value (for example, "90" for P90).
37
39
  attr_reader :value
38
40
 
39
41
  attr_accessor :additional_properties
@@ -386,7 +386,7 @@ module DatadogAPIClient::V2
386
386
  #
387
387
  # @param deployment_id [String] The ID of the deployment event.
388
388
  # @param opts [Hash] the optional parameters
389
- # @return [Array<(DORAFetchResponse, Integer, Hash)>] DORAFetchResponse data, response status code and response headers
389
+ # @return [Array<(DORADeploymentFetchResponse, Integer, Hash)>] DORADeploymentFetchResponse data, response status code and response headers
390
390
  def get_dora_deployment_with_http_info(deployment_id, opts = {})
391
391
 
392
392
  if @api_client.config.debugging
@@ -414,7 +414,7 @@ module DatadogAPIClient::V2
414
414
  post_body = opts[:debug_body]
415
415
 
416
416
  # return_type
417
- return_type = opts[:debug_return_type] || 'DORAFetchResponse'
417
+ return_type = opts[:debug_return_type] || 'DORADeploymentFetchResponse'
418
418
 
419
419
  # auth_names
420
420
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
@@ -451,7 +451,7 @@ module DatadogAPIClient::V2
451
451
  #
452
452
  # @param failure_id [String] The ID of the failure event.
453
453
  # @param opts [Hash] the optional parameters
454
- # @return [Array<(DORAFetchResponse, Integer, Hash)>] DORAFetchResponse data, response status code and response headers
454
+ # @return [Array<(DORAFailureFetchResponse, Integer, Hash)>] DORAFailureFetchResponse data, response status code and response headers
455
455
  def get_dora_failure_with_http_info(failure_id, opts = {})
456
456
 
457
457
  if @api_client.config.debugging
@@ -479,7 +479,7 @@ module DatadogAPIClient::V2
479
479
  post_body = opts[:debug_body]
480
480
 
481
481
  # return_type
482
- return_type = opts[:debug_return_type] || 'DORAFetchResponse'
482
+ return_type = opts[:debug_return_type] || 'DORAFailureFetchResponse'
483
483
 
484
484
  # auth_names
485
485
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
@@ -516,7 +516,7 @@ module DatadogAPIClient::V2
516
516
  #
517
517
  # @param body [DORAListDeploymentsRequest]
518
518
  # @param opts [Hash] the optional parameters
519
- # @return [Array<(DORAListResponse, Integer, Hash)>] DORAListResponse data, response status code and response headers
519
+ # @return [Array<(DORADeploymentsListResponse, Integer, Hash)>] DORADeploymentsListResponse data, response status code and response headers
520
520
  def list_dora_deployments_with_http_info(body, opts = {})
521
521
 
522
522
  if @api_client.config.debugging
@@ -546,7 +546,7 @@ module DatadogAPIClient::V2
546
546
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
547
547
 
548
548
  # return_type
549
- return_type = opts[:debug_return_type] || 'DORAListResponse'
549
+ return_type = opts[:debug_return_type] || 'DORADeploymentsListResponse'
550
550
 
551
551
  # auth_names
552
552
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
@@ -583,7 +583,7 @@ module DatadogAPIClient::V2
583
583
  #
584
584
  # @param body [DORAListFailuresRequest]
585
585
  # @param opts [Hash] the optional parameters
586
- # @return [Array<(DORAListResponse, Integer, Hash)>] DORAListResponse data, response status code and response headers
586
+ # @return [Array<(DORAFailuresListResponse, Integer, Hash)>] DORAFailuresListResponse data, response status code and response headers
587
587
  def list_dora_failures_with_http_info(body, opts = {})
588
588
 
589
589
  if @api_client.config.debugging
@@ -613,7 +613,7 @@ module DatadogAPIClient::V2
613
613
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
614
614
 
615
615
  # return_type
616
- return_type = opts[:debug_return_type] || 'DORAListResponse'
616
+ return_type = opts[:debug_return_type] || 'DORAFailuresListResponse'
617
617
 
618
618
  # auth_names
619
619
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
@@ -43,8 +43,6 @@ module DatadogAPIClient::V2
43
43
  #
44
44
  # ❌ For use cases involving other event categories, use the V1 endpoint or reach out to [support](https://www.datadoghq.com/support/).
45
45
  #
46
- # ❌ Notifications are not yet supported for events sent to this endpoint. Use the V1 endpoint for notification functionality.
47
- #
48
46
  # @param body [EventCreateRequestPayload] Event creation request payload.
49
47
  # @param opts [Hash] the optional parameters
50
48
  # @return [Array<(EventCreateResponsePayload, Integer, Hash)>] EventCreateResponsePayload data, response status code and response headers
@@ -693,7 +693,7 @@ module DatadogAPIClient::V2
693
693
  # Use the `page_number` and `page_size` query parameters to paginate through results.
694
694
  #
695
695
  # @param opts [Hash] the optional parameters
696
- # @option opts [Integer] :page_number Page number for pagination (must be greater than 0).
696
+ # @option opts [Integer] :page_number Page number for pagination (starts at 0).
697
697
  # @option opts [Integer] :page_size Number of results per page (must be greater than 0 and less than or equal to 100).
698
698
  # @option opts [String] :sort_attribute Attribute to sort by.
699
699
  # @option opts [Boolean] :sort_descending Sort order (true for descending, false for ascending).
@@ -711,8 +711,8 @@ module DatadogAPIClient::V2
711
711
  if @api_client.config.debugging
712
712
  @api_client.config.logger.debug 'Calling API: FleetAutomationAPI.list_fleet_agents ...'
713
713
  end
714
- if @api_client.config.client_side_validation && !opts[:'page_number'].nil? && opts[:'page_number'] < 1
715
- fail ArgumentError, 'invalid value for "opts[:"page_number"]" when calling FleetAutomationAPI.list_fleet_agents, must be greater than or equal to 1.'
714
+ if @api_client.config.client_side_validation && !opts[:'page_number'].nil? && opts[:'page_number'] < 0
715
+ fail ArgumentError, 'invalid value for "opts[:"page_number"]" when calling FleetAutomationAPI.list_fleet_agents, must be greater than or equal to 0.'
716
716
  end
717
717
  if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 100
718
718
  fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FleetAutomationAPI.list_fleet_agents, must be smaller than or equal to 100.'