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
@@ -34,12 +34,12 @@ module DatadogAPIClient::V1
34
34
  # Add tags to a host.
35
35
  #
36
36
  # This endpoint allows you to add new tags to a host,
37
- # optionally specifying where these tags come from.
37
+ # optionally specifying what source these tags come from. If tags already exist, appends new tags to the tag list. If no source is specified, defaults to "user".
38
38
  #
39
- # @param host_name [String] This endpoint allows you to add new tags to a host, optionally specifying where the tags came from.
39
+ # @param host_name [String] Specified host name to add new tags
40
40
  # @param body [HostTags] Update host tags request body.
41
41
  # @param opts [Hash] the optional parameters
42
- # @option opts [String] :source The source of the tags. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
42
+ # @option opts [String] :source Source to add tags. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). Use "user" source for custom-defined tags. If no source is specified, defaults to "user".
43
43
  # @return [Array<(HostTags, Integer, Hash)>] HostTags data, response status code and response headers
44
44
  def create_host_tags_with_http_info(host_name, body, opts = {})
45
45
 
@@ -108,12 +108,12 @@ module DatadogAPIClient::V1
108
108
 
109
109
  # Remove host tags.
110
110
  #
111
- # This endpoint allows you to remove all user-assigned tags
112
- # for a single host.
111
+ # This endpoint allows you to remove all tags
112
+ # for a single host. If no source is specified, only deletes from the source "User".
113
113
  #
114
- # @param host_name [String] This endpoint allows you to remove all user-assigned tags for a single host.
114
+ # @param host_name [String] Specified host name to delete tags
115
115
  # @param opts [Hash] the optional parameters
116
- # @option opts [String] :source The source of the tags (for example chef, puppet). [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
116
+ # @option opts [String] :source Source of the tags to be deleted. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). Use "user" source for custom-defined tags.
117
117
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
118
118
  def delete_host_tags_with_http_info(host_name, opts = {})
119
119
 
@@ -166,7 +166,7 @@ module DatadogAPIClient::V1
166
166
  return data, status_code, headers
167
167
  end
168
168
 
169
- # Get host tags.
169
+ # Get Host Tags.
170
170
  #
171
171
  # @see #get_host_tags_with_http_info
172
172
  def get_host_tags(host_name, opts = {})
@@ -174,13 +174,13 @@ module DatadogAPIClient::V1
174
174
  data
175
175
  end
176
176
 
177
- # Get host tags.
177
+ # Get Host Tags.
178
178
  #
179
179
  # Return the list of tags that apply to a given host.
180
180
  #
181
- # @param host_name [String] When specified, filters list of tags to those tags with the specified source.
181
+ # @param host_name [String] Name of the host to retrieve tags for
182
182
  # @param opts [Hash] the optional parameters
183
- # @option opts [String] :source Source to filter.
183
+ # @option opts [String] :source Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). Use "user" source for custom-defined tags.
184
184
  # @return [Array<(HostTags, Integer, Hash)>] HostTags data, response status code and response headers
185
185
  def get_host_tags_with_http_info(host_name, opts = {})
186
186
 
@@ -233,7 +233,7 @@ module DatadogAPIClient::V1
233
233
  return data, status_code, headers
234
234
  end
235
235
 
236
- # Get Tags.
236
+ # Get All Host Tags.
237
237
  #
238
238
  # @see #list_host_tags_with_http_info
239
239
  def list_host_tags(opts = {})
@@ -241,12 +241,12 @@ module DatadogAPIClient::V1
241
241
  data
242
242
  end
243
243
 
244
- # Get Tags.
244
+ # Get All Host Tags.
245
245
  #
246
- # Return a mapping of tags to hosts for your whole infrastructure.
246
+ # Returns a mapping of tags to hosts. For each tag, the response returns a list of host names that contain this tag. There is a restriction of 10k total host names from the org that can be attached to tags and returned.
247
247
  #
248
248
  # @param opts [Hash] the optional parameters
249
- # @option opts [String] :source When specified, filters host list to those tags with the specified source.
249
+ # @option opts [String] :source Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). Use "user" source for custom-defined tags.
250
250
  # @return [Array<(TagToHosts, Integer, Hash)>] TagToHosts data, response status code and response headers
251
251
  def list_host_tags_with_http_info(opts = {})
252
252
 
@@ -308,10 +308,10 @@ module DatadogAPIClient::V1
308
308
  # This endpoint allows you to update/replace all tags in
309
309
  # an integration source with those supplied in the request.
310
310
  #
311
- # @param host_name [String] This endpoint allows you to update/replace all in an integration source with those supplied in the request.
311
+ # @param host_name [String] Specified host name to change tags
312
312
  # @param body [HostTags] Add tags to host
