datadog_api_client 2.16.0 → 2.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (292) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +799 -16
  4. data/.generator/schemas/v2/openapi.yaml +2732 -409
  5. data/.generator/src/generator/cli.py +5 -0
  6. data/.generator/src/generator/formatter.py +4 -0
  7. data/.generator/src/generator/openapi.py +2 -0
  8. data/.generator/src/generator/templates/api_client.j2 +3 -0
  9. data/.generator/src/generator/templates/datadog_api_client.j2 +19 -0
  10. data/.generator/src/generator/templates/inflector.j2 +1 -1
  11. data/.generator/src/generator/templates/model_base.j2 +4 -0
  12. data/.pre-commit-config.yaml +1 -1
  13. data/CHANGELOG.md +54 -0
  14. data/Gemfile +1 -0
  15. data/LICENSE-3rdparty.csv +1 -0
  16. data/datadog_api_client.gemspec +2 -0
  17. data/examples/v1/aws-integration/CreateAWSAccount.rb +2 -2
  18. data/examples/v1/aws-integration/CreateAWSEventBridgeSource.rb +12 -0
  19. data/examples/v1/aws-integration/CreateAWSTagFilter.rb +1 -1
  20. data/examples/v1/aws-integration/CreateNewAWSExternalID.rb +1 -1
  21. data/examples/v1/aws-integration/DeleteAWSAccount.rb +1 -1
  22. data/examples/v1/aws-integration/DeleteAWSEventBridgeSource.rb +11 -0
  23. data/examples/v1/aws-integration/ListAWSEventBridgeSources.rb +5 -0
  24. data/examples/v1/aws-integration/UpdateAWSAccount.rb +6 -6
  25. data/examples/v1/azure-integration/CreateAzureIntegration.rb +2 -0
  26. data/examples/v1/azure-integration/DeleteAzureIntegration.rb +2 -0
  27. data/examples/v1/azure-integration/UpdateAzureHostFilters.rb +2 -0
  28. data/examples/v1/azure-integration/UpdateAzureIntegration.rb +2 -0
  29. data/examples/v1/dashboards/CreateDashboard_1213075383.rb +7 -0
  30. data/examples/v1/dashboards/CreateDashboard_1284514532.rb +3 -0
  31. data/examples/v1/monitors/CreateMonitor_1539578087.rb +0 -1
  32. data/examples/v1/synthetics/PatchTest.rb +22 -0
  33. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +3 -0
  34. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +3 -0
  35. data/examples/v2/confluent-cloud/DeleteConfluentAccount.rb +4 -1
  36. data/examples/v2/confluent-cloud/DeleteConfluentResource.rb +5 -0
  37. data/examples/v2/container-images/ListContainerImages.rb +0 -3
  38. data/examples/v2/container-images/ListContainerImages_3088586393.rb +0 -3
  39. data/examples/v2/container-images/ListContainerImages_3974828736.rb +0 -3
  40. data/examples/v2/containers/ListContainers.rb +5 -0
  41. data/examples/v2/containers/ListContainers_2175733917.rb +8 -0
  42. data/examples/v2/containers/ListContainers_931009654.rb +8 -0
  43. data/examples/v2/dora-metrics/CreateDORADeployment.rb +23 -0
  44. data/examples/v2/dora-metrics/CreateDORAIncident.rb +25 -0
  45. data/examples/v2/downtimes/ListMonitorDowntimes.rb +1 -1
  46. data/examples/v2/events/ListEvents.rb +0 -3
  47. data/examples/v2/events/ListEvents_1527584014.rb +0 -3
  48. data/examples/v2/events/ListEvents_2663715109.rb +0 -3
  49. data/examples/v2/events/SearchEvents.rb +0 -3
  50. data/examples/v2/events/SearchEvents_3856995058.rb +0 -3
  51. data/examples/v2/key-management/CreateCurrentUserApplicationKey.rb +2 -7
  52. data/examples/v2/key-management/DeleteApplicationKey.rb +4 -1
  53. data/examples/v2/key-management/DeleteCurrentUserApplicationKey.rb +4 -1
  54. data/examples/v2/okta-integration/CreateOktaAccount.rb +19 -0
  55. data/examples/v2/okta-integration/DeleteOktaAccount.rb +5 -0
  56. data/examples/v2/okta-integration/GetOktaAccount.rb +8 -0
  57. data/examples/v2/okta-integration/ListOktaAccounts.rb +5 -0
  58. data/examples/v2/okta-integration/UpdateOktaAccount.rb +20 -0
  59. data/examples/v2/powerpack/CreatePowerpack.rb +1 -0
  60. data/examples/v2/powerpack/UpdatePowerpack.rb +1 -0
  61. data/examples/v2/security-monitoring/MuteFindings.rb +29 -0
  62. data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +1 -1
  63. data/examples/v2/service-scorecards/CreateScorecardOutcomesBatch.rb +27 -0
  64. data/examples/v2/service-scorecards/CreateScorecardRule.rb +19 -0
  65. data/examples/v2/service-scorecards/DeleteScorecardRule.rb +11 -0
  66. data/examples/v2/service-scorecards/ListScorecardOutcomes.rb +8 -0
  67. data/examples/v2/service-scorecards/ListScorecardOutcomes_2663454275.rb +13 -0
  68. data/examples/v2/service-scorecards/ListScorecardRules.rb +8 -0
  69. data/examples/v2/service-scorecards/ListScorecardRules_4057666343.rb +13 -0
  70. data/examples/v2/synthetics/SetOnDemandConcurrencyCap.rb +3 -1
  71. data/examples/v2/teams/ListTeams_3429963470.rb +12 -0
  72. data/examples/v2/usage-metering/GetActiveBillingDimensions.rb +8 -0
  73. data/examples/v2/usage-metering/GetMonthlyCostAttribution.rb +8 -0
  74. data/examples/v2/usage-metering/GetProjectedCost.rb +8 -0
  75. data/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.rb +4 -1
  76. data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb +4 -1
  77. data/examples/v2/usage-metering/GetUsageObservabilityPipelines.rb +4 -1
  78. data/examples/v2/users/GetUser.rb +5 -2
  79. data/lib/datadog_api_client/api_client.rb +3 -0
  80. data/lib/datadog_api_client/configuration.rb +11 -4
  81. data/lib/datadog_api_client/inflector.rb +137 -9
  82. data/lib/datadog_api_client/v1/api/aws_integration_api.rb +194 -0
  83. data/lib/datadog_api_client/v1/api/hosts_api.rb +1 -1
  84. data/lib/datadog_api_client/v1/api/monitors_api.rb +5 -1
  85. data/lib/datadog_api_client/v1/api/synthetics_api.rb +73 -1
  86. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +3 -3
  87. data/lib/datadog_api_client/v1/model_base.rb +4 -0
  88. data/lib/datadog_api_client/v1/models/aws_account.rb +2 -1
  89. data/lib/datadog_api_client/v1/models/aws_event_bridge_account_configuration.rb +105 -0
  90. data/lib/datadog_api_client/v1/models/aws_event_bridge_create_request.rb +112 -0
  91. data/lib/datadog_api_client/v1/models/aws_event_bridge_create_response.rb +110 -0
  92. data/lib/datadog_api_client/v1/models/aws_event_bridge_create_status.rb +26 -0
  93. data/lib/datadog_api_client/v1/models/aws_event_bridge_delete_request.rb +100 -0
  94. data/lib/datadog_api_client/v1/models/aws_event_bridge_delete_response.rb +80 -0
  95. data/lib/datadog_api_client/v1/models/aws_event_bridge_delete_status.rb +26 -0
  96. data/lib/datadog_api_client/v1/models/aws_event_bridge_list_response.rb +92 -0
  97. data/lib/datadog_api_client/v1/models/aws_event_bridge_source.rb +90 -0
  98. data/lib/datadog_api_client/v1/models/azure_account.rb +24 -2
  99. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +21 -0
  100. data/lib/datadog_api_client/v1/models/monitor_options.rb +1 -1
  101. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +42 -0
  102. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +421 -1
  103. data/lib/datadog_api_client/v1/models/synthetics_patch_test_body.rb +82 -0
  104. data/lib/datadog_api_client/v1/models/synthetics_patch_test_operation.rb +100 -0
  105. data/lib/datadog_api_client/v1/models/synthetics_patch_test_operation_name.rb +31 -0
  106. data/lib/datadog_api_client/v1/models/toplist_widget_definition.rb +11 -1
  107. data/lib/datadog_api_client/v1/models/toplist_widget_display.rb +63 -0
  108. data/lib/datadog_api_client/v1/models/toplist_widget_flat.rb +98 -0
  109. data/lib/datadog_api_client/v1/models/toplist_widget_flat_type.rb +26 -0
  110. data/lib/datadog_api_client/v1/models/toplist_widget_legend.rb +28 -0
  111. data/lib/datadog_api_client/v1/models/toplist_widget_scaling.rb +27 -0
  112. data/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb +119 -0
  113. data/lib/datadog_api_client/v1/models/toplist_widget_stacked_type.rb +26 -0
  114. data/lib/datadog_api_client/v1/models/toplist_widget_style.rb +90 -0
  115. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +11 -1
  116. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +31 -1
  117. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +31 -1
  118. data/lib/datadog_api_client/v1/models/widget_live_span.rb +2 -0
  119. data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +6 -0
  120. data/lib/datadog_api_client/v2/api/container_images_api.rb +0 -6
  121. data/lib/datadog_api_client/v2/api/containers_api.rb +123 -0
  122. data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +181 -0
  123. data/lib/datadog_api_client/v2/api/events_api.rb +0 -12
  124. data/lib/datadog_api_client/v2/api/key_management_api.rb +8 -0
  125. data/lib/datadog_api_client/v2/api/metrics_api.rb +6 -3
  126. data/lib/datadog_api_client/v2/api/okta_integration_api.rb +355 -0
  127. data/lib/datadog_api_client/v2/api/roles_api.rb +2 -0
  128. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +66 -72
  129. data/lib/datadog_api_client/v2/api/service_scorecards_api.rb +457 -0
  130. data/lib/datadog_api_client/v2/api/teams_api.rb +2 -0
  131. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +241 -0
  132. data/lib/datadog_api_client/v2/model_base.rb +4 -0
  133. data/lib/datadog_api_client/v2/models/active_billing_dimensions_attributes.rb +92 -0
  134. data/lib/datadog_api_client/v2/models/active_billing_dimensions_body.rb +100 -0
  135. data/lib/datadog_api_client/v2/models/active_billing_dimensions_response.rb +80 -0
  136. data/lib/datadog_api_client/v2/models/active_billing_dimensions_type.rb +26 -0
  137. data/lib/datadog_api_client/v2/models/api_keys_response.rb +14 -4
  138. data/lib/datadog_api_client/v2/models/api_keys_response_meta.rb +90 -0
  139. data/lib/datadog_api_client/v2/models/api_keys_response_meta_page.rb +80 -0
  140. data/lib/datadog_api_client/v2/models/application_key_response_meta.rb +90 -0
  141. data/lib/datadog_api_client/v2/models/application_key_response_meta_page.rb +80 -0
  142. data/lib/datadog_api_client/v2/models/bulk_mute_findings_request.rb +98 -0
  143. data/lib/datadog_api_client/v2/models/{mute_finding_request_attributes.rb → bulk_mute_findings_request_attributes.rb} +5 -5
  144. data/lib/datadog_api_client/v2/models/bulk_mute_findings_request_data.rb +161 -0
  145. data/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta.rb +82 -0
  146. data/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta_findings.rb +80 -0
  147. data/lib/datadog_api_client/v2/models/{mute_finding_request_properties.rb → bulk_mute_findings_request_properties.rb} +6 -6
  148. data/lib/datadog_api_client/v2/models/bulk_mute_findings_response.rb +98 -0
  149. data/lib/datadog_api_client/v2/models/bulk_mute_findings_response_data.rb +90 -0
  150. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +13 -1
  151. data/lib/datadog_api_client/v2/models/{mute_finding_response_data.rb → container.rb} +9 -9
  152. data/lib/datadog_api_client/v2/models/container_attributes.rb +183 -0
  153. data/lib/datadog_api_client/v2/models/container_group.rb +110 -0
  154. data/lib/datadog_api_client/v2/models/container_group_attributes.rb +90 -0
  155. data/lib/datadog_api_client/v2/models/container_group_relationships.rb +80 -0
  156. data/lib/datadog_api_client/v2/models/container_group_relationships_link.rb +92 -0
  157. data/lib/datadog_api_client/v2/models/container_group_relationships_links.rb +80 -0
  158. data/lib/datadog_api_client/v2/models/container_group_type.rb +26 -0
  159. data/lib/datadog_api_client/v2/models/container_item.rb +63 -0
  160. data/lib/datadog_api_client/v2/models/container_meta.rb +80 -0
  161. data/lib/datadog_api_client/v2/models/container_meta_page.rb +160 -0
  162. data/lib/datadog_api_client/v2/models/container_meta_page_type.rb +26 -0
  163. data/lib/datadog_api_client/v2/models/container_type.rb +26 -0
  164. data/lib/datadog_api_client/v2/models/containers_response.rb +102 -0
  165. data/lib/datadog_api_client/v2/models/containers_response_links.rb +130 -0
  166. data/lib/datadog_api_client/v2/models/cost_attribution_aggregates_body.rb +100 -0
  167. data/lib/datadog_api_client/v2/models/cost_attribution_type.rb +26 -0
  168. data/lib/datadog_api_client/v2/models/create_rule_request.rb +80 -0
  169. data/lib/datadog_api_client/v2/models/create_rule_request_data.rb +90 -0
  170. data/lib/datadog_api_client/v2/models/create_rule_response.rb +80 -0
  171. data/lib/datadog_api_client/v2/models/create_rule_response_data.rb +110 -0
  172. data/lib/datadog_api_client/v2/models/dora_deployment_request.rb +98 -0
  173. data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +170 -0
  174. data/lib/datadog_api_client/v2/models/dora_deployment_request_data.rb +98 -0
  175. data/lib/datadog_api_client/v2/models/dora_deployment_response.rb +98 -0
  176. data/lib/datadog_api_client/v2/models/dora_deployment_response_data.rb +108 -0
  177. data/lib/datadog_api_client/v2/models/dora_deployment_type.rb +26 -0
  178. data/lib/datadog_api_client/v2/models/dora_git_info.rb +125 -0
  179. data/lib/datadog_api_client/v2/models/{mute_finding_response.rb → dora_incident_request.rb} +6 -6
  180. data/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +179 -0
  181. data/lib/datadog_api_client/v2/models/dora_incident_request_data.rb +98 -0
  182. data/lib/datadog_api_client/v2/models/dora_incident_response.rb +98 -0
  183. data/lib/datadog_api_client/v2/models/dora_incident_response_data.rb +108 -0
  184. data/lib/datadog_api_client/v2/models/dora_incident_type.rb +26 -0
  185. data/lib/datadog_api_client/v2/models/full_api_key_attributes.rb +24 -4
  186. data/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb +14 -4
  187. data/lib/datadog_api_client/v2/models/incident_create_relationships.rb +9 -19
  188. data/lib/datadog_api_client/v2/models/incident_impacts_type.rb +26 -0
  189. data/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb +21 -1
  190. data/lib/datadog_api_client/v2/models/incident_integration_metadata_response_data.rb +11 -1
  191. data/lib/datadog_api_client/v2/models/incident_integration_relationships.rb +90 -0
  192. data/lib/datadog_api_client/v2/models/incident_non_datadog_creator.rb +90 -0
  193. data/lib/datadog_api_client/v2/models/incident_responders_type.rb +26 -0
  194. data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +69 -4
  195. data/lib/datadog_api_client/v2/models/incident_response_relationships.rb +42 -4
  196. data/lib/datadog_api_client/v2/models/incident_severity.rb +31 -0
  197. data/lib/datadog_api_client/v2/models/incident_todo_attributes.rb +24 -4
  198. data/lib/datadog_api_client/v2/models/incident_todo_relationships.rb +90 -0
  199. data/lib/datadog_api_client/v2/models/incident_todo_response_data.rb +11 -1
  200. data/lib/datadog_api_client/v2/models/incident_update_relationships.rb +8 -0
  201. data/lib/datadog_api_client/v2/models/incident_user_defined_field_type.rb +26 -0
  202. data/lib/datadog_api_client/v2/models/list_application_keys_response.rb +14 -4
  203. data/lib/datadog_api_client/v2/models/list_rules_response.rb +92 -0
  204. data/lib/datadog_api_client/v2/models/list_rules_response_data_item.rb +110 -0
  205. data/lib/datadog_api_client/v2/models/list_rules_response_links.rb +80 -0
  206. data/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_attributes.rb +13 -1
  207. data/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status_attributes.rb +12 -1
  208. data/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb +13 -1
  209. data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +13 -1
  210. data/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb +13 -1
  211. data/lib/datadog_api_client/v2/models/monthly_cost_attribution_attributes.rb +151 -0
  212. data/lib/datadog_api_client/v2/models/monthly_cost_attribution_body.rb +100 -0
  213. data/lib/datadog_api_client/v2/models/monthly_cost_attribution_meta.rb +92 -0
  214. data/lib/datadog_api_client/v2/models/monthly_cost_attribution_pagination.rb +88 -0
  215. data/lib/datadog_api_client/v2/models/monthly_cost_attribution_response.rb +92 -0
  216. data/lib/datadog_api_client/v2/models/okta_account.rb +129 -0
  217. data/lib/datadog_api_client/v2/models/okta_account_attributes.rb +170 -0
  218. data/lib/datadog_api_client/v2/models/{mute_finding_request.rb → okta_account_request.rb} +6 -6
  219. data/lib/datadog_api_client/v2/models/okta_account_response.rb +80 -0
  220. data/lib/datadog_api_client/v2/models/{mute_finding_request_data.rb → okta_account_response_data.rb} +9 -9
  221. data/lib/datadog_api_client/v2/models/okta_account_type.rb +26 -0
  222. data/lib/datadog_api_client/v2/models/okta_account_update_request.rb +98 -0
  223. data/lib/datadog_api_client/v2/models/okta_account_update_request_attributes.rb +149 -0
  224. data/lib/datadog_api_client/v2/models/okta_account_update_request_data.rb +90 -0
  225. data/lib/datadog_api_client/v2/models/okta_accounts_response.rb +82 -0
  226. data/lib/datadog_api_client/v2/models/outcome_type.rb +26 -0
  227. data/lib/datadog_api_client/v2/models/outcomes_batch_attributes.rb +82 -0
  228. data/lib/datadog_api_client/v2/models/outcomes_batch_request.rb +80 -0
  229. data/lib/datadog_api_client/v2/models/outcomes_batch_request_data.rb +90 -0
  230. data/lib/datadog_api_client/v2/models/outcomes_batch_request_item.rb +150 -0
  231. data/lib/datadog_api_client/v2/models/outcomes_batch_response.rb +121 -0
  232. data/lib/datadog_api_client/v2/models/outcomes_batch_response_attributes.rb +120 -0
  233. data/lib/datadog_api_client/v2/models/outcomes_batch_response_meta.rb +90 -0
  234. data/lib/datadog_api_client/v2/models/outcomes_batch_type.rb +26 -0
  235. data/lib/datadog_api_client/v2/models/outcomes_response.rb +104 -0
  236. data/lib/datadog_api_client/v2/models/outcomes_response_data_item.rb +110 -0
  237. data/lib/datadog_api_client/v2/models/outcomes_response_included_item.rb +100 -0
  238. data/lib/datadog_api_client/v2/models/outcomes_response_included_rule_attributes.rb +90 -0
  239. data/lib/datadog_api_client/v2/models/outcomes_response_links.rb +80 -0
  240. data/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb +24 -4
  241. data/lib/datadog_api_client/v2/models/powerpack_group_widget.rb +14 -4
  242. data/lib/datadog_api_client/v2/models/powerpack_relationships.rb +2 -2
  243. data/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb +8 -0
  244. data/lib/datadog_api_client/v2/models/projected_cost.rb +100 -0
  245. data/lib/datadog_api_client/v2/models/projected_cost_attributes.rb +132 -0
  246. data/lib/datadog_api_client/v2/models/projected_cost_response.rb +82 -0
  247. data/lib/datadog_api_client/v2/models/projected_cost_type.rb +26 -0
  248. data/lib/datadog_api_client/v2/models/relationship_to_incident_impact_data.rb +119 -0
  249. data/lib/datadog_api_client/v2/models/relationship_to_incident_impacts.rb +100 -0
  250. data/lib/datadog_api_client/v2/models/relationship_to_incident_responder_data.rb +119 -0
  251. data/lib/datadog_api_client/v2/models/relationship_to_incident_responders.rb +100 -0
  252. data/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_field_data.rb +119 -0
  253. data/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_fields.rb +100 -0
  254. data/lib/datadog_api_client/v2/models/relationship_to_outcome.rb +80 -0
  255. data/lib/datadog_api_client/v2/models/relationship_to_outcome_data.rb +90 -0
  256. data/lib/datadog_api_client/v2/models/relationship_to_rule.rb +80 -0
  257. data/lib/datadog_api_client/v2/models/relationship_to_rule_data.rb +80 -0
  258. data/lib/datadog_api_client/v2/models/relationship_to_rule_data_object.rb +90 -0
  259. data/lib/datadog_api_client/v2/models/rule_attributes.rb +160 -0
  260. data/lib/datadog_api_client/v2/models/rule_outcome_relationships.rb +80 -0
  261. data/lib/datadog_api_client/v2/models/rule_type.rb +26 -0
  262. data/lib/datadog_api_client/v2/models/scorecard_type.rb +26 -0
  263. data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb +1 -0
  264. data/lib/datadog_api_client/v2/models/security_monitoring_signal_attributes.rb +7 -7
  265. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +11 -1
  266. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +13 -1
  267. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +8 -8
  268. data/lib/datadog_api_client/v2/models/sort_direction.rb +27 -0
  269. data/lib/datadog_api_client/v2/models/state.rb +28 -0
  270. data/lib/datadog_api_client/v2/models/teams_field.rb +40 -0
  271. data/lib/datadog_api_client/v2/models/user_team_permission_attributes.rb +1 -1
  272. data/lib/datadog_api_client/v2/models/widget_live_span.rb +40 -0
  273. data/lib/datadog_api_client/version.rb +1 -1
  274. data/lib/datadog_api_client.rb +16 -1
  275. metadata +186 -25
  276. data/examples/v2/confluent-cloud/DeleteConfluentAccount_2919241291.rb +0 -8
  277. data/examples/v2/downtimes/ListMonitorDowntimes_128979780.rb +0 -5
  278. data/examples/v2/key-management/CreateCurrentUserApplicationKey_1999509896.rb +0 -14
  279. data/examples/v2/key-management/DeleteApplicationKey_771691550.rb +0 -8
  280. data/examples/v2/key-management/DeleteCurrentUserApplicationKey_1266687064.rb +0 -8
  281. data/examples/v2/key-management/GetCurrentUserApplicationKey_1060640890.rb +0 -8
  282. data/examples/v2/key-management/ListApplicationKeys_2237010090.rb +0 -5
  283. data/examples/v2/key-management/ListCurrentUserApplicationKeys_1503860964.rb +0 -5
  284. data/examples/v2/security-monitoring/UpdateFinding.rb +0 -23
  285. data/examples/v2/synthetics/GetOnDemandConcurrencyCap_2633566918.rb +0 -5
  286. data/examples/v2/synthetics/SetOnDemandConcurrencyCap_2850884405.rb +0 -9
  287. data/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring_3959166796.rb +0 -8
  288. data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations_1436752065.rb +0 -8
  289. data/examples/v2/usage-metering/GetUsageObservabilityPipelines_970725512.rb +0 -8
  290. data/examples/v2/users/GetUser_3047557953.rb +0 -8
  291. data/lib/datadog_api_client/v2/models/mute_finding_response_attributes.rb +0 -191
  292. data/lib/datadog_api_client/v2/models/mute_finding_response_properties.rb +0 -114
