datadog_api_client 2.17.0 → 2.19.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 (239) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/conftest.py +1 -1
  4. data/.generator/poetry.lock +69 -69
  5. data/.generator/schemas/v1/openapi.yaml +334 -16
  6. data/.generator/schemas/v2/openapi.yaml +2864 -470
  7. data/.generator/src/generator/cli.py +5 -0
  8. data/.generator/src/generator/templates/datadog_api_client.j2 +19 -0
  9. data/.generator/src/generator/templates/model_generic.j2 +2 -2
  10. data/.pre-commit-config.yaml +1 -1
  11. data/CHANGELOG.md +43 -0
  12. data/examples/v1/aws-integration/CreateAWSAccount.rb +2 -2
  13. data/examples/v1/aws-integration/DeleteAWSAccount.rb +1 -1
  14. data/examples/v1/aws-integration/UpdateAWSAccount.rb +6 -6
  15. data/examples/v1/azure-integration/CreateAzureIntegration.rb +5 -4
  16. data/examples/v1/azure-integration/DeleteAzureIntegration.rb +2 -14
  17. data/examples/v1/azure-integration/UpdateAzureHostFilters.rb +1 -0
  18. data/examples/v1/azure-integration/UpdateAzureIntegration.rb +5 -4
  19. data/examples/v1/dashboards/CreateDashboard_1284514532.rb +3 -0
  20. data/examples/v1/gcp-integration/CreateGCPIntegration.rb +4 -5
  21. data/examples/v1/gcp-integration/DeleteGCPIntegration.rb +2 -14
  22. data/examples/v1/gcp-integration/UpdateGCPIntegration.rb +4 -5
  23. data/examples/v1/service-level-objectives/CreateSLO_3765703239.rb +46 -0
  24. data/examples/v1/synthetics/PatchTest.rb +22 -0
  25. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +0 -3
  26. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +0 -3
  27. data/examples/v2/cloud-cost-management/CreateCostAWSCURConfig.rb +18 -0
  28. data/examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb +29 -0
  29. data/examples/v2/cloud-cost-management/DeleteCostAWSCURConfig.rb +5 -0
  30. data/examples/v2/cloud-cost-management/DeleteCostAzureUCConfig.rb +5 -0
  31. data/examples/v2/cloud-cost-management/GetCloudCostActivity.rb +5 -0
  32. data/examples/v2/cloud-cost-management/ListAWSRelatedAccounts.rb +5 -0
  33. data/examples/v2/cloud-cost-management/ListCostAWSCURConfigs.rb +5 -0
  34. data/examples/v2/cloud-cost-management/ListCostAzureUCConfigs.rb +5 -0
  35. data/examples/v2/cloud-cost-management/UpdateCostAWSCURConfig.rb +14 -0
  36. data/examples/v2/cloud-cost-management/UpdateCostAzureUCConfigs.rb +14 -0
  37. data/examples/v2/cloudflare-integration/CreateCloudflareAccount.rb +1 -1
  38. data/examples/v2/cloudflare-integration/UpdateCloudflareAccount.rb +4 -1
  39. data/examples/v2/container-images/ListContainerImages.rb +0 -3
  40. data/examples/v2/container-images/ListContainerImages_3088586393.rb +0 -3
  41. data/examples/v2/container-images/ListContainerImages_3974828736.rb +0 -3
  42. data/examples/v2/containers/ListContainers.rb +0 -3
  43. data/examples/v2/containers/ListContainers_2175733917.rb +0 -3
  44. data/examples/v2/containers/ListContainers_931009654.rb +0 -3
  45. data/examples/v2/dora-metrics/CreateDORADeployment.rb +23 -0
  46. data/examples/v2/dora-metrics/CreateDORAIncident.rb +25 -0
  47. data/examples/v2/downtimes/ListMonitorDowntimes_3316718253.rb +5 -0
  48. data/examples/v2/events/ListEvents.rb +0 -3
  49. data/examples/v2/events/ListEvents_1527584014.rb +0 -3
  50. data/examples/v2/events/ListEvents_2663715109.rb +0 -3
  51. data/examples/v2/events/SearchEvents.rb +0 -3
  52. data/examples/v2/events/SearchEvents_3856995058.rb +0 -3
  53. data/examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb +16 -0
  54. data/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb +16 -0
  55. data/examples/v2/gcp-integration/CreateGCPSTSAccount_4235664992.rb +17 -0
  56. data/examples/v2/gcp-integration/UpdateGCPSTSAccount_3205636354.rb +19 -0
  57. data/examples/v2/okta-integration/CreateOktaAccount.rb +19 -0
  58. data/examples/v2/okta-integration/DeleteOktaAccount.rb +5 -0
  59. data/examples/v2/okta-integration/GetOktaAccount.rb +8 -0
  60. data/examples/v2/okta-integration/ListOktaAccounts.rb +5 -0
  61. data/examples/v2/okta-integration/UpdateOktaAccount.rb +20 -0
  62. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_3367706049.rb +46 -0
  63. data/examples/v2/sensitive-data-scanner/CreateScanningRule.rb +7 -0
  64. data/examples/v2/sensitive-data-scanner/UpdateScanningRule.rb +7 -10
  65. data/examples/v2/teams/CreateTeamMembership.rb +6 -0
  66. data/examples/v2/usage-metering/GetActiveBillingDimensions.rb +8 -0
  67. data/examples/v2/usage-metering/GetMonthlyCostAttribution.rb +8 -0
  68. data/examples/v2/usage-metering/GetProjectedCost.rb +8 -0
  69. data/lib/datadog_api_client/configuration.rb +4 -5
  70. data/lib/datadog_api_client/inflector.rb +113 -0
  71. data/lib/datadog_api_client/v1/api/downtimes_api.rb +28 -7
  72. data/lib/datadog_api_client/v1/api/hosts_api.rb +1 -1
  73. data/lib/datadog_api_client/v1/api/monitors_api.rb +1 -1
  74. data/lib/datadog_api_client/v1/api/synthetics_api.rb +73 -1
  75. data/lib/datadog_api_client/v1/models/azure_account.rb +13 -2
  76. data/lib/datadog_api_client/v1/models/gcp_account.rb +22 -2
  77. data/lib/datadog_api_client/v1/models/organization.rb +1 -1
  78. data/lib/datadog_api_client/v1/models/service_level_objective.rb +11 -1
  79. data/lib/datadog_api_client/v1/models/service_level_objective_request.rb +11 -1
  80. data/lib/datadog_api_client/v1/models/slo_data_source_query_definition.rb +62 -0
  81. data/lib/datadog_api_client/v1/models/slo_formula.rb +98 -0
  82. data/lib/datadog_api_client/v1/models/slo_response_data.rb +11 -1
  83. data/lib/datadog_api_client/v1/models/slo_sli_spec.rb +62 -0
  84. data/lib/datadog_api_client/v1/models/slo_time_slice_comparator.rb +29 -0
  85. data/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb +141 -0
  86. data/lib/datadog_api_client/v1/models/slo_time_slice_query.rb +131 -0
  87. data/lib/datadog_api_client/v1/models/slo_time_slice_spec.rb +99 -0
  88. data/lib/datadog_api_client/v1/models/slo_type.rb +1 -0
  89. data/lib/datadog_api_client/v1/models/slo_type_numeric.rb +1 -0
  90. data/lib/datadog_api_client/v1/models/synthetics_patch_test_body.rb +82 -0
  91. data/lib/datadog_api_client/v1/models/synthetics_patch_test_operation.rb +100 -0
  92. data/lib/datadog_api_client/v1/models/synthetics_patch_test_operation_name.rb +31 -0
  93. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +11 -1
  94. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +31 -1
  95. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +31 -1
  96. data/lib/datadog_api_client/v1/models/widget_live_span.rb +2 -0
  97. data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +0 -6
  98. data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +680 -0
  99. data/lib/datadog_api_client/v2/api/container_images_api.rb +0 -6
  100. data/lib/datadog_api_client/v2/api/containers_api.rb +0 -6
  101. data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +181 -0
  102. data/lib/datadog_api_client/v2/api/downtimes_api.rb +25 -0
  103. data/lib/datadog_api_client/v2/api/events_api.rb +0 -12
  104. data/lib/datadog_api_client/v2/api/metrics_api.rb +3 -2
  105. data/lib/datadog_api_client/v2/api/okta_integration_api.rb +355 -0
  106. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +241 -0
  107. data/lib/datadog_api_client/v2/models/active_billing_dimensions_attributes.rb +92 -0
  108. data/lib/datadog_api_client/v2/models/active_billing_dimensions_body.rb +100 -0
  109. data/lib/datadog_api_client/v2/models/active_billing_dimensions_response.rb +80 -0
  110. data/lib/datadog_api_client/v2/models/active_billing_dimensions_type.rb +26 -0
  111. data/lib/datadog_api_client/v2/models/api_keys_response.rb +14 -4
  112. data/lib/datadog_api_client/v2/models/api_keys_response_meta.rb +90 -0
  113. data/lib/datadog_api_client/v2/models/api_keys_response_meta_page.rb +80 -0
  114. data/lib/datadog_api_client/v2/models/application_key_response_meta.rb +90 -0
  115. data/lib/datadog_api_client/v2/models/application_key_response_meta_page.rb +80 -0
  116. data/lib/datadog_api_client/v2/models/aws_cur_config.rb +129 -0
  117. data/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb +305 -0
  118. data/lib/datadog_api_client/v2/models/aws_cur_config_patch_data.rb +119 -0
  119. data/lib/datadog_api_client/v2/models/aws_cur_config_patch_request.rb +98 -0
  120. data/lib/datadog_api_client/v2/models/aws_cur_config_patch_request_attributes.rb +98 -0
  121. data/lib/datadog_api_client/v2/models/aws_cur_config_patch_request_type.rb +26 -0
  122. data/lib/datadog_api_client/v2/models/aws_cur_config_post_data.rb +119 -0
  123. data/lib/datadog_api_client/v2/models/aws_cur_config_post_request.rb +98 -0
  124. data/lib/datadog_api_client/v2/models/aws_cur_config_post_request_attributes.rb +202 -0
  125. data/lib/datadog_api_client/v2/models/aws_cur_config_post_request_type.rb +26 -0
  126. data/lib/datadog_api_client/v2/models/aws_cur_config_response.rb +80 -0
  127. data/lib/datadog_api_client/v2/models/aws_cur_config_type.rb +26 -0
  128. data/lib/datadog_api_client/v2/models/aws_cur_configs_response.rb +82 -0
  129. data/lib/datadog_api_client/v2/models/aws_related_account.rb +129 -0
  130. data/lib/datadog_api_client/v2/models/aws_related_account_attributes.rb +90 -0
  131. data/lib/datadog_api_client/v2/models/aws_related_account_type.rb +26 -0
  132. data/lib/datadog_api_client/v2/models/aws_related_accounts_response.rb +82 -0
  133. data/lib/datadog_api_client/v2/models/azure_uc_config.rb +378 -0
  134. data/lib/datadog_api_client/v2/models/azure_uc_config_pair.rb +129 -0
  135. data/lib/datadog_api_client/v2/models/azure_uc_config_pair_attributes.rb +110 -0
  136. data/lib/datadog_api_client/v2/models/azure_uc_config_pair_type.rb +26 -0
  137. data/lib/datadog_api_client/v2/models/azure_uc_config_pairs_response.rb +80 -0
  138. data/lib/datadog_api_client/v2/models/azure_uc_config_patch_data.rb +119 -0
  139. data/lib/datadog_api_client/v2/models/azure_uc_config_patch_request.rb +98 -0
  140. data/lib/datadog_api_client/v2/models/azure_uc_config_patch_request_attributes.rb +98 -0
  141. data/lib/datadog_api_client/v2/models/azure_uc_config_patch_request_type.rb +26 -0
  142. data/lib/datadog_api_client/v2/models/azure_uc_config_post_data.rb +119 -0
  143. data/lib/datadog_api_client/v2/models/azure_uc_config_post_request.rb +98 -0
  144. data/lib/datadog_api_client/v2/models/azure_uc_config_post_request_attributes.rb +192 -0
  145. data/lib/datadog_api_client/v2/models/azure_uc_config_post_request_type.rb +26 -0
  146. data/lib/datadog_api_client/v2/models/azure_uc_configs_response.rb +82 -0
  147. data/lib/datadog_api_client/v2/models/bill_config.rb +161 -0
  148. data/lib/datadog_api_client/v2/models/ci_app_git_info.rb +2 -2
  149. data/lib/datadog_api_client/v2/models/cloud_cost_activity.rb +119 -0
  150. data/lib/datadog_api_client/v2/models/cloud_cost_activity_attributes.rb +98 -0
  151. data/lib/datadog_api_client/v2/models/cloud_cost_activity_response.rb +80 -0
  152. data/lib/datadog_api_client/v2/models/cloud_cost_activity_type.rb +26 -0
  153. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +13 -1
  154. data/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb +28 -4
  155. data/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb +28 -4
  156. data/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb +28 -4
  157. data/lib/datadog_api_client/v2/models/cost_attribution_aggregates_body.rb +100 -0
  158. data/lib/datadog_api_client/v2/models/cost_attribution_type.rb +26 -0
  159. data/lib/datadog_api_client/v2/models/dora_deployment_request.rb +98 -0
  160. data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +170 -0
  161. data/lib/datadog_api_client/v2/models/dora_deployment_request_data.rb +98 -0
  162. data/lib/datadog_api_client/v2/models/dora_deployment_response.rb +98 -0
  163. data/lib/datadog_api_client/v2/models/dora_deployment_response_data.rb +108 -0
  164. data/lib/datadog_api_client/v2/models/dora_deployment_type.rb +26 -0
  165. data/lib/datadog_api_client/v2/models/dora_git_info.rb +125 -0
  166. data/lib/datadog_api_client/v2/models/dora_incident_request.rb +98 -0
  167. data/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +179 -0
  168. data/lib/datadog_api_client/v2/models/dora_incident_request_data.rb +98 -0
  169. data/lib/datadog_api_client/v2/models/dora_incident_response.rb +98 -0
  170. data/lib/datadog_api_client/v2/models/dora_incident_response_data.rb +108 -0
  171. data/lib/datadog_api_client/v2/models/dora_incident_type.rb +26 -0
  172. data/lib/datadog_api_client/v2/models/full_api_key_attributes.rb +24 -4
  173. data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +25 -5
  174. data/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb +14 -4
  175. data/lib/datadog_api_client/v2/models/incident_create_relationships.rb +9 -19
  176. data/lib/datadog_api_client/v2/models/incident_impacts_type.rb +26 -0
  177. data/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb +21 -1
  178. data/lib/datadog_api_client/v2/models/incident_integration_metadata_response_data.rb +11 -1
  179. data/lib/datadog_api_client/v2/models/incident_integration_relationships.rb +90 -0
  180. data/lib/datadog_api_client/v2/models/incident_non_datadog_creator.rb +90 -0
  181. data/lib/datadog_api_client/v2/models/incident_responders_type.rb +26 -0
  182. data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +69 -4
  183. data/lib/datadog_api_client/v2/models/incident_response_relationships.rb +42 -4
  184. data/lib/datadog_api_client/v2/models/incident_severity.rb +31 -0
  185. data/lib/datadog_api_client/v2/models/incident_todo_attributes.rb +24 -4
  186. data/lib/datadog_api_client/v2/models/incident_todo_relationships.rb +90 -0
  187. data/lib/datadog_api_client/v2/models/incident_todo_response_data.rb +11 -1
  188. data/lib/datadog_api_client/v2/models/incident_update_relationships.rb +8 -0
  189. data/lib/datadog_api_client/v2/models/incident_user_defined_field_type.rb +26 -0
  190. data/lib/datadog_api_client/v2/models/list_application_keys_response.rb +14 -4
  191. data/lib/datadog_api_client/v2/models/monthly_cost_attribution_attributes.rb +151 -0
  192. data/lib/datadog_api_client/v2/models/monthly_cost_attribution_body.rb +100 -0
  193. data/lib/datadog_api_client/v2/models/monthly_cost_attribution_meta.rb +92 -0
  194. data/lib/datadog_api_client/v2/models/monthly_cost_attribution_pagination.rb +88 -0
  195. data/lib/datadog_api_client/v2/models/monthly_cost_attribution_response.rb +92 -0
  196. data/lib/datadog_api_client/v2/models/okta_account.rb +129 -0
  197. data/lib/datadog_api_client/v2/models/okta_account_attributes.rb +170 -0
  198. data/lib/datadog_api_client/v2/models/okta_account_request.rb +98 -0
  199. data/lib/datadog_api_client/v2/models/okta_account_response.rb +80 -0
  200. data/lib/datadog_api_client/v2/models/okta_account_response_data.rb +140 -0
  201. data/lib/datadog_api_client/v2/models/okta_account_type.rb +26 -0
  202. data/lib/datadog_api_client/v2/models/okta_account_update_request.rb +98 -0
  203. data/lib/datadog_api_client/v2/models/okta_account_update_request_attributes.rb +149 -0
  204. data/lib/datadog_api_client/v2/models/okta_account_update_request_data.rb +90 -0
  205. data/lib/datadog_api_client/v2/models/okta_accounts_response.rb +82 -0
  206. data/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb +24 -4
  207. data/lib/datadog_api_client/v2/models/powerpack_relationships.rb +2 -2
  208. data/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb +8 -0
  209. data/lib/datadog_api_client/v2/models/projected_cost.rb +100 -0
  210. data/lib/datadog_api_client/v2/models/projected_cost_attributes.rb +132 -0
  211. data/lib/datadog_api_client/v2/models/projected_cost_response.rb +82 -0
  212. data/lib/datadog_api_client/v2/models/projected_cost_type.rb +26 -0
  213. data/lib/datadog_api_client/v2/models/relationship_to_incident_impact_data.rb +119 -0
  214. data/lib/datadog_api_client/v2/models/relationship_to_incident_impacts.rb +100 -0
  215. data/lib/datadog_api_client/v2/models/relationship_to_incident_responder_data.rb +119 -0
  216. data/lib/datadog_api_client/v2/models/relationship_to_incident_responders.rb +100 -0
  217. data/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_field_data.rb +119 -0
  218. data/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_fields.rb +100 -0
  219. data/lib/datadog_api_client/v2/models/relationship_to_user_team_team.rb +98 -0
  220. data/lib/datadog_api_client/v2/models/relationship_to_user_team_team_data.rb +119 -0
  221. data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +14 -4
  222. data/lib/datadog_api_client/v2/models/security_monitoring_rule_third_party_options.rb +114 -0
  223. data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb +1 -0
  224. data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +13 -1
  225. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +13 -1
  226. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +13 -1
  227. data/lib/datadog_api_client/v2/models/security_monitoring_third_party_root_query.rb +92 -0
  228. data/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb +112 -0
  229. data/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case_create.rb +130 -0
  230. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb +134 -0
  231. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_attributes.rb +46 -1
  232. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +45 -1
  233. data/lib/datadog_api_client/v2/models/sort_direction.rb +27 -0
  234. data/lib/datadog_api_client/v2/models/user_team_attributes.rb +24 -1
  235. data/lib/datadog_api_client/v2/models/user_team_relationships.rb +11 -1
  236. data/lib/datadog_api_client/v2/models/user_team_team_type.rb +26 -0
  237. data/lib/datadog_api_client/version.rb +1 -1
  238. data/lib/datadog_api_client.rb +16 -1
  239. metadata +144 -2