313
313
  # @param opts [Hash] the optional parameters
314
- # @option opts [String] :source The source of the tags (for example chef, puppet). [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value)
314
+ # @option opts [String] :source Source to update tags. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). Use "user" source for custom-defined tags. If no source specified, defaults to "user".
315
315
  # @return [Array<(HostTags, Integer, Hash)>] HostTags data, response status code and response headers
316
316
  def update_host_tags_with_http_info(host_name, body, opts = {})
317
317
 
@@ -129,6 +129,8 @@ module DatadogAPIClient::V1
129
129
  # cursor := response.metadata.pagination.next_record_id
130
130
  # END
131
131
  # ```
132
+ # The following values have been **deprecated**:
133
+ # `estimated_indexed_spans_usage`, `estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`, `estimated_ingested_spans_percentage`, `llm_observability_usage`, `llm_observability_percentage`.
132
134
  #
133
135
  # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
134
136
  # @param usage_type [HourlyUsageAttributionUsageType] Usage type to retrieve. The following values have been **deprecated**: `estimated_indexed_spans_usage`, `estimated_ingested_spans_usage`.
@@ -152,7 +154,7 @@ module DatadogAPIClient::V1
152
154
  fail ArgumentError, "Missing the required parameter 'usage_type' when calling UsageMeteringAPI.get_hourly_usage_attribution"
153
155
  end
154
156
  # verify enum value
155
- allowable_values = ['api_usage', 'apm_fargate_usage', 'apm_host_usage', 'apm_usm_usage', 'appsec_fargate_usage', 'appsec_usage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'browser_usage', 'ci_pipeline_indexed_spans_usage', 'ci_test_indexed_spans_usage', 'ci_visibility_itr_usage', 'cloud_siem_usage', 'code_security_host_usage', 'container_excl_agent_usage', 'container_usage', 'cspm_containers_usage', 'cspm_hosts_usage', 'custom_event_usage', 'custom_ingested_timeseries_usage', 'custom_timeseries_usage', 'cws_containers_usage', 'cws_fargate_task_usage', 'cws_hosts_usage', 'data_jobs_monitoring_usage', 'data_stream_monitoring_usage', 'dbm_hosts_usage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_spans_usage', 'estimated_ingested_spans_usage', 'fargate_usage', 'functions_usage', 'incident_management_monthly_active_users_usage', 'indexed_spans_usage', 'infra_host_usage', 'ingested_logs_bytes_usage', 'ingested_spans_bytes_usage', 'invocations_usage', 'lambda_traced_invocations_usage', 'llm_observability_usage', 'logs_indexed_15day_usage', 'logs_indexed_180day_usage', 'logs_indexed_1day_usage', 'logs_indexed_30day_usage', 'logs_indexed_360day_usage', 'logs_indexed_3day_usage', 'logs_indexed_45day_usage', 'logs_indexed_60day_usage', 'logs_indexed_7day_usage', 'logs_indexed_90day_usage', 'logs_indexed_custom_retention_usage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'npm_host_usage', 'network_device_wireless_usage', 'obs_pipeline_bytes_usage', 'obs_pipelines_vcpu_usage', 'online_archive_usage', 'product_analytics_session_usage', 'profiled_container_usage', 'profiled_fargate_usage', 'profiled_host_usage', 'published_app', 'rum_browser_mobile_sessions_usage', 'rum_ingested_usage', 'rum_investigate_usage', 'rum_replay_sessions_usage', 'rum_session_replay_add_on_usage', 'sca_fargate_usage', 'sds_scanned_bytes_usage', 'serverless_apps_usage', 'siem_analyzed_logs_add_on_usage', 'siem_ingested_bytes_usage', 'snmp_usage', 'universal_service_monitoring_usage', 'vuln_management_hosts_usage', 'workflow_executions_usage']
157
+ allowable_values = ['api_usage', 'apm_fargate_usage', 'apm_host_usage', 'apm_usm_usage', 'appsec_fargate_usage', 'appsec_usage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'bits_ai_investigations_usage', 'browser_usage', 'ci_pipeline_indexed_spans_usage', 'ci_test_indexed_spans_usage', 'ci_visibility_itr_usage', 'cloud_siem_usage', 'code_security_host_usage', 'container_excl_agent_usage', 'container_usage', 'cspm_containers_usage', 'cspm_hosts_usage', 'custom_event_usage', 'custom_ingested_timeseries_usage', 'custom_timeseries_usage', 'cws_containers_usage', 'cws_fargate_task_usage', 'cws_hosts_usage', 'data_jobs_monitoring_usage', 'data_stream_monitoring_usage', 'dbm_hosts_usage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_spans_usage', 'estimated_ingested_spans_usage', 'fargate_usage', 'flex_stored_logs', 'functions_usage', 'incident_management_monthly_active_users_usage', 'indexed_spans_usage', 'infra_host_usage', 'ingested_logs_bytes_usage', 'ingested_spans_bytes_usage', 'invocations_usage', 'lambda_traced_invocations_usage', 'llm_observability_usage', 'llm_spans_usage', 'logs_indexed_15day_usage', 'logs_indexed_180day_usage', 'logs_indexed_1day_usage', 'logs_indexed_30day_usage', 'logs_indexed_360day_usage', 'logs_indexed_3day_usage', 'logs_indexed_45day_usage', 'logs_indexed_60day_usage', 'logs_indexed_7day_usage', 'logs_indexed_90day_usage', 'logs_indexed_custom_retention_usage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'npm_host_usage', 'network_device_wireless_usage', 'obs_pipeline_bytes_usage', 'obs_pipelines_vcpu_usage', 'online_archive_usage', 'product_analytics_session_usage', 'profiled_container_usage', 'profiled_fargate_usage', 'profiled_host_usage', 'published_app', 'rum_browser_mobile_sessions_usage', 'rum_ingested_usage', 'rum_investigate_usage', 'rum_replay_sessions_usage', 'rum_session_replay_add_on_usage', 'sca_fargate_usage', 'sds_scanned_bytes_usage', 'serverless_apps_usage', 'siem_analyzed_logs_add_on_usage', 'siem_ingested_bytes_usage', 'snmp_usage', 'universal_service_monitoring_usage', 'vuln_management_hosts_usage', 'workflow_executions_usage']
156
158
  if @api_client.config.client_side_validation && !allowable_values.include?(usage_type)