@@ -50,6 +50,14 @@ module DatadogAPIClient::V2
50
50
  }
51
51
  end
52
52
 
53
+ # List of attributes with nullable: true
54
+ # @!visibility private
55
+ def self.openapi_nullable
56
+ Set.new([
57
+ :'commander_user',
58
+ ])
59
+ end
60
+
53
61
  # Initializes the object
54
62
  # @param attributes [Hash] Model attributes in the form of hash
55
63
  # @!visibility private
@@ -0,0 +1,26 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # The incident user defined fields type.
21
+ class IncidentUserDefinedFieldType
22
+ include BaseEnumModel
23
+
24
+ USER_DEFINED_FIELD = "user_defined_field".freeze
25
+ end
26
+ end
@@ -27,12 +27,16 @@ module DatadogAPIClient::V2
27
27
  # Array of objects related to the application key.
28
28
  attr_accessor :included
29
29
 
30
+ # Additional information related to the application key response.
31
+ attr_accessor :meta
32
+
30
33
  # Attribute mapping from ruby-style variable name to JSON key.
31
34
  # @!visibility private
32
35
  def self.attribute_map
33
36
  {
34
37
  :'data' => :'data',
35
- :'included' => :'included'
38
+ :'included' => :'included',
39
+ :'meta' => :'meta'
36
40
  }