@@ -808,8 +808,9 @@ components:
808
808
  example: key:value,filter:example
809
809
  type: string
810
810
  cspm_enabled:
811
- description: Enable Cloud Security Management Misconfigurations for your
812
- organization.
811
+ description: "When enabled, Datadog\u2019s Cloud Security Management product
812
+ scans resource configurations monitored by this app registration.\nNote:
813
+ This requires resource_collection_enabled to be set to true."
813
814
  example: true
814
815
  type: boolean
815
816
  custom_metrics_enabled:
@@ -840,6 +841,12 @@ components:
840
841
  description: Your New Azure Active Directory ID.
841
842
  example: new1c44-1234-5678-9101-cc00736ftest
842
843
  type: string
844
+ resource_collection_enabled:
845
+ description: When enabled, Datadog collects metadata and configuration info
846
+ from cloud resources (compute instances, databases, load balancers, etc.)
847
+ monitored by this app registration.
848
+ example: true
849
+ type: boolean
843
850
  tenant_name:
844
851
  description: Your Azure Active Directory ID.
845
852
  example: testc44-1234-5678-9101-cc00736ftest
@@ -3204,9 +3211,16 @@ components:
3204
3211
  example: key:value,filter:example
3205
3212
  type: string
3206
3213
  is_cspm_enabled:
3214
+ description: 'When enabled, Datadog will activate the Cloud Security Monitoring
3215
+ product for this service account. Note: This requires resource_collection_enabled
3216
+ to be set to true.'
3217
+ example: true
3218
+ type: boolean
3219
+ is_security_command_center_enabled:
3207
3220
  default: false
3208
- description: When enabled, Datadog performs configuration checks across
3209
- your Google Cloud environment by continuously scanning every resource.
3221
+ description: 'When enabled, Datadog will attempt to collect Security Command
3222
+ Center Findings. Note: This requires additional permissions on the service
3223
+ account.'
3210
3224
  example: true
3211
3225
  type: boolean
3212
3226
  private_key:
@@ -3222,6 +3236,10 @@ components:
3222
3236
  key.
3223
3237
  example: datadog-apitest
3224
3238
  type: string
3239
+ resource_collection_enabled:
3240
+ description: When enabled, Datadog scans for all resources in your GCP environment.
3241
+ example: true
3242
+ type: boolean
3225
3243
  token_uri:
3226
3244
  description: Should be `https://accounts.google.com/o/oauth2/token`.
3227
3245
  example: https://accounts.google.com/o/oauth2/token
@@ -9341,7 +9359,7 @@ components:
9341
9359
  example: some description
9342
9360
  type: string