157
159
  fail ArgumentError, "invalid value for \"usage_type\", must be one of #{allowable_values}"
158
160
  end
@@ -455,7 +457,7 @@ module DatadogAPIClient::V1
455
457
  # ```
456
458
  #
457
459
  # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago.
458
- # @param fields [MonthlyUsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types. The following values have been **deprecated**: `estimated_indexed_spans_usage`, `estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`, `estimated_ingested_spans_percentage`.
460
+ # @param fields [MonthlyUsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types. The following values have been **deprecated**: `estimated_indexed_spans_usage`, `estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`, `estimated_ingested_spans_percentage`, `llm_observability_usage`, `llm_observability_percentage`.
459
461
  # @param opts [Hash] the optional parameters
460
462
  # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month.
461
463
  # @option opts [UsageSortDirection] :sort_direction The direction to sort by: `[desc, asc]`.
@@ -478,7 +480,7 @@ module DatadogAPIClient::V1
478
480
  fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_monthly_usage_attribution"
479
481
  end
480
482
  # verify enum value
481
- allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'cloud_siem_usage', 'cloud_siem_percentage', 'code_security_host_usage', 'code_security_host_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_fargate_task_percentage', 'cws_fargate_task_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'data_jobs_monitoring_usage', 'data_jobs_monitoring_percentage', 'data_stream_monitoring_usage', 'data_stream_monitoring_percentage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'incident_management_monthly_active_users_usage', 'incident_management_monthly_active_users_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'lambda_traced_invocations_usage', 'lambda_traced_invocations_percentage', 'llm_observability_usage', 'llm_observability_percentage', 'mobile_app_testing_percentage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'ndm_netflow_percentage', 'network_device_wireless_usage', 'network_device_wireless_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'obs_pipelines_vcpu_usage', 'obs_pipelines_vcpu_percentage', 'online_archive_usage', 'online_archive_percentage', 'product_analytics_session_usage', 'product_analytics_session_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'published_app_usage', 'published_app_percentage', 'serverless_apps_usage', 'serverless_apps_percentage', 'snmp_usage', 'snmp_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', 'ci_test_indexed_spans_usage', 'ci_test_indexed_spans_percentage', 'ingested_logs_bytes_usage', 'ingested_logs_bytes_percentage', 'ci_pipeline_indexed_spans_usage', 'ci_pipeline_indexed_spans_percentage', 'indexed_spans_usage', 'indexed_spans_percentage', 'custom_event_usage', 'custom_event_percentage', 'logs_indexed_custom_retention_usage', 'logs_indexed_custom_retention_percentage', 'logs_indexed_360day_usage', 'logs_indexed_360day_percentage', 'logs_indexed_180day_usage', 'logs_indexed_180day_percentage', 'logs_indexed_90day_usage', 'logs_indexed_90day_percentage', 'logs_indexed_60day_usage', 'logs_indexed_60day_percentage', 'logs_indexed_45day_usage', 'logs_indexed_45day_percentage', 'logs_indexed_30day_usage', 'logs_indexed_30day_percentage', 'logs_indexed_15day_usage', 'logs_indexed_15day_percentage', 'logs_indexed_7day_usage', 'logs_indexed_7day_percentage', 'logs_indexed_3day_usage', 'logs_indexed_3day_percentage', 'logs_indexed_1day_usage', 'logs_indexed_1day_percentage', 'rum_ingested_usage', 'rum_ingested_percentage', 'rum_investigate_usage', 'rum_investigate_percentage', 'rum_replay_sessions_usage', 'rum_replay_sessions_percentage', 'rum_session_replay_add_on_usage', 'rum_session_replay_add_on_percentage', 'rum_browser_mobile_sessions_usage', 'rum_browser_mobile_sessions_percentage', 'ingested_spans_bytes_usage', 'ingested_spans_bytes_percentage', 'siem_analyzed_logs_add_on_usage', 'siem_analyzed_logs_add_on_percentage', 'siem_ingested_bytes_usage', 'siem_ingested_bytes_percentage', 'workflow_executions_usage', 'workflow_executions_percentage', 'sca_fargate_usage', 'sca_fargate_percentage', '*']
483
+ allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'bits_ai_investigations_usage', 'bits_ai_investigations_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'cloud_siem_usage', 'cloud_siem_percentage', 'code_security_host_usage', 'code_security_host_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_fargate_task_percentage', 'cws_fargate_task_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'data_jobs_monitoring_usage', 'data_jobs_monitoring_percentage', 'data_stream_monitoring_usage', 'data_stream_monitoring_percentage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'flex_stored_logs_usage', 'flex_stored_logs_percentage', 'functions_usage', 'functions_percentage', 'incident_management_monthly_active_users_usage', 'incident_management_monthly_active_users_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'lambda_traced_invocations_usage', 'lambda_traced_invocations_percentage', 'llm_observability_usage', 'llm_observability_percentage', 'llm_spans_usage', 'llm_spans_percentage', 'mobile_app_testing_percentage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'ndm_netflow_percentage', 'network_device_wireless_usage', 'network_device_wireless_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'obs_pipelines_vcpu_usage', 'obs_pipelines_vcpu_percentage', 'online_archive_usage', 'online_archive_percentage', 'product_analytics_session_usage', 'product_analytics_session_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'published_app_usage', 'published_app_percentage', 'serverless_apps_usage', 'serverless_apps_percentage', 'snmp_usage', 'snmp_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', 'ci_test_indexed_spans_usage', 'ci_test_indexed_spans_percentage', 'ingested_logs_bytes_usage', 'ingested_logs_bytes_percentage', 'ci_pipeline_indexed_spans_usage', 'ci_pipeline_indexed_spans_percentage', 'indexed_spans_usage', 'indexed_spans_percentage', 'custom_event_usage', 'custom_event_percentage', 'logs_indexed_custom_retention_usage', 'logs_indexed_custom_retention_percentage', 'logs_indexed_360day_usage', 'logs_indexed_360day_percentage', 'logs_indexed_180day_usage', 'logs_indexed_180day_percentage', 'logs_indexed_90day_usage', 'logs_indexed_90day_percentage', 'logs_indexed_60day_usage', 'logs_indexed_60day_percentage', 'logs_indexed_45day_usage', 'logs_indexed_45day_percentage', 'logs_indexed_30day_usage', 'logs_indexed_30day_percentage', 'logs_indexed_15day_usage', 'logs_indexed_15day_percentage', 'logs_indexed_7day_usage', 'logs_indexed_7day_percentage', 'logs_indexed_3day_usage', 'logs_indexed_3day_percentage', 'logs_indexed_1day_usage', 'logs_indexed_1day_percentage', 'rum_ingested_usage', 'rum_ingested_percentage', 'rum_investigate_usage', 'rum_investigate_percentage', 'rum_replay_sessions_usage', 'rum_replay_sessions_percentage', 'rum_session_replay_add_on_usage', 'rum_session_replay_add_on_percentage', 'rum_browser_mobile_sessions_usage', 'rum_browser_mobile_sessions_percentage', 'ingested_spans_bytes_usage', 'ingested_spans_bytes_percentage', 'siem_analyzed_logs_add_on_usage', 'siem_analyzed_logs_add_on_percentage', 'siem_ingested_bytes_usage', 'siem_ingested_bytes_percentage', 'workflow_executions_usage', 'workflow_executions_percentage', 'sca_fargate_usage', 'sca_fargate_percentage', '*']
482
484
  if @api_client.config.client_side_validation && !allowable_values.include?(fields)