37
41
  end
38
42
 
@@ -41,7 +45,8 @@ module DatadogAPIClient::V2
41
45
  def self.openapi_types
42
46
  {
43
47
  :'data' => :'Array<PartialApplicationKey>',
44
- :'included' => :'Array<ApplicationKeyResponseIncludedItem>'
48
+ :'included' => :'Array<ApplicationKeyResponseIncludedItem>',
49
+ :'meta' => :'ApplicationKeyResponseMeta'
45
50
  }
46
51
  end
47
52
 
@@ -72,6 +77,10 @@ module DatadogAPIClient::V2
72
77
  self.included = value
73
78
  end
74
79
  end
80
+
81
+ if attributes.key?(:'meta')
82
+ self.meta = attributes[:'meta']
83
+ end
75
84
  end
76
85
 
77
86
  # Checks equality by comparing each attribute.
@@ -81,14 +90,15 @@ module DatadogAPIClient::V2
81
90
  return true if self.equal?(o)
82
91
  self.class == o.class &&
83
92
  data == o.data &&
84
- included == o.included
93
+ included == o.included &&
94
+ meta == o.meta
85
95
  end
86
96
 
87
97
  # Calculates hash code according to all attributes.
88
98
  # @return [Integer] Hash code
89
99
  # @!visibility private