9343
9361
  name:
9344
- description: The name of the new child-organization, limited to 32 characters.
9362
+ description: The name of the child organization, limited to 32 characters.
9345
9363
  example: New child org
9346
9364
  maxLength: 32
9347
9365
  type: string
@@ -10226,6 +10244,13 @@ components:
10226
10244
  nullable: true
10227
10245
  type: string
10228
10246
  type: object
10247
+ SLODataSourceQueryDefinition:
10248
+ description: A formula and function query.
10249
+ example:
10250
+ data_source: metrics
10251
+ query: sum:trace.servlet.request.hits{*} by {env}.as_count()
10252
+ oneOf:
10253
+ - $ref: '#/components/schemas/FormulaAndFunctionMetricQueryDefinition'
10229
10254
  SLODeleteResponse:
10230
10255
  description: A response list of all service level objective deleted.
10231
10256
  properties:
@@ -10269,6 +10294,20 @@ components:
10269
10294
  - THIRTY_DAYS
10270
10295
  - NINETY_DAYS
10271
10296
  - ALL
10297
+ SLOFormula:
10298
+ description: A formula that specifies how to combine the results of multiple
10299
+ queries.
10300
+ example:
10301
+ formula: query1 - default_zero(query2)
10302
+ properties:
10303
+ formula:
10304
+ description: The formula string, which is an expression involving named
10305
+ queries.
10306
+ example: query1 - default_zero(query2)
10307
+ type: string
10308
+ required:
10309
+ - formula
10310
+ type: object
10272
10311
  SLOHistoryMetrics:
10273
10312
  description: 'A `metric` based SLO history response.
10274
10313
 
@@ -10998,6 +11037,8 @@ components:
10998
11037
  type: string
10999
11038
  query:
11000
11039
  $ref: '#/components/schemas/ServiceLevelObjectiveQuery'
11040
+ sli_specification:
11041
+ $ref: '#/components/schemas/SLOSliSpec'
11001
11042
  tags:
11002
11043
  description: 'A list of tags associated with this service level objective.
11003
11044
 
@@ -11052,6 +11093,11 @@ components:
11052
11093
  format: double
11053
11094
  type: number
11054
11095
  type: object
11096
+ SLOSliSpec:
11097
+ description: A generic SLI specification. This is currently used for time-slice
11098
+ SLOs only.
11099
+ oneOf:
11100
+ - $ref: '#/components/schemas/SLOTimeSliceSpec'
11055
11101
  SLOState:
11056
11102
  description: State of the SLO.
11057
11103
  enum:
@@ -11152,6 +11198,106 @@ components:
11152
11198
  - timeframe
11153
11199
  - target
11154
11200
  type: object
11201
+ SLOTimeSliceComparator:
11202
+ description: The comparator used to compare the SLI value to the threshold.
11203
+ enum:
11204
+ - '>'
11205
+ - '>='
11206
+ - <
11207
+ - <=
11208
+ example: '>'
11209
+ type: string
11210
+ x-enum-varnames:
11211
+ - GREATER
11212
+ - GREATER_EQUAL
11213
+ - LESS
11214
+ - LESS_EQUAL
11215
+ SLOTimeSliceCondition:
11216
+ description: 'The time-slice condition, composed of 3 parts: 1. the metric timeseries
11217
+ query, 2. the comparator,
11218
+
11219
+ and 3. the threshold.'
11220
+ example:
11221
+ comparator: <
11222
+ query:
11223
+ formulas:
11224
+ - formula: query2/query1
11225
+ queries:
11226
+ - data_source: metrics
11227
+ name: query1
11228
+ query: sum:trace.servlet.request.hits{*} by {env}.as_count()
11229
+ - data_source: metrics
11230
+ name: query1
11231
+ query: sum:trace.servlet.request.errors{*} by {env}.as_count()
11232
+ threshold: 5
11233
+ properties:
11234
+ comparator:
11235
+ $ref: '#/components/schemas/SLOTimeSliceComparator'
11236
+ query:
11237
+ $ref: '#/components/schemas/SLOTimeSliceQuery'
11238
+ threshold:
11239
+ description: The threshold value to which each SLI value will be compared.
11240
+ example: 5
11241
+ format: double
11242
+ type: number
11243
+ required:
11244
+ - comparator
11245
+ - threshold
11246
+ - query
11247
+ type: object
11248
+ SLOTimeSliceQuery:
11249
+ description: The queries and formula used to calculate the SLI value.
11250
+ example:
11251
+ formulas:
11252
+ - formula: query2/query1
11253
+ queries:
11254
+ - data_source: metrics
11255
+ name: query1
11256
+ query: sum:trace.servlet.request.hits{*} by {env}.as_count()
11257
+ - data_source: metrics
11258
+ name: query1
11259
+ query: sum:trace.servlet.request.errors{*} by {env}.as_count()
11260
+ properties:
11261
+ formulas:
11262
+ description: A list that contains exactly one formula, as only a single
11263
+ formula may be used in a time-slice SLO.
11264
+ items:
11265
+ $ref: '#/components/schemas/SLOFormula'
11266
+ maxItems: 1
11267
+ minItems: 1
11268
+ type: array
11269
+ queries:
11270
+ description: A list of queries that are used to calculate the SLI value.
11271
+ items:
11272
+ $ref: '#/components/schemas/SLODataSourceQueryDefinition'
11273
+ type: array
11274
+ required:
11275
+ - formulas
11276
+ - queries
11277
+ type: object
11278
+ SLOTimeSliceSpec:
11279
+ additionalProperties: false
11280
+ description: A time-slice SLI specification.
11281
+ example:
11282
+ time_slice:
11283
+ comparator: <
11284
+ query:
11285
+ formulas:
11286
+ - formula: query2/query1
11287
+ queries:
11288
+ - data_source: metrics
11289
+ name: query1
11290
+ query: sum:trace.servlet.request.hits{*} by {env}.as_count()
11291
+ - data_source: metrics
11292
+ name: query1
11293
+ query: sum:trace.servlet.request.errors{*} by {env}.as_count()
11294
+ threshold: 5
11295
+ properties:
11296
+ time_slice:
11297
+ $ref: '#/components/schemas/SLOTimeSliceCondition'
11298
+ required:
11299
+ - time_slice
11300
+ type: object
11155
11301
  SLOTimeframe:
11156
11302
  description: The SLO time window options.
11157
11303
  enum:
@@ -11171,11 +11317,13 @@ components:
11171
11317
  enum:
11172
11318
  - metric
11173
11319
  - monitor
11320
+ - time_slice
11174
11321
  example: metric
11175
11322
  type: string
11176
11323
  x-enum-varnames:
11177
11324
  - METRIC
11178
11325
  - MONITOR
11326
+ - TIME_SLICE
11179
11327
  SLOTypeNumeric:
11180
11328
  description: 'A numeric representation of the type of the service level objective
11181
11329
  (`0` for
@@ -11186,12 +11334,14 @@ components:
11186
11334
  enum:
11187
11335
  - 0
11188
11336
  - 1
11337
+ - 2
11189
11338
  example: 0
11190
11339
  format: int32
11191
11340
  type: integer
11192
11341
  x-enum-varnames:
11193
11342
  - MONITOR
11194
11343
  - METRIC
11344
+ - TIME_SLICE
11195
11345
  SLOWidgetDefinition:
11196
11346
  description: Use the SLO and uptime widget to track your SLOs (Service Level
11197
11347
  Objectives) and uptime on screenboards and timeboards.
@@ -12001,6 +12151,8 @@ components:
12001
12151
  type: string
12002
12152
  query:
12003
12153
  $ref: '#/components/schemas/ServiceLevelObjectiveQuery'
12154
+ sli_specification:
12155
+ $ref: '#/components/schemas/SLOSliSpec'
12004
12156
  tags:
12005
12157
  description: 'A list of tags associated with this service level objective.
12006
12158
 
@@ -12130,6 +12282,8 @@ components:
12130
12282
  type: string
12131
12283
  query:
12132
12284
  $ref: '#/components/schemas/ServiceLevelObjectiveQuery'
12285
+ sli_specification:
12286
+ $ref: '#/components/schemas/SLOSliSpec'
12133
12287
  tags:
12134
12288
  description: 'A list of tags associated with this service level objective.
12135
12289
 
@@ -14705,6 +14859,55 @@ components:
14705
14859
  type:
14706
14860
  $ref: '#/components/schemas/SyntheticsGlobalVariableParseTestOptionsType'
14707
14861
  type: object
14862
+ SyntheticsPatchTestBody:
14863
+ description: Wrapper around an array of [JSON Patch](https://jsonpatch.com)
14864
+ operations to perform on the test
14865
+ properties:
14866
+ data:
14867
+ description: Array of [JSON Patch](https://jsonpatch.com) operations to
14868
+ perform on the test
14869
+ example:
14870
+ - op: replace
14871
+ path: /name
14872
+ value: New test name
14873
+ - op: remove
14874
+ path: /config/assertions/0
14875
+ items:
14876
+ $ref: '#/components/schemas/SyntheticsPatchTestOperation'
14877
+ type: array
14878
+ type: object
14879
+ SyntheticsPatchTestOperation:
14880
+ description: A single [JSON Patch](https://jsonpatch.com) operation to perform
14881
+ on the test
14882
+ properties:
14883
+ op:
14884
+ $ref: '#/components/schemas/SyntheticsPatchTestOperationName'
14885
+ path:
14886
+ description: The path to the value to modify
14887
+ example: /name
14888
+ type: string
14889
+ value:
14890
+ description: A value to use in a [JSON Patch](https://jsonpatch.com) operation
14891
+ example: New Test Name
14892
+ type: object
14893
+ SyntheticsPatchTestOperationName:
14894
+ description: The operation to perform
14895
+ enum:
14896
+ - add
14897
+ - remove
14898
+ - replace
14899
+ - move
14900
+ - copy
14901
+ - test
14902
+ example: replace
14903
+ type: string
14904
+ x-enum-varnames:
14905
+ - ADD
14906
+ - REMOVE
14907
+ - REPLACE
14908
+ - MOVE
14909
+ - COPY
14910
+ - TEST
14708
14911
  SyntheticsPlayingTab:
14709
14912
  description: Navigate between different tabs for your browser test.
14710
14913
  enum:
@@ -18428,6 +18631,11 @@ components:
18428
18631
  over all hours in the current date all organizations.
18429
18632
  format: int64
18430
18633
  type: integer
18634
+ apm_devsecops_host_top99p:
18635
+ description: Shows the 99th percentile of all APM DevSecOps hosts over all
18636
+ hours in the current date for the given org.
18637
+ format: int64
18638
+ type: integer
18431
18639
  apm_fargate_count_avg:
18432
18640
  description: Shows the average of all APM ECS Fargate tasks over all hours
18433
18641
  in the current date for all organizations.
@@ -18953,6 +19161,11 @@ components:
18953
19161
  over all hours in the current date for the given org.
18954
19162
  format: int64
18955
19163
  type: integer
19164
+ apm_devsecops_host_top99p:
19165
+ description: Shows the 99th percentile of all APM DevSecOps hosts over all
19166
+ hours in the current date for the given org.
19167
+ format: int64
19168
+ type: integer
18956
19169
  apm_fargate_count_avg:
18957
19170
  description: Shows the average of all APM ECS Fargate tasks over all hours
18958
19171
  in the current months for the given org.
@@ -19177,6 +19390,16 @@ components:
19177
19390
  Pro hosts over all hours in the current date for the given org.
19178
19391
  format: int64
19179
19392
  type: integer
19393
+ custom_historical_ts_avg:
19394
+ description: Shows the average number of distinct historical custom metrics
19395
+ over all hours in the current date for the given org.
19396
+ format: int64
19397
+ type: integer
19398
+ custom_live_ts_avg:
19399
+ description: Shows the average number of distinct live custom metrics over
19400
+ all hours in the current date for the given org.
19401
+ format: int64
19402
+ type: integer
19180
19403
  custom_ts_avg:
19181
19404
  description: Shows the average number of distinct custom metrics over all
19182
19405
  hours in the current date for the given org.
@@ -19481,6 +19704,11 @@ components:
19481
19704
  over all hours in the current months all organizations.
19482
19705
  format: int64
19483
19706
  type: integer
19707
+ apm_devsecops_host_top99p_sum:
19708
+ description: Shows the 99th percentile of all APM DevSecOps hosts over all
19709
+ hours in the current months for all organizations.
19710
+ format: int64
19711
+ type: integer
19484
19712
  apm_fargate_count_avg_sum:
19485
19713
  description: Shows the average of all APM ECS Fargate tasks over all hours
19486
19714
  in the current months for all organizations.
@@ -19708,6 +19936,16 @@ components:
19708
19936
  Pro hosts over all hours in the current months for all organizations.
19709
19937
  format: int64
19710
19938
  type: integer
19939
+ custom_historical_ts_sum:
19940
+ description: Shows the average number of distinct historical custom metrics
19941
+ over all hours in the current months for all organizations.
19942
+ format: int64
19943
+ type: integer
19944
+ custom_live_ts_sum:
19945
+ description: Shows the average number of distinct live custom metrics over
19946
+ all hours in the current months for all organizations.
19947
+ format: int64
19948
+ type: integer
19711
19949
  custom_ts_sum:
19712
19950
  description: Shows the average number of distinct custom metrics over all
19713
19951
  hours in the current months for all organizations.
@@ -20886,6 +21124,8 @@ components:
20886
21124
  - 1mo
20887
21125
  - 3mo
20888
21126
  - 6mo
21127
+ - week_to_date
21128
+ - month_to_date
20889
21129
  - 1y
20890
21130
  - alert
20891
21131
  example: 5m
@@ -20904,6 +21144,8 @@ components:
20904
21144
  - PAST_ONE_MONTH
20905
21145
  - PAST_THREE_MONTHS
20906
21146
  - PAST_SIX_MONTHS
21147
+ - WEEK_TO_DATE
21148
+ - MONTH_TO_DATE
20907
21149
  - PAST_ONE_YEAR
20908
21150
  - ALERT
20909
21151
  WidgetMargin:
@@ -21249,7 +21491,7 @@ components:
21249
21491
  an organization. Mute and unmute hosts. The ability to write monitors
21250
21492
  is not required to set downtimes.
21251
21493
  monitors_read: View monitors.
21252
- monitors_write: Edit, mute, and delete individual monitors.
21494
+ monitors_write: Edit and delete individual monitors.
21253
21495
  security_monitoring_filters_read: Read Security Filters.
21254
21496
  security_monitoring_filters_write: Create, edit, and delete Security Filters.
21255
21497
  security_monitoring_findings_read: View CSPM Findings.
@@ -22891,7 +23133,9 @@ paths:
22891
23133
  x-codegen-request-body-name: body
22892
23134
  /api/v1/downtime:
22893
23135
  get:
22894
- description: Get all scheduled downtimes.
23136
+ deprecated: true
23137
+ description: Get all scheduled downtimes. **Note:** This endpoint has been deprecated.
23138
+ Please use v2 endpoints.
22895
23139
  operationId: ListDowntimes
22896
23140
  parameters:
22897
23141
  - description: Only return downtimes that are active when the request is made.
@@ -22932,7 +23176,9 @@ paths:
22932
23176
  tags:
22933
23177
  - Downtimes
22934
23178
  post:
22935
- description: Schedule a downtime.
23179
+ deprecated: true
23180
+ description: Schedule a downtime. **Note:** This endpoint has been deprecated.
23181
+ Please use v2 endpoints.
22936
23182
  operationId: CreateDowntime
22937
23183
  requestBody:
22938
23184
  content:
@@ -22973,7 +23219,11 @@ paths:
22973
23219
  x-codegen-request-body-name: body
22974
23220
  /api/v1/downtime/cancel/by_scope:
22975
23221
  post:
22976
- description: Delete all downtimes that match the scope of `X`.
23222
+ deprecated: true
23223
+ description: Delete all downtimes that match the scope of `X`. **Note:** This
23224
+ only interacts with Downtimes created using v1 endpoints. This endpoint has
23225
+ been deprecated and will not be replaced. Please use v2 endpoints to find
23226
+ and cancel downtimes.
22977
23227
  operationId: CancelDowntimesByScope
22978
23228
  requestBody:
22979
23229
  content:
@@ -23020,7 +23270,9 @@ paths:
23020
23270
  x-codegen-request-body-name: body
23021
23271
  /api/v1/downtime/{downtime_id}:
23022
23272
  delete:
23023
- description: Cancel a downtime.
23273
+ deprecated: true
23274
+ description: Cancel a downtime. **Note:** This endpoint has been deprecated.
23275
+ Please use v2 endpoints.
23024
23276
  operationId: CancelDowntime
23025
23277
  parameters:
23026
23278
  - description: ID of the downtime to cancel.
@@ -23057,7 +23309,9 @@ paths:
23057
23309
  tags:
23058
23310
  - Downtimes
23059
23311
  get:
23060
- description: Get downtime detail by `downtime_id`.
23312
+ deprecated: true
23313
+ description: Get downtime detail by `downtime_id`. **Note:** This endpoint has
23314
+ been deprecated. Please use v2 endpoints.
23061
23315
  operationId: GetDowntime
23062
23316
  parameters:
23063
23317
  - description: ID of the downtime to fetch.
@@ -23098,7 +23352,9 @@ paths:
23098
23352
  tags:
23099
23353
  - Downtimes
23100
23354
  put:
23101
- description: Update a single downtime by `downtime_id`.
23355
+ deprecated: true
23356
+ description: Update a single downtime by `downtime_id`. **Note:** This endpoint
23357
+ has been deprecated. Please use v2 endpoints.
23102
23358
  operationId: UpdateDowntime
23103
23359
  parameters:
23104
23360
  - description: ID of the downtime to update.
@@ -23435,7 +23691,8 @@ paths:
23435
23691
  - Snapshots
23436
23692
  /api/v1/host/{host_name}/mute:
23437
23693
  post:
23438
- description: Mute a host.
23694
+ description: Mute a host. **Note:** This creates a [Downtime V2](https://docs.datadoghq.com/api/latest/downtimes/#schedule-a-downtime)
23695
+ for the host.
23439
23696
  operationId: MuteHost
23440
23697
  parameters:
23441
23698
  - description: Name of the host to mute.
@@ -26251,7 +26508,7 @@ paths:
26251
26508
 
26252
26509
  - SLO: `slo alert`
26253
26510
 
26254
- - watchdog: `event alert`
26511
+ - watchdog: `event-v2 alert`
26255
26512
 
26256
26513
  - event-v2: `event-v2 alert`
26257
26514
 
@@ -27082,7 +27339,9 @@ paths:
27082
27339
  x-codegen-request-body-name: body
27083
27340
  /api/v1/monitor/{monitor_id}/downtimes:
27084
27341
  get:
27085
- description: Get all active downtimes for the specified monitor.
27342
+ deprecated: true
27343
+ description: Get all active v1 downtimes for the specified monitor. **Note:**
27344
+ This endpoint has been deprecated. Please use v2 endpoints.
27086
27345
  operationId: ListMonitorDowntimes
27087
27346
  parameters:
27088
27347
  - description: The id of the monitor
@@ -29650,7 +29909,7 @@ paths:
29650
29909
  description: Edit the configuration of a Synthetic browser test.
29651
29910
  operationId: UpdateBrowserTest
29652
29911
  parameters:
29653
- - description: The public ID of the test to get details from.
29912
+ - description: The public ID of the test to edit.
29654
29913
  in: path
29655
29914
  name: public_id
29656
29915
  required: true
@@ -29989,6 +30248,65 @@ paths:
29989
30248
  summary: Get a test configuration
29990
30249
  tags:
29991
30250
  - Synthetics
30251
+ patch:
30252
+ description: Patch the configuration of a Synthetic test with partial data.
30253
+ operationId: PatchTest
30254
+ parameters:
30255
+ - description: The public ID of the test to patch.
30256
+ in: path
30257
+ name: public_id
30258
+ required: true
30259
+ schema:
30260
+ type: string
30261
+ requestBody:
30262
+ content:
30263
+ application/json:
30264
+ schema:
30265
+ $ref: '#/components/schemas/SyntheticsPatchTestBody'
30266
+ description: '[JSON Patch](https://jsonpatch.com/) compliant list of operations'
30267
+ required: true
30268
+ responses:
30269
+ '200':
30270
+ content:
30271
+ application/json:
30272
+ schema:
30273
+ $ref: '#/components/schemas/SyntheticsTestDetails'
30274
+ description: OK
30275
+ '400':
30276
+ content:
30277
+ application/json:
30278
+ schema:
30279
+ $ref: '#/components/schemas/APIErrorResponse'
30280
+ description: '- JSON format is wrong
30281
+
30282
+ - Updating sub-type is forbidden'
30283
+ '403':
30284
+ content:
30285
+ application/json:
30286
+ schema:
30287
+ $ref: '#/components/schemas/APIErrorResponse'
30288
+ description: Forbidden
30289
+ '404':
30290
+ content:
30291
+ application/json:
30292
+ schema:
30293
+ $ref: '#/components/schemas/APIErrorResponse'
30294
+ description: '- Synthetic Monitoring is not activated for the user
30295
+
30296
+ - Test is not owned by the user
30297
+
30298
+ - Test can''t be found'
30299
+ '429':
30300
+ $ref: '#/components/responses/TooManyRequestsResponse'
30301
+ security:
30302
+ - apiKeyAuth: []
30303
+ appKeyAuth: []
30304
+ - AuthZ:
30305
+ - synthetics_write
30306
+ summary: Patch a Synthetic test
30307
+ tags:
30308
+ - Synthetics
30309
+ x-codegen-request-body-name: body
29992
30310
  /api/v1/synthetics/tests/{public_id}/results:
29993
30311
  get:
29994
30312
  description: Get the last 150 test results summaries for a given Synthetic API