483
485
  fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}"
484
486
  end
@@ -486,7 +488,7 @@ module DatadogAPIClient::V1
486
488
  if @api_client.config.client_side_validation && opts[:'sort_direction'] && !allowable_values.include?(opts[:'sort_direction'])
487
489
  fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{allowable_values}"
488
490
  end
489
- allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'cloud_siem_usage', 'cloud_siem_percentage', 'code_security_host_usage', 'code_security_host_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_fargate_task_percentage', 'cws_fargate_task_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'data_jobs_monitoring_usage', 'data_jobs_monitoring_percentage', 'data_stream_monitoring_usage', 'data_stream_monitoring_percentage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'incident_management_monthly_active_users_usage', 'incident_management_monthly_active_users_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'lambda_traced_invocations_usage', 'lambda_traced_invocations_percentage', 'llm_observability_usage', 'llm_observability_percentage', 'mobile_app_testing_percentage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'ndm_netflow_percentage', 'network_device_wireless_usage', 'network_device_wireless_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'obs_pipelines_vcpu_usage', 'obs_pipelines_vcpu_percentage', 'online_archive_usage', 'online_archive_percentage', 'product_analytics_session_usage', 'product_analytics_session_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'published_app_usage', 'published_app_percentage', 'serverless_apps_usage', 'serverless_apps_percentage', 'snmp_usage', 'snmp_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', 'ci_test_indexed_spans_usage', 'ci_test_indexed_spans_percentage', 'ingested_logs_bytes_usage', 'ingested_logs_bytes_percentage', 'ci_pipeline_indexed_spans_usage', 'ci_pipeline_indexed_spans_percentage', 'indexed_spans_usage', 'indexed_spans_percentage', 'custom_event_usage', 'custom_event_percentage', 'logs_indexed_custom_retention_usage', 'logs_indexed_custom_retention_percentage', 'logs_indexed_360day_usage', 'logs_indexed_360day_percentage', 'logs_indexed_180day_usage', 'logs_indexed_180day_percentage', 'logs_indexed_90day_usage', 'logs_indexed_90day_percentage', 'logs_indexed_60day_usage', 'logs_indexed_60day_percentage', 'logs_indexed_45day_usage', 'logs_indexed_45day_percentage', 'logs_indexed_30day_usage', 'logs_indexed_30day_percentage', 'logs_indexed_15day_usage', 'logs_indexed_15day_percentage', 'logs_indexed_7day_usage', 'logs_indexed_7day_percentage', 'logs_indexed_3day_usage', 'logs_indexed_3day_percentage', 'logs_indexed_1day_usage', 'logs_indexed_1day_percentage', 'rum_ingested_usage', 'rum_ingested_percentage', 'rum_investigate_usage', 'rum_investigate_percentage', 'rum_replay_sessions_usage', 'rum_replay_sessions_percentage', 'rum_session_replay_add_on_usage', 'rum_session_replay_add_on_percentage', 'rum_browser_mobile_sessions_usage', 'rum_browser_mobile_sessions_percentage', 'ingested_spans_bytes_usage', 'ingested_spans_bytes_percentage', 'siem_analyzed_logs_add_on_usage', 'siem_analyzed_logs_add_on_percentage', 'siem_ingested_bytes_usage', 'siem_ingested_bytes_percentage', 'workflow_executions_usage', 'workflow_executions_percentage', 'sca_fargate_usage', 'sca_fargate_percentage', '*']
491
+ allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'bits_ai_investigations_usage', 'bits_ai_investigations_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'cloud_siem_usage', 'cloud_siem_percentage', 'code_security_host_usage', 'code_security_host_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_fargate_task_percentage', 'cws_fargate_task_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'data_jobs_monitoring_usage', 'data_jobs_monitoring_percentage', 'data_stream_monitoring_usage', 'data_stream_monitoring_percentage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'flex_stored_logs_usage', 'flex_stored_logs_percentage', 'functions_usage', 'functions_percentage', 'incident_management_monthly_active_users_usage', 'incident_management_monthly_active_users_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'lambda_traced_invocations_usage', 'lambda_traced_invocations_percentage', 'llm_observability_usage', 'llm_observability_percentage', 'llm_spans_usage', 'llm_spans_percentage', 'mobile_app_testing_percentage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'ndm_netflow_percentage', 'network_device_wireless_usage', 'network_device_wireless_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'obs_pipelines_vcpu_usage', 'obs_pipelines_vcpu_percentage', 'online_archive_usage', 'online_archive_percentage', 'product_analytics_session_usage', 'product_analytics_session_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'published_app_usage', 'published_app_percentage', 'serverless_apps_usage', 'serverless_apps_percentage', 'snmp_usage', 'snmp_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', 'ci_test_indexed_spans_usage', 'ci_test_indexed_spans_percentage', 'ingested_logs_bytes_usage', 'ingested_logs_bytes_percentage', 'ci_pipeline_indexed_spans_usage', 'ci_pipeline_indexed_spans_percentage', 'indexed_spans_usage', 'indexed_spans_percentage', 'custom_event_usage', 'custom_event_percentage', 'logs_indexed_custom_retention_usage', 'logs_indexed_custom_retention_percentage', 'logs_indexed_360day_usage', 'logs_indexed_360day_percentage', 'logs_indexed_180day_usage', 'logs_indexed_180day_percentage', 'logs_indexed_90day_usage', 'logs_indexed_90day_percentage', 'logs_indexed_60day_usage', 'logs_indexed_60day_percentage', 'logs_indexed_45day_usage', 'logs_indexed_45day_percentage', 'logs_indexed_30day_usage', 'logs_indexed_30day_percentage', 'logs_indexed_15day_usage', 'logs_indexed_15day_percentage', 'logs_indexed_7day_usage', 'logs_indexed_7day_percentage', 'logs_indexed_3day_usage', 'logs_indexed_3day_percentage', 'logs_indexed_1day_usage', 'logs_indexed_1day_percentage', 'rum_ingested_usage', 'rum_ingested_percentage', 'rum_investigate_usage', 'rum_investigate_percentage', 'rum_replay_sessions_usage', 'rum_replay_sessions_percentage', 'rum_session_replay_add_on_usage', 'rum_session_replay_add_on_percentage', 'rum_browser_mobile_sessions_usage', 'rum_browser_mobile_sessions_percentage', 'ingested_spans_bytes_usage', 'ingested_spans_bytes_percentage', 'siem_analyzed_logs_add_on_usage', 'siem_analyzed_logs_add_on_percentage', 'siem_ingested_bytes_usage', 'siem_ingested_bytes_percentage', 'workflow_executions_usage', 'workflow_executions_percentage', 'sca_fargate_usage', 'sca_fargate_percentage', '*']
490
492
  if @api_client.config.client_side_validation && opts[:'sort_name'] && !allowable_values.include?(opts[:'sort_name'])