90
100
  def hash
91
- [data, included].hash
101
+ [data, included, meta].hash
92
102
  end
93
103
  end
94
104
  end
@@ -0,0 +1,92 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # Scorecard rules response.
21
+ class ListRulesResponse
22
+ include BaseGenericModel
23
+
24
+ # Array of rule details.
25
+ attr_accessor :data
26
+
27
+ # Links attributes.
28
+ attr_accessor :links
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ # @!visibility private
32
+ def self.attribute_map
33
+ {
34
+ :'data' => :'data',
35
+ :'links' => :'links'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ # @!visibility private
41
+ def self.openapi_types
42
+ {
43
+ :'data' => :'Array<ListRulesResponseDataItem>',
44
+ :'links' => :'ListRulesResponseLinks'
45
+ }
46
+ end
47
+
48
+ # Initializes the object
49
+ # @param attributes [Hash] Model attributes in the form of hash
50
+ # @!visibility private
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListRulesResponse` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListRulesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'data')
65
+ if (value = attributes[:'data']).is_a?(Array)
66
+ self.data = value
67
+ end
68
+ end
69
+
70
+ if attributes.key?(:'links')
71
+ self.links = attributes[:'links']
72
+ end
73
+ end
74
+
75
+ # Checks equality by comparing each attribute.
76
+ # @param o [Object] Object to be compared
77
+ # @!visibility private
78
+ def ==(o)
79
+ return true if self.equal?(o)
80
+ self.class == o.class &&
81
+ data == o.data &&
82
+ links == o.links
83
+ end
84
+
85
+ # Calculates hash code according to all attributes.
86
+ # @return [Integer] Hash code
87
+ # @!visibility private
88
+ def hash
89
+ [data, links].hash
90
+ end
91
+ end
92
+ end
@@ -0,0 +1,110 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # Rule details.
21
+ class ListRulesResponseDataItem
22
+ include BaseGenericModel
23
+
24
+ # Details of a rule.
25
+ attr_accessor :attributes
26
+
27
+ # The unique ID for a scorecard rule.
28
+ attr_accessor :id
29
+
30
+ # Scorecard create rule response relationship.
31
+ attr_accessor :relationships
32
+
33
+ # The JSON:API type for scorecard rules.
34
+ attr_accessor :type
35
+
36
+ # Attribute mapping from ruby-style variable name to JSON key.
37
+ # @!visibility private
38
+ def self.attribute_map
39
+ {
40
+ :'attributes' => :'attributes',
41
+ :'id' => :'id',
42
+ :'relationships' => :'relationships',
43
+ :'type' => :'type'
44
+ }
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ # @!visibility private
49
+ def self.openapi_types
50
+ {
51
+ :'attributes' => :'RuleAttributes',
52
+ :'id' => :'String',
53
+ :'relationships' => :'RelationshipToRule',
54
+ :'type' => :'RuleType'
55
+ }
56
+ end
57
+
58
+ # Initializes the object
59
+ # @param attributes [Hash] Model attributes in the form of hash
60
+ # @!visibility private
61
+ def initialize(attributes = {})
62
+ if (!attributes.is_a?(Hash))
63
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListRulesResponseDataItem` initialize method"
64
+ end
65
+
66
+ # check to see if the attribute exists and convert string to symbol for hash key
67
+ attributes = attributes.each_with_object({}) { |(k, v), h|
68
+ if (!self.class.attribute_map.key?(k.to_sym))
69
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListRulesResponseDataItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
70
+ end
71
+ h[k.to_sym] = v
72
+ }
73
+
74
+ if attributes.key?(:'attributes')
75
+ self.attributes = attributes[:'attributes']
76
+ end
77
+
78
+ if attributes.key?(:'id')
79
+ self.id = attributes[:'id']
80
+ end
81
+
82
+ if attributes.key?(:'relationships')
83
+ self.relationships = attributes[:'relationships']
84
+ end
85
+
86
+ if attributes.key?(:'type')
87
+ self.type = attributes[:'type']
88
+ end
89
+ end
90
+
91
+ # Checks equality by comparing each attribute.
92
+ # @param o [Object] Object to be compared
93
+ # @!visibility private
94
+ def ==(o)
95
+ return true if self.equal?(o)
96
+ self.class == o.class &&
97
+ attributes == o.attributes &&
98
+ id == o.id &&
99
+ relationships == o.relationships &&
100
+ type == o.type
101
+ end
102
+
103
+ # Calculates hash code according to all attributes.
104
+ # @return [Integer] Hash code
105
+ # @!visibility private
106
+ def hash
107
+ [attributes, id, relationships, type].hash
108
+ end
109
+ end
110
+ end
@@ -0,0 +1,80 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # Links attributes.
21
+ class ListRulesResponseLinks
22
+ include BaseGenericModel
23
+
24
+ # Link for the next set of rules.
25
+ attr_accessor :_next
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ # @!visibility private
29
+ def self.attribute_map
30
+ {
31
+ :'_next' => :'next'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ # @!visibility private
37
+ def self.openapi_types
38
+ {
39
+ :'_next' => :'String'
40
+ }
41
+ end
42
+
43
+ # Initializes the object
44
+ # @param attributes [Hash] Model attributes in the form of hash
45
+ # @!visibility private
46
+ def initialize(attributes = {})
47
+ if (!attributes.is_a?(Hash))
48
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListRulesResponseLinks` initialize method"
49
+ end
50
+
51
+ # check to see if the attribute exists and convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}) { |(k, v), h|
53
+ if (!self.class.attribute_map.key?(k.to_sym))
54
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListRulesResponseLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ end
56
+ h[k.to_sym] = v
57
+ }
58
+
59
+ if attributes.key?(:'_next')
60
+ self._next = attributes[:'_next']
61
+ end
62
+ end
63
+
64
+ # Checks equality by comparing each attribute.
65
+ # @param o [Object] Object to be compared
66
+ # @!visibility private
67
+ def ==(o)
68
+ return true if self.equal?(o)
69
+ self.class == o.class &&
70
+ _next == o._next
71
+ end
72
+
73
+ # Calculates hash code according to all attributes.
74
+ # @return [Integer] Hash code
75
+ # @!visibility private
76
+ def hash
77
+ [_next].hash
78
+ end
79
+ end
80
+ end
@@ -24,6 +24,11 @@ module DatadogAPIClient::V2
24
24
  # A list of account emails to notify when the configuration is applied.
25
25
  attr_accessor :emails
26
26
 
27
+ # When set to true, the configuration will exclude the configured tags and include any other submitted tags.
28
+ # When set to false, the configuration will include the configured tags and exclude any other submitted tags.
29
+ # Defaults to false.
30
+ attr_accessor :exclude_tags_mode
31
+
27
32
  # A list of tag names to apply to the configuration.
28
33
  attr_accessor :tags
29
34
 
@@ -32,6 +37,7 @@ module DatadogAPIClient::V2
32
37
  def self.attribute_map
33
38
  {
34
39
  :'emails' => :'emails',
40
+ :'exclude_tags_mode' => :'exclude_tags_mode',
35
41
  :'tags' => :'tags'
36
42
  }
37
43
  end
@@ -41,6 +47,7 @@ module DatadogAPIClient::V2
41
47
  def self.openapi_types
42
48
  {
43
49
  :'emails' => :'Array<String>',
50
+ :'exclude_tags_mode' => :'Boolean',
44
51
  :'tags' => :'Array<String>'
45
52
  }
46
53
  end
@@ -67,6 +74,10 @@ module DatadogAPIClient::V2
67
74
  end
68
75
  end
69
76
 
77
+ if attributes.key?(:'exclude_tags_mode')
78
+ self.exclude_tags_mode = attributes[:'exclude_tags_mode']
79
+ end
80
+
70
81
  if attributes.key?(:'tags')
71
82
  if (value = attributes[:'tags']).is_a?(Array)
72
83
  self.tags = value
@@ -81,6 +92,7 @@ module DatadogAPIClient::V2
81
92
  return true if self.equal?(o)
82
93
  self.class == o.class &&
83
94
  emails == o.emails &&
95
+ exclude_tags_mode == o.exclude_tags_mode &&
84
96
  tags == o.tags
85
97
  end
86
98
 
@@ -88,7 +100,7 @@ module DatadogAPIClient::V2
88
100
  # @return [Integer] Hash code
89
101
  # @!visibility private
90
102
  def hash
91
- [emails, tags].hash
103
+ [emails, exclude_tags_mode, tags].hash
92
104
  end
93
105
  end
94
106
  end
@@ -24,6 +24,10 @@ module DatadogAPIClient::V2
24
24
  # A list of account emails to notify when the configuration is applied.
25
25
  attr_accessor :emails
26
26
 
27
+ # When set to true, the configuration will exclude the configured tags and include any other submitted tags.
28
+ # When set to false, the configuration will include the configured tags and exclude any other submitted tags.
29
+ attr_accessor :exclude_tags_mode
30
+
27
31
  # The status of the request.
28
32
  attr_accessor :status
29
33
 
@@ -35,6 +39,7 @@ module DatadogAPIClient::V2
35
39
  def self.attribute_map
36
40
  {
37
41
  :'emails' => :'emails',
42
+ :'exclude_tags_mode' => :'exclude_tags_mode',
38
43
  :'status' => :'status',
39
44
  :'tags' => :'tags'
40
45
  }
@@ -45,6 +50,7 @@ module DatadogAPIClient::V2
45
50
  def self.openapi_types
46
51
  {
47
52
  :'emails' => :'Array<String>',
53
+ :'exclude_tags_mode' => :'Boolean',
48
54
  :'status' => :'String',
49
55
  :'tags' => :'Array<String>'
50
56
  }
@@ -72,6 +78,10 @@ module DatadogAPIClient::V2
72
78
  end
73
79
  end
74
80
 
81
+ if attributes.key?(:'exclude_tags_mode')
82
+ self.exclude_tags_mode = attributes[:'exclude_tags_mode']
83
+ end
84
+
75
85
  if attributes.key?(:'status')
76
86
  self.status = attributes[:'status']
77
87
  end
@@ -90,6 +100,7 @@ module DatadogAPIClient::V2
90
100
  return true if self.equal?(o)
91
101
  self.class == o.class &&
92
102
  emails == o.emails &&
103
+ exclude_tags_mode == o.exclude_tags_mode &&
93
104
  status == o.status &&
94
105
  tags == o.tags
95
106
  end
@@ -98,7 +109,7 @@ module DatadogAPIClient::V2
98
109
  # @return [Integer] Hash code
99
110
  # @!visibility private
100
111
  def hash
101
- [emails, status, tags].hash
112
+ [emails, exclude_tags_mode, status, tags].hash
102
113
  end
103
114
  end
104
115
  end
@@ -42,6 +42,11 @@ module DatadogAPIClient::V2
42
42
  # Timestamp when the tag configuration was created.
43
43
  attr_accessor :created_at
44
44
 
45
+ # When set to true, the configuration will exclude the configured tags and include any other submitted tags.
46
+ # When set to false, the configuration will include the configured tags and exclude any other submitted tags.
47
+ # Defaults to false. Requires `tags` property.
48
+ attr_accessor :exclude_tags_mode
49
+
45
50
  # Toggle to include or exclude percentile aggregations for distribution metrics.
46
51
  # Only present when the `metric_type` is `distribution`.
47
52
  attr_accessor :include_percentiles
@@ -61,6 +66,7 @@ module DatadogAPIClient::V2
61
66
  {
62
67
  :'aggregations' => :'aggregations',
63
68
  :'created_at' => :'created_at',
69
+ :'exclude_tags_mode' => :'exclude_tags_mode',
64
70
  :'include_percentiles' => :'include_percentiles',
65
71
  :'metric_type' => :'metric_type',
66
72
  :'modified_at' => :'modified_at',
@@ -74,6 +80,7 @@ module DatadogAPIClient::V2
74
80
  {
75
81
  :'aggregations' => :'Array<MetricCustomAggregation>',
76
82
  :'created_at' => :'Time',
83
+ :'exclude_tags_mode' => :'Boolean',
77
84
  :'include_percentiles' => :'Boolean',
78
85
  :'metric_type' => :'MetricTagConfigurationMetricTypes',
79
86
  :'modified_at' => :'Time',
@@ -107,6 +114,10 @@ module DatadogAPIClient::V2
107
114
  self.created_at = attributes[:'created_at']
108
115
  end
109
116
 
117
+ if attributes.key?(:'exclude_tags_mode')
118
+ self.exclude_tags_mode = attributes[:'exclude_tags_mode']
119
+ end
120
+
110
121
  if attributes.key?(:'include_percentiles')
111
122
  self.include_percentiles = attributes[:'include_percentiles']
112
123
  end
@@ -134,6 +145,7 @@ module DatadogAPIClient::V2
134
145
  self.class == o.class &&
135
146
  aggregations == o.aggregations &&
136
147
  created_at == o.created_at &&
148
+ exclude_tags_mode == o.exclude_tags_mode &&
137
149
  include_percentiles == o.include_percentiles &&
138
150
  metric_type == o.metric_type &&
139
151
  modified_at == o.modified_at &&
@@ -144,7 +156,7 @@ module DatadogAPIClient::V2
144
156
  # @return [Integer] Hash code
145
157
  # @!visibility private
146
158
  def hash
147
- [aggregations, created_at, include_percentiles, metric_type, modified_at, tags].hash
159
+ [aggregations, created_at, exclude_tags_mode, include_percentiles, metric_type, modified_at, tags].hash
148
160
  end
149
161
  end
150
162
  end
@@ -39,6 +39,11 @@ module DatadogAPIClient::V2
39
39
  # Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`.
40
40
  attr_accessor :aggregations
41
41
 
42
+ # When set to true, the configuration will exclude the configured tags and include any other submitted tags.
43
+ # When set to false, the configuration will include the configured tags and exclude any other submitted tags.
44
+ # Defaults to false. Requires `tags` property.
45
+ attr_accessor :exclude_tags_mode
46
+
42
47
  # Toggle to include/exclude percentiles for a distribution metric.
43
48
  # Defaults to false. Can only be applied to metrics that have a `metric_type` of `distribution`.
44
49
  attr_accessor :include_percentiles
@@ -54,6 +59,7 @@ module DatadogAPIClient::V2
54
59
  def self.attribute_map
55
60
  {
56
61
  :'aggregations' => :'aggregations',
62
+ :'exclude_tags_mode' => :'exclude_tags_mode',
57
63
  :'include_percentiles' => :'include_percentiles',
58
64
  :'metric_type' => :'metric_type',
59
65
  :'tags' => :'tags'
@@ -65,6 +71,7 @@ module DatadogAPIClient::V2
65
71
  def self.openapi_types
66
72
  {
67
73
  :'aggregations' => :'Array<MetricCustomAggregation>',
74
+ :'exclude_tags_mode' => :'Boolean',
68
75
  :'include_percentiles' => :'Boolean',
69
76
  :'metric_type' => :'MetricTagConfigurationMetricTypes',
70
77
  :'tags' => :'Array<String>'
@@ -93,6 +100,10 @@ module DatadogAPIClient::V2
93
100
  end
94
101
  end
95
102
 
103
+ if attributes.key?(:'exclude_tags_mode')
104
+ self.exclude_tags_mode = attributes[:'exclude_tags_mode']
105
+ end
106
+
96
107
  if attributes.key?(:'include_percentiles')
97
108
  self.include_percentiles = attributes[:'include_percentiles']
98
109
  end
@@ -144,6 +155,7 @@ module DatadogAPIClient::V2
144
155
  return true if self.equal?(o)
145
156
  self.class == o.class &&
146
157
  aggregations == o.aggregations &&
158
+ exclude_tags_mode == o.exclude_tags_mode &&
147
159
  include_percentiles == o.include_percentiles &&
148
160
  metric_type == o.metric_type &&
149
161
  tags == o.tags
@@ -153,7 +165,7 @@ module DatadogAPIClient::V2
153
165
  # @return [Integer] Hash code
154
166
  # @!visibility private
155
167
  def hash
156
- [aggregations, include_percentiles, metric_type, tags].hash
168
+ [aggregations, exclude_tags_mode, include_percentiles, metric_type, tags].hash
157
169
  end
158
170
  end
159
171
  end
@@ -39,6 +39,11 @@ module DatadogAPIClient::V2
39
39
  # Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`.
40
40
  attr_accessor :aggregations
41
41
 
42
+ # When set to true, the configuration will exclude the configured tags and include any other submitted tags.
43
+ # When set to false, the configuration will include the configured tags and exclude any other submitted tags.
44
+ # Defaults to false. Requires `tags` property.
45
+ attr_accessor :exclude_tags_mode
46
+
42
47
  # Toggle to include/exclude percentiles for a distribution metric.
43
48
  # Defaults to false. Can only be applied to metrics that have a `metric_type` of `distribution`.
44
49
  attr_accessor :include_percentiles
@@ -51,6 +56,7 @@ module DatadogAPIClient::V2
51
56
  def self.attribute_map
52
57
  {
53
58
  :'aggregations' => :'aggregations',
59
+ :'exclude_tags_mode' => :'exclude_tags_mode',
54
60
  :'include_percentiles' => :'include_percentiles',
55
61
  :'tags' => :'tags'
56
62
  }
@@ -61,6 +67,7 @@ module DatadogAPIClient::V2
61
67
  def self.openapi_types
62
68
  {
63
69
  :'aggregations' => :'Array<MetricCustomAggregation>',
70
+ :'exclude_tags_mode' => :'Boolean',
64
71
  :'include_percentiles' => :'Boolean',
65
72
  :'tags' => :'Array<String>'
66
73
  }
@@ -88,6 +95,10 @@ module DatadogAPIClient::V2
88
95
  end
89
96
  end
90
97
 
98
+ if attributes.key?(:'exclude_tags_mode')
99
+ self.exclude_tags_mode = attributes[:'exclude_tags_mode']
100
+ end
101
+
91
102
  if attributes.key?(:'include_percentiles')
92
103
  self.include_percentiles = attributes[:'include_percentiles']
93
104
  end
@@ -106,6 +117,7 @@ module DatadogAPIClient::V2
106
117
  return true if self.equal?(o)
107
118
  self.class == o.class &&
108
119
  aggregations == o.aggregations &&
120
+ exclude_tags_mode == o.exclude_tags_mode &&
109
121
  include_percentiles == o.include_percentiles &&
110
122
  tags == o.tags
111
123
  end
@@ -114,7 +126,7 @@ module DatadogAPIClient::V2
114
126
  # @return [Integer] Hash code
115
127
  # @!visibility private
116
128
  def hash
117
- [aggregations, include_percentiles, tags].hash
129
+ [aggregations, exclude_tags_mode, include_percentiles, tags].hash
118
130
  end
119
131
  end
120
132
  end