491
493
  fail ArgumentError, "invalid value for \"sort_name\", must be one of #{allowable_values}"
492
494
  end
@@ -0,0 +1,216 @@
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 bar chart visualization displays categorical data using vertical bars, allowing you to compare values across different groups.
21
+ class BarChartWidgetDefinition
22
+ include BaseGenericModel
23
+
24
+ # List of custom links.
25
+ attr_accessor :custom_links
26
+
27
+ # List of bar chart widget requests.
28
+ attr_reader :requests
29
+
30
+ # Style customization for a bar chart widget.
31
+ attr_accessor :style
32
+
33
+ # Time setting for the widget.
34
+ attr_accessor :time
35
+
36
+ # Title of your widget.
37
+ attr_accessor :title
38
+
39
+ # How to align the text on the widget.
40
+ attr_accessor :title_align
41
+
42
+ # Size of the title.
43
+ attr_accessor :title_size
44
+
45
+ # Type of the bar chart widget.
46
+ attr_reader :type
47
+
48
+ attr_accessor :additional_properties
49
+
50
+ # Attribute mapping from ruby-style variable name to JSON key.
51
+ # @!visibility private
52
+ def self.attribute_map
53
+ {
54
+ :'custom_links' => :'custom_links',
55
+ :'requests' => :'requests',
56
+ :'style' => :'style',
57
+ :'time' => :'time',
58
+ :'title' => :'title',
59
+ :'title_align' => :'title_align',
60
+ :'title_size' => :'title_size',
61
+ :'type' => :'type'
62
+ }
63
+ end
64
+
65
+ # Attribute type mapping.
66
+ # @!visibility private
67
+ def self.openapi_types
68
+ {
69
+ :'custom_links' => :'Array<WidgetCustomLink>',
70
+ :'requests' => :'Array<BarChartWidgetRequest>',
71
+ :'style' => :'BarChartWidgetStyle',
72
+ :'time' => :'WidgetTime',
73
+ :'title' => :'String',
74
+ :'title_align' => :'WidgetTextAlign',
75
+ :'title_size' => :'String',
76
+ :'type' => :'BarChartWidgetDefinitionType'
77
+ }
78
+ end
79
+
80
+ # Initializes the object
81
+ # @param attributes [Hash] Model attributes in the form of hash
82
+ # @!visibility private
83
+ def initialize(attributes = {})
84
+ if (!attributes.is_a?(Hash))
85
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::BarChartWidgetDefinition` initialize method"
86
+ end
87
+
88
+ self.additional_properties = {}
89
+ # check to see if the attribute exists and convert string to symbol for hash key
90
+ attributes = attributes.each_with_object({}) { |(k, v), h|
91
+ if (!self.class.attribute_map.key?(k.to_sym))
92
+ self.additional_properties[k.to_sym] = v
93
+ else
94
+ h[k.to_sym] = v
95
+ end
96
+ }
97
+
98
+ if attributes.key?(:'custom_links')
99
+ if (value = attributes[:'custom_links']).is_a?(Array)
100
+ self.custom_links = value
101
+ end
102
+ end
103
+
104
+ if attributes.key?(:'requests')
105
+ if (value = attributes[:'requests']).is_a?(Array)
106
+ self.requests = value
107
+ end
108
+ end
109
+
110
+ if attributes.key?(:'style')
111
+ self.style = attributes[:'style']
112
+ end
113
+
114
+ if attributes.key?(:'time')
115
+ self.time = attributes[:'time']
116
+ end
117
+
118
+ if attributes.key?(:'title')
119
+ self.title = attributes[:'title']
120
+ end
121
+
122
+ if attributes.key?(:'title_align')
123
+ self.title_align = attributes[:'title_align']
124
+ end
125
+
126
+ if attributes.key?(:'title_size')
127
+ self.title_size = attributes[:'title_size']
128
+ end
129
+
130
+ if attributes.key?(:'type')
131
+ self.type = attributes[:'type']
132
+ end
133
+ end
134
+
135
+ # Check to see if the all the properties in the model are valid
136
+ # @return true if the model is valid
137
+ # @!visibility private
138
+ def valid?
139
+ return false if @requests.nil?
140
+ return false if @requests.length > 1
141
+ return false if @requests.length < 1
142
+ return false if @type.nil?
143
+ true
144
+ end
145
+
146
+ # Custom attribute writer method with validation
147
+ # @param requests [Object] Object to be assigned
148
+ # @!visibility private
149
+ def requests=(requests)
150
+ if requests.nil?
151
+ fail ArgumentError, 'invalid value for "requests", requests cannot be nil.'
152
+ end
153
+ if requests.length > 1
154
+ fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.'
155
+ end
156
+ if requests.length < 1
157
+ fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.'
158
+ end
159
+ @requests = requests
160
+ end
161
+
162
+ # Custom attribute writer method with validation
163
+ # @param type [Object] Object to be assigned
164
+ # @!visibility private
165
+ def type=(type)
166
+ if type.nil?
167
+ fail ArgumentError, 'invalid value for "type", type cannot be nil.'
168
+ end
169
+ @type = type
170
+ end
171
+
172
+ # Returns the object in the form of hash, with additionalProperties support.
173
+ # @return [Hash] Returns the object in the form of hash
174
+ # @!visibility private
175
+ def to_hash
176
+ hash = {}
177
+ self.class.attribute_map.each_pair do |attr, param|
178
+ value = self.send(attr)
179
+ if value.nil?
180
+ is_nullable = self.class.openapi_nullable.include?(attr)
181
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
182
+ end
183
+
184
+ hash[param] = _to_hash(value)
185
+ end
186
+ self.additional_properties.each_pair do |attr, value|
187
+ hash[attr] = value
188
+ end
189
+ hash
190
+ end
191
+
192
+ # Checks equality by comparing each attribute.
193
+ # @param o [Object] Object to be compared
194
+ # @!visibility private
195
+ def ==(o)
196
+ return true if self.equal?(o)
197
+ self.class == o.class &&
198
+ custom_links == o.custom_links &&
199
+ requests == o.requests &&
200
+ style == o.style &&
201
+ time == o.time &&
202
+ title == o.title &&
203
+ title_align == o.title_align &&
204
+ title_size == o.title_size &&
205
+ type == o.type &&
206
+ additional_properties == o.additional_properties
207
+ end
208
+
209
+ # Calculates hash code according to all attributes.
210
+ # @return [Integer] Hash code
211
+ # @!visibility private
212
+ def hash
213
+ [custom_links, requests, style, time, title, title_align, title_size, type, additional_properties].hash
214
+ end
215
+ end
216
+ 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
+ # Type of the bar chart widget.
21
+ class BarChartWidgetDefinitionType
22
+ include BaseEnumModel
23
+
24
+ BAR_CHART = "bar_chart".freeze
25
+ end
26
+ end
@@ -0,0 +1,63 @@
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
+ # Bar chart widget display options.
21
+ module BarChartWidgetDisplay
22
+ class << self
23
+ include BaseOneOfModel
24
+ include BaseOneOfModelNoDiscriminator
25
+
26
+ # List of class defined in oneOf (OpenAPI v3)
27
+ def openapi_one_of
28
+ [
29
+ :'BarChartWidgetStacked',
30
+ :'BarChartWidgetFlat'
31
+ ]
32
+ end
33
+ # Builds the object
34
+ # @param data [Mixed] Data to be matched against the list of oneOf items
35
+ # @return [Object] Returns the model or the data itself
36
+ def build(data)
37
+ # Go through the list of oneOf items and attempt to identify the appropriate one.
38
+ # Note:
39
+ # - We do not attempt to check whether exactly one item matches.
40
+ # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
41
+ # due to the way the deserialization is made in the base_object template (it just casts without verifying).
42
+ # - TODO: scalar values are de facto behaving as if they were nullable.
43
+ # - TODO: logging when debugging is set.
44
+ openapi_one_of.each do |klass|
45
+ begin
46
+ next if klass == :AnyType # "nullable: true"
47
+ typed_data = find_and_cast_into_type(klass, data)
48
+ next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
49
+ return typed_data if typed_data
50
+ rescue # rescue all errors so we keep iterating even if the current item lookup raises
51
+ end
52
+ end
53
+
54
+ if openapi_one_of.include?(:AnyType)
55
+ data
56
+ else
57
+ self._unparsed = true
58
+ DatadogAPIClient::UnparsedObject.new(data)
59
+ end
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,123 @@
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
+ # Bar chart widget flat display.
21
+ class BarChartWidgetFlat
22
+ include BaseGenericModel
23
+
24
+ # Bar chart widget flat display type.
25
+ attr_reader :type
26
+
27
+ attr_accessor :additional_properties
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ # @!visibility private
31
+ def self.attribute_map
32
+ {
33
+ :'type' => :'type'
34
+ }
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ # @!visibility private
39
+ def self.openapi_types
40
+ {
41
+ :'type' => :'BarChartWidgetFlatType'
42
+ }
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param attributes [Hash] Model attributes in the form of hash
47
+ # @!visibility private
48
+ def initialize(attributes = {})
49
+ if (!attributes.is_a?(Hash))
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::BarChartWidgetFlat` initialize method"
51
+ end
52
+
53
+ self.additional_properties = {}
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h|
56
+ if (!self.class.attribute_map.key?(k.to_sym))
57
+ self.additional_properties[k.to_sym] = v
58
+ else
59
+ h[k.to_sym] = v
60
+ end
61
+ }
62
+
63
+ if attributes.key?(:'type')
64
+ self.type = attributes[:'type']
65
+ end
66
+ end
67
+
68
+ # Check to see if the all the properties in the model are valid
69
+ # @return true if the model is valid
70
+ # @!visibility private
71
+ def valid?
72
+ return false if @type.nil?
73
+ true
74
+ end
75
+
76
+ # Custom attribute writer method with validation
77
+ # @param type [Object] Object to be assigned
78
+ # @!visibility private
79
+ def type=(type)
80
+ if type.nil?
81
+ fail ArgumentError, 'invalid value for "type", type cannot be nil.'
82
+ end
83
+ @type = type
84
+ end
85
+
86
+ # Returns the object in the form of hash, with additionalProperties support.
87
+ # @return [Hash] Returns the object in the form of hash
88
+ # @!visibility private
89
+ def to_hash
90
+ hash = {}
91
+ self.class.attribute_map.each_pair do |attr, param|
92
+ value = self.send(attr)
93
+ if value.nil?
94
+ is_nullable = self.class.openapi_nullable.include?(attr)
95
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
96
+ end
97
+
98
+ hash[param] = _to_hash(value)
99
+ end
100
+ self.additional_properties.each_pair do |attr, value|
101
+ hash[attr] = value
102
+ end
103
+ hash
104
+ end
105
+
106
+ # Checks equality by comparing each attribute.
107
+ # @param o [Object] Object to be compared
108
+ # @!visibility private
109
+ def ==(o)
110
+ return true if self.equal?(o)
111
+ self.class == o.class &&
112
+ type == o.type &&
113
+ additional_properties == o.additional_properties
114
+ end
115
+
116
+ # Calculates hash code according to all attributes.
117
+ # @return [Integer] Hash code
118
+ # @!visibility private
119
+ def hash
120
+ [type, additional_properties].hash
121
+ end
122
+ end
123
+ 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
+ # Bar chart widget flat display type.
21
+ class BarChartWidgetFlatType
22
+ include BaseEnumModel
23
+
24
+ FLAT = "flat".freeze
25
+ end
26
+ end