datadog_api_client 2.20.0 → 2.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (267) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/conftest.py +5 -0
  4. data/.generator/schemas/v1/openapi.yaml +502 -754
  5. data/.generator/schemas/v2/openapi.yaml +2903 -102
  6. data/.github/workflows/prepare_release.yml +2 -2
  7. data/.github/workflows/publish.yml +2 -2
  8. data/.github/workflows/release.yml +2 -2
  9. data/.github/workflows/test.yml +1 -1
  10. data/CHANGELOG.md +52 -0
  11. data/Gemfile +1 -1
  12. data/examples/v1/aws-integration/CreateAWSAccount.rb +1 -1
  13. data/examples/v1/aws-integration/CreateNewAWSExternalID.rb +1 -0
  14. data/examples/v1/aws-integration/UpdateAWSAccount.rb +1 -1
  15. data/examples/v1/gcp-integration/CreateGCPIntegration.rb +3 -0
  16. data/examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb +25 -0
  17. data/examples/v1/synthetics/CreateSyntheticsAPITest_1241981394.rb +118 -0
  18. data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +29 -0
  19. data/examples/v1/synthetics/UpdateBrowserTest.rb +4 -0
  20. data/examples/v2/apm-retention-filters/UpdateApmRetentionFilter.rb +2 -2
  21. data/examples/v2/authn-mappings/CreateAuthNMapping.rb +1 -1
  22. data/examples/v2/authn-mappings/UpdateAuthNMapping.rb +1 -1
  23. data/examples/v2/case-management/ArchiveCase.rb +14 -0
  24. data/examples/v2/case-management/AssignCase.rb +20 -0
  25. data/examples/v2/case-management/CreateCase.rb +33 -0
  26. data/examples/v2/case-management/CreateProject.rb +15 -0
  27. data/examples/v2/case-management/DeleteProject.rb +5 -0
  28. data/examples/v2/case-management/GetCase.rb +8 -0
  29. data/examples/v2/case-management/GetProject.rb +5 -0
  30. data/examples/v2/case-management/GetProjects.rb +5 -0
  31. data/examples/v2/case-management/SearchCases.rb +5 -0
  32. data/examples/v2/case-management/SearchCases_3433960044.rb +5 -0
  33. data/examples/v2/case-management/UnarchiveCase.rb +14 -0
  34. data/examples/v2/case-management/UnassignCase.rb +14 -0
  35. data/examples/v2/case-management/UpdatePriority.rb +17 -0
  36. data/examples/v2/case-management/UpdateStatus.rb +17 -0
  37. data/examples/v2/cloud-workload-security/CreateCSMThreatsAgentRule.rb +17 -0
  38. data/examples/v2/cloud-workload-security/DeleteCSMThreatsAgentRule.rb +8 -0
  39. data/examples/v2/cloud-workload-security/DownloadCSMThreatsPolicy.rb +5 -0
  40. data/examples/v2/cloud-workload-security/GetCSMThreatsAgentRule.rb +8 -0
  41. data/examples/v2/cloud-workload-security/ListCSMThreatsAgentRules.rb +5 -0
  42. data/examples/v2/cloud-workload-security/UpdateCSMThreatsAgentRule.rb +20 -0
  43. data/examples/v2/dora-metrics/CreateDORAIncident.rb +6 -3
  44. data/examples/v2/gcp-integration/CreateGCPSTSAccount.rb +1 -1
  45. data/examples/v2/gcp-integration/CreateGCPSTSAccount_109518525.rb +1 -1
  46. data/examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb +1 -1
  47. data/examples/v2/gcp-integration/CreateGCPSTSAccount_194782945.rb +18 -0
  48. data/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb +1 -1
  49. data/examples/v2/gcp-integration/CreateGCPSTSAccount_4235664992.rb +1 -1
  50. data/examples/v2/gcp-integration/UpdateGCPSTSAccount.rb +1 -1
  51. data/examples/v2/gcp-integration/UpdateGCPSTSAccount_2241994060.rb +21 -0
  52. data/examples/v2/gcp-integration/UpdateGCPSTSAccount_3205636354.rb +1 -1
  53. data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination.rb +31 -0
  54. data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1091442807.rb +31 -0
  55. data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1288180912.rb +27 -0
  56. data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_141236188.rb +32 -0
  57. data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_2184123765.rb +31 -0
  58. data/examples/v2/logs-custom-destinations/DeleteLogsCustomDestination.rb +8 -0
  59. data/examples/v2/logs-custom-destinations/GetLogsCustomDestination.rb +8 -0
  60. data/examples/v2/logs-custom-destinations/ListLogsCustomDestinations.rb +5 -0
  61. data/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination.rb +22 -0
  62. data/examples/v2/metrics/ListMetricAssets.rb +5 -0
  63. data/examples/v2/metrics/QueryScalarData_3112571352.rb +2 -2
  64. data/examples/v2/metrics/QueryTimeseriesData_301142940.rb +3 -3
  65. data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.rb +19 -0
  66. data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule.rb +42 -0
  67. data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +4 -0
  68. data/examples/v2/service-level-objectives/CreateSLOReportJob.rb +20 -0
  69. data/examples/v2/service-level-objectives/GetSLOReport.rb +8 -0
  70. data/examples/v2/service-level-objectives/GetSLOReportJobStatus.rb +11 -0
  71. data/lib/datadog_api_client/configuration.rb +3 -0
  72. data/lib/datadog_api_client/inflector.rb +132 -7
  73. data/lib/datadog_api_client/v1/api/monitors_api.rb +1 -3
  74. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +104 -131
  75. data/lib/datadog_api_client/v1/models/aws_account.rb +12 -2
  76. data/lib/datadog_api_client/v1/models/gcp_account.rb +14 -1
  77. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +8 -0
  78. data/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb +1 -0
  79. data/lib/datadog_api_client/v1/models/monitor_options.rb +4 -1
  80. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +12 -0
  81. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +124 -4
  82. data/lib/datadog_api_client/v1/models/series.rb +1 -1
  83. data/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb +14 -2
  84. data/lib/datadog_api_client/v1/models/slo_time_slice_interval.rb +29 -0
  85. data/lib/datadog_api_client/v1/models/slo_time_slice_spec.rb +1 -1
  86. data/lib/datadog_api_client/v1/models/synthetics_api_step_subtype.rb +1 -0
  87. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +23 -1
  88. data/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb +175 -0
  89. data/lib/datadog_api_client/v1/models/synthetics_test_request_body_type.rb +2 -0
  90. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +81 -1
  91. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +83 -3
  92. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +182 -102
  93. data/lib/datadog_api_client/v2/api/apm_retention_filters_api.rb +6 -0
  94. data/lib/datadog_api_client/v2/api/case_management_api.rb +942 -0
  95. data/lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb +2 -2
  96. data/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb +392 -0
  97. data/lib/datadog_api_client/v2/api/incident_services_api.rb +15 -0
  98. data/lib/datadog_api_client/v2/api/logs_custom_destinations_api.rb +355 -0
  99. data/lib/datadog_api_client/v2/api/metrics_api.rb +70 -2
  100. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +67 -0
  101. data/lib/datadog_api_client/v2/api/service_definition_api.rb +2 -1
  102. data/lib/datadog_api_client/v2/api/service_level_objectives_api.rb +245 -0
  103. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +15 -6
  104. data/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb +1 -1
  105. data/lib/datadog_api_client/v2/models/authn_mapping_create_relationships.rb +37 -54
  106. data/lib/datadog_api_client/v2/models/authn_mapping_included.rb +2 -1
  107. data/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb +98 -0
  108. data/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb +98 -0
  109. data/lib/datadog_api_client/v2/models/authn_mapping_relationships.rb +14 -4
  110. data/lib/datadog_api_client/v2/models/authn_mapping_team.rb +100 -0
  111. data/lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb +212 -0
  112. data/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb +1 -1
  113. data/lib/datadog_api_client/v2/models/authn_mapping_update_relationships.rb +37 -54
  114. data/lib/datadog_api_client/v2/models/case.rb +150 -0
  115. data/lib/datadog_api_client/v2/models/case3rd_party_ticket_status.rb +28 -0
  116. data/lib/datadog_api_client/v2/models/case_assign.rb +119 -0
  117. data/lib/datadog_api_client/v2/models/case_assign_attributes.rb +98 -0
  118. data/lib/datadog_api_client/v2/models/case_assign_request.rb +98 -0
  119. data/lib/datadog_api_client/v2/models/case_attributes.rb +202 -0
  120. data/lib/datadog_api_client/v2/models/case_create.rb +129 -0
  121. data/lib/datadog_api_client/v2/models/case_create_attributes.rb +139 -0
  122. data/lib/datadog_api_client/v2/models/case_create_relationships.rb +116 -0
  123. data/lib/datadog_api_client/v2/models/case_create_request.rb +98 -0
  124. data/lib/datadog_api_client/v2/models/case_empty.rb +98 -0
  125. data/lib/datadog_api_client/v2/models/case_empty_request.rb +98 -0
  126. data/lib/datadog_api_client/v2/models/case_priority.rb +31 -0
  127. data/lib/datadog_api_client/v2/models/case_relationships.rb +120 -0
  128. data/lib/datadog_api_client/v2/models/case_resource_type.rb +26 -0
  129. data/lib/datadog_api_client/v2/models/case_response.rb +80 -0
  130. data/lib/datadog_api_client/v2/models/case_sortable_field.rb +28 -0
  131. data/lib/datadog_api_client/v2/models/case_status.rb +28 -0
  132. data/lib/datadog_api_client/v2/models/case_type.rb +26 -0
  133. data/lib/datadog_api_client/v2/models/case_update_priority.rb +119 -0
  134. data/lib/datadog_api_client/v2/models/case_update_priority_attributes.rb +98 -0
  135. data/lib/datadog_api_client/v2/models/case_update_priority_request.rb +98 -0
  136. data/lib/datadog_api_client/v2/models/case_update_status.rb +119 -0
  137. data/lib/datadog_api_client/{v1/models/usage_attribution_pagination.rb → v2/models/case_update_status_attributes.rb} +29 -51
  138. data/lib/datadog_api_client/v2/models/case_update_status_request.rb +98 -0
  139. data/lib/datadog_api_client/{v1/models/usage_attribution_metadata.rb → v2/models/cases_response.rb} +22 -22
  140. data/lib/datadog_api_client/v2/models/cases_response_meta.rb +80 -0
  141. data/lib/datadog_api_client/v2/models/cases_response_meta_pagination.rb +100 -0
  142. data/lib/datadog_api_client/v2/models/ci_app_aggregate_sort.rb +1 -1
  143. data/lib/datadog_api_client/v2/models/ci_app_pipelines_group_by.rb +1 -1
  144. data/lib/datadog_api_client/v2/models/ci_app_tests_group_by.rb +1 -1
  145. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +90 -0
  146. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +21 -1
  147. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_kill.rb +80 -0
  148. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb +11 -1
  149. data/lib/datadog_api_client/v2/models/custom_destination_attribute_tags_restriction_list_type.rb +31 -0
  150. data/lib/datadog_api_client/v2/models/custom_destination_create_request.rb +80 -0
  151. data/lib/datadog_api_client/v2/models/custom_destination_create_request_attributes.rb +193 -0
  152. data/lib/datadog_api_client/v2/models/custom_destination_create_request_definition.rb +119 -0
  153. data/lib/datadog_api_client/v2/models/custom_destination_elasticsearch_destination_auth.rb +119 -0
  154. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination.rb +64 -0
  155. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_elasticsearch.rb +181 -0
  156. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_elasticsearch_type.rb +26 -0
  157. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_http.rb +141 -0
  158. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_http_type.rb +26 -0
  159. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk.rb +141 -0
  160. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk_type.rb +26 -0
  161. data/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth.rb +63 -0
  162. data/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_basic.rb +140 -0
  163. data/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_basic_type.rb +26 -0
  164. data/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_custom_header.rb +140 -0
  165. data/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_custom_header_type.rb +26 -0
  166. data/lib/datadog_api_client/v2/models/custom_destination_response.rb +80 -0
  167. data/lib/datadog_api_client/v2/models/custom_destination_response_attributes.rb +171 -0
  168. data/lib/datadog_api_client/v2/models/custom_destination_response_definition.rb +100 -0
  169. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination.rb +64 -0
  170. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_elasticsearch.rb +181 -0
  171. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_elasticsearch_type.rb +26 -0
  172. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http.rb +141 -0
  173. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http_type.rb +26 -0
  174. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk.rb +120 -0
  175. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk_type.rb +26 -0
  176. data/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth.rb +63 -0
  177. data/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_basic.rb +98 -0
  178. data/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_basic_type.rb +26 -0
  179. data/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_custom_header.rb +119 -0
  180. data/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_custom_header_type.rb +26 -0
  181. data/lib/datadog_api_client/v2/models/custom_destination_type.rb +26 -0
  182. data/lib/datadog_api_client/v2/models/custom_destination_update_request.rb +80 -0
  183. data/lib/datadog_api_client/v2/models/custom_destination_update_request_attributes.rb +169 -0
  184. data/lib/datadog_api_client/v2/models/custom_destination_update_request_definition.rb +129 -0
  185. data/lib/datadog_api_client/v2/models/custom_destinations_response.rb +82 -0
  186. data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +1 -1
  187. data/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +21 -20
  188. data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +14 -1
  189. data/lib/datadog_api_client/v2/models/jira_issue.rb +90 -0
  190. data/lib/datadog_api_client/v2/models/jira_issue_result.rb +110 -0
  191. data/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb +1 -12
  192. data/lib/datadog_api_client/v2/models/metric_asset_attributes.rb +80 -0
  193. data/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationship.rb +90 -0
  194. data/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationships.rb +82 -0
  195. data/lib/datadog_api_client/v2/models/metric_asset_monitor_relationship.rb +90 -0
  196. data/lib/datadog_api_client/v2/models/metric_asset_monitor_relationships.rb +82 -0
  197. data/lib/datadog_api_client/v2/models/metric_asset_notebook_relationship.rb +90 -0
  198. data/lib/datadog_api_client/v2/models/metric_asset_notebook_relationships.rb +82 -0
  199. data/lib/datadog_api_client/v2/models/metric_asset_response_data.rb +129 -0
  200. data/lib/datadog_api_client/v2/models/metric_asset_response_included.rb +65 -0
  201. data/lib/datadog_api_client/v2/models/metric_asset_response_relationships.rb +110 -0
  202. data/lib/datadog_api_client/v2/models/metric_asset_slo_relationship.rb +90 -0
  203. data/lib/datadog_api_client/v2/models/metric_asset_slo_relationships.rb +82 -0
  204. data/lib/datadog_api_client/v2/models/metric_assets_response.rb +92 -0
  205. data/lib/datadog_api_client/v2/models/metric_dashboard_asset.rb +129 -0
  206. data/lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb +112 -0
  207. data/lib/datadog_api_client/v2/models/metric_dashboard_type.rb +26 -0
  208. data/lib/datadog_api_client/v2/models/metric_monitor_asset.rb +129 -0
  209. data/lib/datadog_api_client/v2/models/metric_monitor_type.rb +26 -0
  210. data/lib/datadog_api_client/v2/models/metric_notebook_asset.rb +129 -0
  211. data/lib/datadog_api_client/v2/models/metric_notebook_type.rb +26 -0
  212. data/lib/datadog_api_client/v2/models/metric_series.rb +1 -1
  213. data/lib/datadog_api_client/v2/models/metric_slo_asset.rb +129 -0
  214. data/lib/datadog_api_client/v2/models/metric_slo_type.rb +26 -0
  215. data/lib/datadog_api_client/{v1/models/usage_attribution_response.rb → v2/models/nullable_user_relationship.rb} +22 -26
  216. data/lib/datadog_api_client/v2/models/nullable_user_relationship_data.rb +119 -0
  217. data/lib/datadog_api_client/v2/models/project.rb +150 -0
  218. data/lib/datadog_api_client/v2/models/project_attributes.rb +90 -0
  219. data/lib/datadog_api_client/v2/models/project_create.rb +119 -0
  220. data/lib/datadog_api_client/v2/models/project_create_attributes.rb +119 -0
  221. data/lib/datadog_api_client/v2/models/project_create_request.rb +98 -0
  222. data/lib/datadog_api_client/v2/models/project_relationship.rb +98 -0
  223. data/lib/datadog_api_client/v2/models/project_relationship_data.rb +119 -0
  224. data/lib/datadog_api_client/v2/models/project_relationships.rb +90 -0
  225. data/lib/datadog_api_client/v2/models/project_resource_type.rb +26 -0
  226. data/lib/datadog_api_client/v2/models/project_response.rb +80 -0
  227. data/lib/datadog_api_client/v2/models/projects_response.rb +82 -0
  228. data/lib/datadog_api_client/v2/models/relationship_to_team.rb +80 -0
  229. data/lib/datadog_api_client/v2/models/relationship_to_team_data.rb +90 -0
  230. data/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb +183 -0
  231. data/lib/datadog_api_client/v2/models/retention_filter_update_data.rb +1 -1
  232. data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +1 -1
  233. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +1 -1
  234. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +1 -1
  235. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +1 -1
  236. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +1 -1
  237. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +11 -1
  238. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +13 -14
  239. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +11 -1
  240. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +1 -1
  241. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +13 -1
  242. data/lib/datadog_api_client/v2/models/service_now_ticket.rb +90 -0
  243. data/lib/datadog_api_client/v2/models/service_now_ticket_result.rb +80 -0
  244. data/lib/datadog_api_client/v2/models/slo_report_create_request.rb +98 -0
  245. data/lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb +160 -0
  246. data/lib/datadog_api_client/v2/models/slo_report_create_request_data.rb +98 -0
  247. data/lib/datadog_api_client/v2/models/slo_report_interval.rb +27 -0
  248. data/lib/datadog_api_client/v2/models/slo_report_post_response.rb +80 -0
  249. data/lib/datadog_api_client/v2/models/slo_report_post_response_data.rb +90 -0
  250. data/lib/datadog_api_client/v2/models/slo_report_status.rb +29 -0
  251. data/lib/datadog_api_client/v2/models/slo_report_status_get_response.rb +80 -0
  252. data/lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb +80 -0
  253. data/lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb +100 -0
  254. data/lib/datadog_api_client/v2/models/timeseries_response_series.rb +8 -0
  255. data/lib/datadog_api_client/v2/models/user_relationship_data.rb +119 -0
  256. data/lib/datadog_api_client/v2/models/user_resource_type.rb +26 -0
  257. data/lib/datadog_api_client/v2/models/user_team_included.rb +62 -0
  258. data/lib/datadog_api_client/v2/models/user_team_response.rb +16 -4
  259. data/lib/datadog_api_client/v2/models/user_teams_response.rb +13 -1
  260. data/lib/datadog_api_client/v2/models/users_relationship.rb +100 -0
  261. data/lib/datadog_api_client/version.rb +1 -1
  262. metadata +196 -33
  263. data/examples/v1/usage-metering/GetUsageAttribution.rb +0 -9
  264. data/lib/datadog_api_client/v1/models/usage_attribution_body.rb +0 -152
  265. data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +0 -61
  266. data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +0 -72
  267. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +0 -590
@@ -39,6 +39,9 @@ module DatadogAPIClient::V1
39
39
  # to exclude from metrics collection.
40
40
  attr_accessor :excluded_regions
41
41
 
42
+ # Whether Datadog collects additional attributes and configuration information about the resources in your AWS account. Required for `cspm_resource_collection`.
43
+ attr_accessor :extended_resource_collection_enabled
44
+
42
45
  # The array of EC2 tags (in the form `key:value`) defines a filter that Datadog uses when collecting metrics from EC2.
43
46
  # Wildcards, such as `?` (for single characters) and `*` (for multiple characters) can also be used.
44
47
  # Only hosts that match one of the defined tags
@@ -54,7 +57,7 @@ module DatadogAPIClient::V1
54
57
  # Whether Datadog collects metrics for this AWS account.
55
58
  attr_accessor :metrics_collection_enabled
56
59
 
57
- # Whether Datadog collects a standard set of resources from your AWS account.
60
+ # Deprecated in favor of 'extended_resource_collection_enabled'. Whether Datadog collects a standard set of resources from your AWS account.
58
61
  attr_accessor :resource_collection_enabled
59
62
 
60
63
  # Your Datadog role delegation name.
@@ -72,6 +75,7 @@ module DatadogAPIClient::V1
72
75
  :'account_specific_namespace_rules' => :'account_specific_namespace_rules',
73
76
  :'cspm_resource_collection_enabled' => :'cspm_resource_collection_enabled',
74
77
  :'excluded_regions' => :'excluded_regions',
78
+ :'extended_resource_collection_enabled' => :'extended_resource_collection_enabled',
75
79
  :'filter_tags' => :'filter_tags',
76
80
  :'host_tags' => :'host_tags',
77
81
  :'metrics_collection_enabled' => :'metrics_collection_enabled',
@@ -90,6 +94,7 @@ module DatadogAPIClient::V1
90
94
  :'account_specific_namespace_rules' => :'Hash<String, Boolean>',
91
95
  :'cspm_resource_collection_enabled' => :'Boolean',
92
96
  :'excluded_regions' => :'Array<String>',
97
+ :'extended_resource_collection_enabled' => :'Boolean',
93
98
  :'filter_tags' => :'Array<String>',
94
99
  :'host_tags' => :'Array<String>',
95
100
  :'metrics_collection_enabled' => :'Boolean',
@@ -137,6 +142,10 @@ module DatadogAPIClient::V1
137
142
  end
138
143
  end
139
144
 
145
+ if attributes.key?(:'extended_resource_collection_enabled')
146
+ self.extended_resource_collection_enabled = attributes[:'extended_resource_collection_enabled']
147
+ end
148
+
140
149
  if attributes.key?(:'filter_tags')
141
150
  if (value = attributes[:'filter_tags']).is_a?(Array)
142
151
  self.filter_tags = value
@@ -177,6 +186,7 @@ module DatadogAPIClient::V1
177
186
  account_specific_namespace_rules == o.account_specific_namespace_rules &&
178
187
  cspm_resource_collection_enabled == o.cspm_resource_collection_enabled &&
179
188
  excluded_regions == o.excluded_regions &&
189
+ extended_resource_collection_enabled == o.extended_resource_collection_enabled &&
180
190
  filter_tags == o.filter_tags &&
181
191
  host_tags == o.host_tags &&
182
192
  metrics_collection_enabled == o.metrics_collection_enabled &&
@@ -189,7 +199,7 @@ module DatadogAPIClient::V1
189
199
  # @return [Integer] Hash code
190
200
  # @!visibility private
191
201
  def hash
192
- [access_key_id, account_id, account_specific_namespace_rules, cspm_resource_collection_enabled, excluded_regions, filter_tags, host_tags, metrics_collection_enabled, resource_collection_enabled, role_name, secret_access_key].hash
202
+ [access_key_id, account_id, account_specific_namespace_rules, cspm_resource_collection_enabled, excluded_regions, extended_resource_collection_enabled, filter_tags, host_tags, metrics_collection_enabled, resource_collection_enabled, role_name, secret_access_key].hash
193
203
  end
194
204
  end
195
205
  end
@@ -40,6 +40,10 @@ module DatadogAPIClient::V1
40
40
  # where `$CLIENT_EMAIL` is the email found in your JSON service account key.
41
41
  attr_accessor :client_x509_cert_url
42
42
 
43
+ # Limit the Cloud Run revisions that are pulled into Datadog by using tags.
44
+ # Only Cloud Run revision resources that apply to specified filters are imported into Datadog.
45
+ attr_accessor :cloud_run_revision_filters
46
+
43
47
  # An array of errors.
44
48
  attr_accessor :errors
45
49
 
@@ -81,6 +85,7 @@ module DatadogAPIClient::V1
81
85
  :'client_email' => :'client_email',
82
86
  :'client_id' => :'client_id',
83
87
  :'client_x509_cert_url' => :'client_x509_cert_url',
88
+ :'cloud_run_revision_filters' => :'cloud_run_revision_filters',
84
89
  :'errors' => :'errors',
85
90
  :'host_filters' => :'host_filters',
86
91
  :'is_cspm_enabled' => :'is_cspm_enabled',
@@ -104,6 +109,7 @@ module DatadogAPIClient::V1
104
109
  :'client_email' => :'String',
105
110
  :'client_id' => :'String',
106
111
  :'client_x509_cert_url' => :'String',
112
+ :'cloud_run_revision_filters' => :'Array<String>',
107
113
  :'errors' => :'Array<String>',
108
114
  :'host_filters' => :'String',
109
115
  :'is_cspm_enabled' => :'Boolean',
@@ -157,6 +163,12 @@ module DatadogAPIClient::V1
157
163
  self.client_x509_cert_url = attributes[:'client_x509_cert_url']
158
164
  end
159
165
 
166
+ if attributes.key?(:'cloud_run_revision_filters')
167
+ if (value = attributes[:'cloud_run_revision_filters']).is_a?(Array)
168
+ self.cloud_run_revision_filters = value
169
+ end
170
+ end
171
+
160
172
  if attributes.key?(:'errors')
161
173
  if (value = attributes[:'errors']).is_a?(Array)
162
174
  self.errors = value
@@ -212,6 +224,7 @@ module DatadogAPIClient::V1
212
224
  client_email == o.client_email &&
213
225
  client_id == o.client_id &&
214
226
  client_x509_cert_url == o.client_x509_cert_url &&
227
+ cloud_run_revision_filters == o.cloud_run_revision_filters &&
215
228
  errors == o.errors &&
216
229
  host_filters == o.host_filters &&
217
230
  is_cspm_enabled == o.is_cspm_enabled &&
@@ -228,7 +241,7 @@ module DatadogAPIClient::V1
228
241
  # @return [Integer] Hash code
229
242
  # @!visibility private
230
243
  def hash
231
- [auth_provider_x509_cert_url, auth_uri, automute, client_email, client_id, client_x509_cert_url, errors, host_filters, is_cspm_enabled, is_security_command_center_enabled, private_key, private_key_id, project_id, resource_collection_enabled, token_uri, type].hash
244
+ [auth_provider_x509_cert_url, auth_uri, automute, client_email, client_id, client_x509_cert_url, cloud_run_revision_filters, errors, host_filters, is_cspm_enabled, is_security_command_center_enabled, private_key, private_key_id, project_id, resource_collection_enabled, token_uri, type].hash
232
245
  end
233
246
  end
234
247
  end
@@ -27,6 +27,8 @@ module DatadogAPIClient::V1
27
27
  APM_USM_USAGE = "apm_usm_usage".freeze
28
28
  APPSEC_FARGATE_USAGE = "appsec_fargate_usage".freeze
29
29
  APPSEC_USAGE = "appsec_usage".freeze
30
+ ASM_SERVERLESS_TRACED_INVOCATIONS_USAGE = "asm_serverless_traced_invocations_usage".freeze
31
+ ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE = "asm_serverless_traced_invocations_percentage".freeze
30
32
  BROWSER_USAGE = "browser_usage".freeze
31
33
  CI_PIPELINE_INDEXED_SPANS_USAGE = "ci_pipeline_indexed_spans_usage".freeze
32
34
  CI_TEST_INDEXED_SPANS_USAGE = "ci_test_indexed_spans_usage".freeze
@@ -43,6 +45,8 @@ module DatadogAPIClient::V1
43
45
  CWS_HOSTS_USAGE = "cws_hosts_usage".freeze
44
46
  DBM_HOSTS_USAGE = "dbm_hosts_usage".freeze
45
47
  DBM_QUERIES_USAGE = "dbm_queries_usage".freeze
48
+ ERROR_TRACKING_USAGE = "error_tracking_usage".freeze
49
+ ERROR_TRACKING_PERCENTAGE = "error_tracking_percentage".freeze
46
50
  ESTIMATED_INDEXED_LOGS_USAGE = "estimated_indexed_logs_usage".freeze
47
51
  ESTIMATED_INDEXED_SPANS_USAGE = "estimated_indexed_spans_usage".freeze
48
52
  ESTIMATED_INGESTED_LOGS_USAGE = "estimated_ingested_logs_usage".freeze
@@ -50,6 +54,7 @@ module DatadogAPIClient::V1
50
54
  ESTIMATED_RUM_SESSIONS_USAGE = "estimated_rum_sessions_usage".freeze
51
55
  FARGATE_USAGE = "fargate_usage".freeze
52
56
  FUNCTIONS_USAGE = "functions_usage".freeze
57
+ INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE = "incident_management_monthly_active_users_usage".freeze
53
58
  INDEXED_SPANS_USAGE = "indexed_spans_usage".freeze
54
59
  INFRA_HOST_USAGE = "infra_host_usage".freeze
55
60
  INGESTED_LOGS_BYTES_USAGE = "ingested_logs_bytes_usage".freeze
@@ -70,6 +75,8 @@ module DatadogAPIClient::V1
70
75
  NDM_NETFLOW_USAGE = "ndm_netflow_usage".freeze
71
76
  NPM_HOST_USAGE = "npm_host_usage".freeze
72
77
  OBS_PIPELINE_BYTES_USAGE = "obs_pipeline_bytes_usage".freeze
78
+ OBS_PIPELINE_VCPU_USAGE = "obs_pipelines_vcpu_usage".freeze
79
+ ONLINE_ARCHIVE_USAGE = "online_archive_usage".freeze
73
80
  PROFILED_CONTAINER_USAGE = "profiled_container_usage".freeze
74
81
  PROFILED_FARGATE_USAGE = "profiled_fargate_usage".freeze
75
82
  PROFILED_HOST_USAGE = "profiled_host_usage".freeze
@@ -81,5 +88,6 @@ module DatadogAPIClient::V1
81
88
  SNMP_USAGE = "snmp_usage".freeze
82
89
  UNIVERSAL_SERVICE_MONITORING_USAGE = "universal_service_monitoring_usage".freeze
83
90
  VULN_MANAGEMENT_HOSTS_USAGE = "vuln_management_hosts_usage".freeze
91
+ WORKFLOW_EXECUTIONS_USAGE = "workflow_executions_usage".freeze
84
92
  end
85
93
  end
@@ -28,5 +28,6 @@ module DatadogAPIClient::V1
28
28
  EVENTS = "events".freeze
29
29
  LOGS = "logs".freeze
30
30
  SPANS = "spans".freeze
31
+ DATABASE_QUERIES = "database_queries".freeze
31
32
  end
32
33
  end
@@ -122,11 +122,14 @@ module DatadogAPIClient::V1
122
122
  attr_accessor :renotify_occurrences
123
123
 
124
124
  # The types of monitor statuses for which re-notification messages are sent.
125
+ # Default: **null** if `renotify_interval` is **null**.
126
+ # If `renotify_interval` is set, defaults to renotify on `Alert` and `No Data`.
125
127
  attr_accessor :renotify_statuses
126
128
 
127
129
  # A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.
128
130
  # We highly recommend you set this to `false` for sparse metrics,
129
- # otherwise some evaluations are skipped. Default is false.
131
+ # otherwise some evaluations are skipped. Default is false. This setting only applies to
132
+ # metric monitors.
130
133
  attr_accessor :require_full_window
131
134
 
132
135
  # Configuration options for scheduling.
@@ -33,6 +33,8 @@ module DatadogAPIClient::V1
33
33
  APM_USM_PERCENTAGE = "apm_usm_percentage".freeze
34
34
  APPSEC_USAGE = "appsec_usage".freeze
35
35
  APPSEC_PERCENTAGE = "appsec_percentage".freeze
36
+ ASM_SERVERLESS_TRACED_INVOCATIONS_USAGE = "asm_serverless_traced_invocations_usage".freeze
37
+ ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE = "asm_serverless_traced_invocations_percentage".freeze
36
38
  BROWSER_USAGE = "browser_usage".freeze
37
39
  BROWSER_PERCENTAGE = "browser_percentage".freeze
38
40
  CI_VISIBILITY_ITR_USAGE = "ci_visibility_itr_usage".freeze
@@ -59,6 +61,8 @@ module DatadogAPIClient::V1
59
61
  DBM_HOSTS_USAGE = "dbm_hosts_usage".freeze
60
62
  DBM_QUERIES_PERCENTAGE = "dbm_queries_percentage".freeze
61
63
  DBM_QUERIES_USAGE = "dbm_queries_usage".freeze
64
+ ERROR_TRACKING_USAGE = "error_tracking_usage".freeze
65
+ ERROR_TRACKING_PERCENTAGE = "error_tracking_percentage".freeze
62
66
  ESTIMATED_INDEXED_LOGS_USAGE = "estimated_indexed_logs_usage".freeze
63
67
  ESTIMATED_INDEXED_LOGS_PERCENTAGE = "estimated_indexed_logs_percentage".freeze
64
68
  ESTIMATED_INGESTED_LOGS_USAGE = "estimated_ingested_logs_usage".freeze
@@ -71,6 +75,8 @@ module DatadogAPIClient::V1
71
75
  FARGATE_PERCENTAGE = "fargate_percentage".freeze
72
76
  FUNCTIONS_USAGE = "functions_usage".freeze
73
77
  FUNCTIONS_PERCENTAGE = "functions_percentage".freeze
78
+ INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE = "incident_management_monthly_active_users_usage".freeze
79
+ INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_PERCENTAGE = "incident_management_monthly_active_users_percentage".freeze
74
80
  INFRA_HOST_USAGE = "infra_host_usage".freeze
75
81
  INFRA_HOST_PERCENTAGE = "infra_host_percentage".freeze
76
82
  INVOCATIONS_USAGE = "invocations_usage".freeze
@@ -85,6 +91,10 @@ module DatadogAPIClient::V1
85
91
  NPM_HOST_PERCENTAGE = "npm_host_percentage".freeze
86
92
  OBS_PIPELINE_BYTES_USAGE = "obs_pipeline_bytes_usage".freeze
87
93
  OBS_PIPELINE_BYTES_PERCENTAGE = "obs_pipeline_bytes_percentage".freeze
94
+ OBS_PIPELINES_VCPU_USAGE = "obs_pipelines_vcpu_usage".freeze
95
+ OBS_PIPELINES_VCPU_PERCENTAGE = "obs_pipelines_vcpu_percentage".freeze
96
+ ONLINE_ARCHIVE_USAGE = "online_archive_usage".freeze
97
+ ONLINE_ARCHIVE_PERCENTAGE = "online_archive_percentage".freeze
88
98
  PROFILED_CONTAINER_USAGE = "profiled_container_usage".freeze
89
99
  PROFILED_CONTAINER_PERCENTAGE = "profiled_container_percentage".freeze
90
100
  PROFILED_FARGATE_USAGE = "profiled_fargate_usage".freeze
@@ -141,6 +151,8 @@ module DatadogAPIClient::V1
141
151
  INGESTED_SPANS_BYTES_PERCENTAGE = "ingested_spans_bytes_percentage".freeze
142
152
  SIEM_INGESTED_BYTES_USAGE = "siem_ingested_bytes_usage".freeze
143
153
  SIEM_INGESTED_BYTES_PERCENTAGE = "siem_ingested_bytes_percentage".freeze
154
+ WORKFLOW_EXECUTIONS_USAGE = "workflow_executions_usage".freeze
155
+ WORKFLOW_EXECUTIONS_PERCENTAGE = "workflow_executions_percentage".freeze
144
156
  ALL = "*".freeze
145
157
  end
146
158
  end
@@ -57,6 +57,12 @@ module DatadogAPIClient::V1
57
57
  # The Application Security Monitoring host usage by tag(s).
58
58
  attr_accessor :appsec_usage
59
59
 
60
+ # The percentage of Application Security Monitoring Serverless traced invocations usage by tag(s).
61
+ attr_accessor :asm_serverless_traced_invocations_percentage
62
+
63
+ # The Application Security Monitoring Serverless traced invocations usage by tag(s).
64
+ attr_accessor :asm_serverless_traced_invocations_usage
65
+
60
66
  # The percentage of synthetic browser test usage by tag(s).
61
67
  attr_accessor :browser_percentage
62
68
 
@@ -153,6 +159,12 @@ module DatadogAPIClient::V1
153
159
  # The Database Monitoring queries usage by tag(s).
154
160
  attr_accessor :dbm_queries_usage
155
161
 
162
+ # The percentage of error tracking events usage by tag(s).
163
+ attr_accessor :error_tracking_percentage
164
+
165
+ # The error tracking events usage by tag(s).
166
+ attr_accessor :error_tracking_usage
167
+
156
168
  # The percentage of estimated live indexed logs usage by tag(s).
157
169
  attr_accessor :estimated_indexed_logs_percentage
158
170
 
@@ -195,6 +207,12 @@ module DatadogAPIClient::V1
195
207
  # The Lambda function usage by tag(s).
196
208
  attr_accessor :functions_usage
197
209
 
210
+ # The percentage of Incident Management monthly active users usage by tag(s).
211
+ attr_accessor :incident_management_monthly_active_users_percentage
212
+
213
+ # The Incident Management monthly active users usage by tag(s).
214
+ attr_accessor :incident_management_monthly_active_users_usage
215
+
198
216
  # The percentage of APM Indexed Spans usage by tag(s).
199
217
  attr_accessor :indexed_spans_percentage
200
218
 
@@ -315,6 +333,18 @@ module DatadogAPIClient::V1
315
333
  # The observability pipeline bytes usage by tag(s).
316
334
  attr_accessor :obs_pipeline_bytes_usage
317
335
 
336
+ # The percentage of observability pipeline per core usage by tag(s).
337
+ attr_accessor :obs_pipelines_vcpu_percentage
338
+
339
+ # The observability pipeline per core usage by tag(s).
340
+ attr_accessor :obs_pipelines_vcpu_usage
341
+
342
+ # The percentage of online archive usage by tag(s).
343
+ attr_accessor :online_archive_percentage
344
+
345
+ # The online archive usage by tag(s).
346
+ attr_accessor :online_archive_usage
347
+
318
348
  # The percentage of profiled container usage by tag(s).
319
349
  attr_accessor :profiled_container_percentage
320
350
 
@@ -381,6 +411,12 @@ module DatadogAPIClient::V1
381
411
  # The Application Vulnerability Management usage by tag(s).
382
412
  attr_accessor :vuln_management_hosts_usage
383
413
 
414
+ # The percentage of workflow executions usage by tag(s).
415
+ attr_accessor :workflow_executions_percentage
416
+
417
+ # The total workflow executions usage by tag(s).
418
+ attr_accessor :workflow_executions_usage
419
+
384
420
  # Attribute mapping from ruby-style variable name to JSON key.
385
421
  # @!visibility private
386
422
  def self.attribute_map
@@ -397,6 +433,8 @@ module DatadogAPIClient::V1
397
433
  :'appsec_fargate_usage' => :'appsec_fargate_usage',
398
434
  :'appsec_percentage' => :'appsec_percentage',
399
435
  :'appsec_usage' => :'appsec_usage',
436
+ :'asm_serverless_traced_invocations_percentage' => :'asm_serverless_traced_invocations_percentage',
437
+ :'asm_serverless_traced_invocations_usage' => :'asm_serverless_traced_invocations_usage',
400
438
  :'browser_percentage' => :'browser_percentage',
401
439
  :'browser_usage' => :'browser_usage',
402
440
  :'ci_pipeline_indexed_spans_percentage' => :'ci_pipeline_indexed_spans_percentage',
@@ -429,6 +467,8 @@ module DatadogAPIClient::V1
429
467
  :'dbm_hosts_usage' => :'dbm_hosts_usage',
430
468
  :'dbm_queries_percentage' => :'dbm_queries_percentage',
431
469
  :'dbm_queries_usage' => :'dbm_queries_usage',
470
+ :'error_tracking_percentage' => :'error_tracking_percentage',
471
+ :'error_tracking_usage' => :'error_tracking_usage',
432
472
  :'estimated_indexed_logs_percentage' => :'estimated_indexed_logs_percentage',
433
473
  :'estimated_indexed_logs_usage' => :'estimated_indexed_logs_usage',
434
474
  :'estimated_indexed_spans_percentage' => :'estimated_indexed_spans_percentage',
@@ -443,6 +483,8 @@ module DatadogAPIClient::V1
443
483
  :'fargate_usage' => :'fargate_usage',
444
484
  :'functions_percentage' => :'functions_percentage',
445
485
  :'functions_usage' => :'functions_usage',
486
+ :'incident_management_monthly_active_users_percentage' => :'incident_management_monthly_active_users_percentage',
487
+ :'incident_management_monthly_active_users_usage' => :'incident_management_monthly_active_users_usage',
446
488
  :'indexed_spans_percentage' => :'indexed_spans_percentage',
447
489
  :'indexed_spans_usage' => :'indexed_spans_usage',
448
490
  :'infra_host_percentage' => :'infra_host_percentage',
@@ -483,6 +525,10 @@ module DatadogAPIClient::V1
483
525
  :'npm_host_usage' => :'npm_host_usage',
484
526
  :'obs_pipeline_bytes_percentage' => :'obs_pipeline_bytes_percentage',
485
527
  :'obs_pipeline_bytes_usage' => :'obs_pipeline_bytes_usage',
528
+ :'obs_pipelines_vcpu_percentage' => :'obs_pipelines_vcpu_percentage',
529
+ :'obs_pipelines_vcpu_usage' => :'obs_pipelines_vcpu_usage',
530
+ :'online_archive_percentage' => :'online_archive_percentage',
531
+ :'online_archive_usage' => :'online_archive_usage',
486
532
  :'profiled_container_percentage' => :'profiled_container_percentage',
487
533
  :'profiled_container_usage' => :'profiled_container_usage',
488
534
  :'profiled_fargate_percentage' => :'profiled_fargate_percentage',
@@ -504,7 +550,9 @@ module DatadogAPIClient::V1
504
550
  :'universal_service_monitoring_percentage' => :'universal_service_monitoring_percentage',
505
551
  :'universal_service_monitoring_usage' => :'universal_service_monitoring_usage',
506
552
  :'vuln_management_hosts_percentage' => :'vuln_management_hosts_percentage',
507
- :'vuln_management_hosts_usage' => :'vuln_management_hosts_usage'
553
+ :'vuln_management_hosts_usage' => :'vuln_management_hosts_usage',
554
+ :'workflow_executions_percentage' => :'workflow_executions_percentage',
555
+ :'workflow_executions_usage' => :'workflow_executions_usage'
508
556
  }
509
557
  end
510
558
 
@@ -524,6 +572,8 @@ module DatadogAPIClient::V1
524
572
  :'appsec_fargate_usage' => :'Float',
525
573
  :'appsec_percentage' => :'Float',
526
574
  :'appsec_usage' => :'Float',
575
+ :'asm_serverless_traced_invocations_percentage' => :'Float',
576
+ :'asm_serverless_traced_invocations_usage' => :'Float',
527
577
  :'browser_percentage' => :'Float',
528
578
  :'browser_usage' => :'Float',
529
579
  :'ci_pipeline_indexed_spans_percentage' => :'Float',
@@ -556,6 +606,8 @@ module DatadogAPIClient::V1
556
606
  :'dbm_hosts_usage' => :'Float',
557
607
  :'dbm_queries_percentage' => :'Float',
558
608
  :'dbm_queries_usage' => :'Float',
609
+ :'error_tracking_percentage' => :'Float',
610
+ :'error_tracking_usage' => :'Float',
559
611
  :'estimated_indexed_logs_percentage' => :'Float',
560
612
  :'estimated_indexed_logs_usage' => :'Float',
561
613
  :'estimated_indexed_spans_percentage' => :'Float',
@@ -570,6 +622,8 @@ module DatadogAPIClient::V1
570
622
  :'fargate_usage' => :'Float',
571
623
  :'functions_percentage' => :'Float',
572
624
  :'functions_usage' => :'Float',
625
+ :'incident_management_monthly_active_users_percentage' => :'Float',
626
+ :'incident_management_monthly_active_users_usage' => :'Float',
573
627
  :'indexed_spans_percentage' => :'Float',
574
628
  :'indexed_spans_usage' => :'Float',
575
629
  :'infra_host_percentage' => :'Float',
@@ -610,6 +664,10 @@ module DatadogAPIClient::V1
610
664
  :'npm_host_usage' => :'Float',
611
665
  :'obs_pipeline_bytes_percentage' => :'Float',
612
666
  :'obs_pipeline_bytes_usage' => :'Float',
667
+ :'obs_pipelines_vcpu_percentage' => :'Float',
668
+ :'obs_pipelines_vcpu_usage' => :'Float',
669
+ :'online_archive_percentage' => :'Float',
670
+ :'online_archive_usage' => :'Float',
613
671
  :'profiled_container_percentage' => :'Float',
614
672
  :'profiled_container_usage' => :'Float',
615
673
  :'profiled_fargate_percentage' => :'Float',
@@ -631,7 +689,9 @@ module DatadogAPIClient::V1
631
689
  :'universal_service_monitoring_percentage' => :'Float',
632
690
  :'universal_service_monitoring_usage' => :'Float',
633
691
  :'vuln_management_hosts_percentage' => :'Float',
634
- :'vuln_management_hosts_usage' => :'Float'
692
+ :'vuln_management_hosts_usage' => :'Float',
693
+ :'workflow_executions_percentage' => :'Float',
694
+ :'workflow_executions_usage' => :'Float'
635
695
  }
636
696
  end
637
697
 
@@ -699,6 +759,14 @@ module DatadogAPIClient::V1
699
759
  self.appsec_usage = attributes[:'appsec_usage']
700
760
  end
701
761
 
762
+ if attributes.key?(:'asm_serverless_traced_invocations_percentage')
763
+ self.asm_serverless_traced_invocations_percentage = attributes[:'asm_serverless_traced_invocations_percentage']
764
+ end
765
+
766
+ if attributes.key?(:'asm_serverless_traced_invocations_usage')
767
+ self.asm_serverless_traced_invocations_usage = attributes[:'asm_serverless_traced_invocations_usage']
768
+ end
769
+
702
770
  if attributes.key?(:'browser_percentage')
703
771
  self.browser_percentage = attributes[:'browser_percentage']
704
772
  end
@@ -827,6 +895,14 @@ module DatadogAPIClient::V1
827
895
  self.dbm_queries_usage = attributes[:'dbm_queries_usage']
828
896
  end
829
897
 
898
+ if attributes.key?(:'error_tracking_percentage')
899
+ self.error_tracking_percentage = attributes[:'error_tracking_percentage']
900
+ end
901
+
902
+ if attributes.key?(:'error_tracking_usage')
903
+ self.error_tracking_usage = attributes[:'error_tracking_usage']
904
+ end
905
+
830
906
  if attributes.key?(:'estimated_indexed_logs_percentage')
831
907
  self.estimated_indexed_logs_percentage = attributes[:'estimated_indexed_logs_percentage']
832
908
  end
@@ -883,6 +959,14 @@ module DatadogAPIClient::V1
883
959
  self.functions_usage = attributes[:'functions_usage']
884
960
  end
885
961
 
962
+ if attributes.key?(:'incident_management_monthly_active_users_percentage')
963
+ self.incident_management_monthly_active_users_percentage = attributes[:'incident_management_monthly_active_users_percentage']
964
+ end
965
+
966
+ if attributes.key?(:'incident_management_monthly_active_users_usage')
967
+ self.incident_management_monthly_active_users_usage = attributes[:'incident_management_monthly_active_users_usage']
968
+ end
969
+
886
970
  if attributes.key?(:'indexed_spans_percentage')
887
971
  self.indexed_spans_percentage = attributes[:'indexed_spans_percentage']
888
972
  end
@@ -1043,6 +1127,22 @@ module DatadogAPIClient::V1
1043
1127
  self.obs_pipeline_bytes_usage = attributes[:'obs_pipeline_bytes_usage']
1044
1128
  end
1045
1129
 
1130
+ if attributes.key?(:'obs_pipelines_vcpu_percentage')
1131
+ self.obs_pipelines_vcpu_percentage = attributes[:'obs_pipelines_vcpu_percentage']
1132
+ end
1133
+
1134
+ if attributes.key?(:'obs_pipelines_vcpu_usage')
1135
+ self.obs_pipelines_vcpu_usage = attributes[:'obs_pipelines_vcpu_usage']
1136
+ end
1137
+
1138
+ if attributes.key?(:'online_archive_percentage')
1139
+ self.online_archive_percentage = attributes[:'online_archive_percentage']
1140
+ end
1141
+
1142
+ if attributes.key?(:'online_archive_usage')
1143
+ self.online_archive_usage = attributes[:'online_archive_usage']
1144
+ end
1145
+
1046
1146
  if attributes.key?(:'profiled_container_percentage')
1047
1147
  self.profiled_container_percentage = attributes[:'profiled_container_percentage']
1048
1148
  end
@@ -1130,6 +1230,14 @@ module DatadogAPIClient::V1
1130
1230
  if attributes.key?(:'vuln_management_hosts_usage')
1131
1231
  self.vuln_management_hosts_usage = attributes[:'vuln_management_hosts_usage']
1132
1232
  end
1233
+
1234
+ if attributes.key?(:'workflow_executions_percentage')
1235
+ self.workflow_executions_percentage = attributes[:'workflow_executions_percentage']
1236
+ end
1237
+
1238
+ if attributes.key?(:'workflow_executions_usage')
1239
+ self.workflow_executions_usage = attributes[:'workflow_executions_usage']
1240
+ end
1133
1241
  end
1134
1242
 
1135
1243
  # Checks equality by comparing each attribute.
@@ -1150,6 +1258,8 @@ module DatadogAPIClient::V1
1150
1258
  appsec_fargate_usage == o.appsec_fargate_usage &&
1151
1259
  appsec_percentage == o.appsec_percentage &&
1152
1260
  appsec_usage == o.appsec_usage &&
1261
+ asm_serverless_traced_invocations_percentage == o.asm_serverless_traced_invocations_percentage &&
1262
+ asm_serverless_traced_invocations_usage == o.asm_serverless_traced_invocations_usage &&
1153
1263
  browser_percentage == o.browser_percentage &&
1154
1264
  browser_usage == o.browser_usage &&
1155
1265
  ci_pipeline_indexed_spans_percentage == o.ci_pipeline_indexed_spans_percentage &&
@@ -1182,6 +1292,8 @@ module DatadogAPIClient::V1
1182
1292
  dbm_hosts_usage == o.dbm_hosts_usage &&
1183
1293
  dbm_queries_percentage == o.dbm_queries_percentage &&
1184
1294
  dbm_queries_usage == o.dbm_queries_usage &&
1295
+ error_tracking_percentage == o.error_tracking_percentage &&
1296
+ error_tracking_usage == o.error_tracking_usage &&
1185
1297
  estimated_indexed_logs_percentage == o.estimated_indexed_logs_percentage &&
1186
1298
  estimated_indexed_logs_usage == o.estimated_indexed_logs_usage &&
1187
1299
  estimated_indexed_spans_percentage == o.estimated_indexed_spans_percentage &&
@@ -1196,6 +1308,8 @@ module DatadogAPIClient::V1
1196
1308
  fargate_usage == o.fargate_usage &&
1197
1309
  functions_percentage == o.functions_percentage &&
1198
1310
  functions_usage == o.functions_usage &&
1311
+ incident_management_monthly_active_users_percentage == o.incident_management_monthly_active_users_percentage &&
1312
+ incident_management_monthly_active_users_usage == o.incident_management_monthly_active_users_usage &&
1199
1313
  indexed_spans_percentage == o.indexed_spans_percentage &&
1200
1314
  indexed_spans_usage == o.indexed_spans_usage &&
1201
1315
  infra_host_percentage == o.infra_host_percentage &&
@@ -1236,6 +1350,10 @@ module DatadogAPIClient::V1
1236
1350
  npm_host_usage == o.npm_host_usage &&
1237
1351
  obs_pipeline_bytes_percentage == o.obs_pipeline_bytes_percentage &&
1238
1352
  obs_pipeline_bytes_usage == o.obs_pipeline_bytes_usage &&
1353
+ obs_pipelines_vcpu_percentage == o.obs_pipelines_vcpu_percentage &&
1354
+ obs_pipelines_vcpu_usage == o.obs_pipelines_vcpu_usage &&
1355
+ online_archive_percentage == o.online_archive_percentage &&
1356
+ online_archive_usage == o.online_archive_usage &&
1239
1357
  profiled_container_percentage == o.profiled_container_percentage &&
1240
1358
  profiled_container_usage == o.profiled_container_usage &&
1241
1359
  profiled_fargate_percentage == o.profiled_fargate_percentage &&
@@ -1257,14 +1375,16 @@ module DatadogAPIClient::V1
1257
1375
  universal_service_monitoring_percentage == o.universal_service_monitoring_percentage &&
1258
1376
  universal_service_monitoring_usage == o.universal_service_monitoring_usage &&
1259
1377
  vuln_management_hosts_percentage == o.vuln_management_hosts_percentage &&
1260
- vuln_management_hosts_usage == o.vuln_management_hosts_usage
1378
+ vuln_management_hosts_usage == o.vuln_management_hosts_usage &&
1379
+ workflow_executions_percentage == o.workflow_executions_percentage &&
1380
+ workflow_executions_usage == o.workflow_executions_usage
1261
1381
  end
1262
1382
 
1263
1383
  # Calculates hash code according to all attributes.
1264
1384
  # @return [Integer] Hash code
1265
1385
  # @!visibility private
1266
1386
  def hash
1267
- [api_percentage, api_usage, apm_fargate_percentage, apm_fargate_usage, apm_host_percentage, apm_host_usage, apm_usm_percentage, apm_usm_usage, appsec_fargate_percentage, appsec_fargate_usage, appsec_percentage, appsec_usage, browser_percentage, browser_usage, ci_pipeline_indexed_spans_percentage, ci_pipeline_indexed_spans_usage, ci_test_indexed_spans_percentage, ci_test_indexed_spans_usage, ci_visibility_itr_percentage, ci_visibility_itr_usage, cloud_siem_percentage, cloud_siem_usage, container_excl_agent_percentage, container_excl_agent_usage, container_percentage, container_usage, cspm_containers_percentage, cspm_containers_usage, cspm_hosts_percentage, cspm_hosts_usage, custom_event_percentage, custom_event_usage, custom_ingested_timeseries_percentage, custom_ingested_timeseries_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_containers_percentage, cws_containers_usage, cws_hosts_percentage, cws_hosts_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_logs_percentage, estimated_ingested_logs_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, estimated_rum_sessions_percentage, estimated_rum_sessions_usage, fargate_percentage, fargate_usage, functions_percentage, functions_usage, indexed_spans_percentage, indexed_spans_usage, infra_host_percentage, infra_host_usage, ingested_logs_bytes_percentage, ingested_logs_bytes_usage, ingested_spans_bytes_percentage, ingested_spans_bytes_usage, invocations_percentage, invocations_usage, lambda_traced_invocations_percentage, lambda_traced_invocations_usage, logs_indexed_15day_percentage, logs_indexed_15day_usage, logs_indexed_180day_percentage, logs_indexed_180day_usage, logs_indexed_30day_percentage, logs_indexed_30day_usage, logs_indexed_360day_percentage, logs_indexed_360day_usage, logs_indexed_3day_percentage, logs_indexed_3day_usage, logs_indexed_45day_percentage, logs_indexed_45day_usage, logs_indexed_60day_percentage, logs_indexed_60day_usage, logs_indexed_7day_percentage, logs_indexed_7day_usage, logs_indexed_90day_percentage, logs_indexed_90day_usage, logs_indexed_custom_retention_percentage, logs_indexed_custom_retention_usage, mobile_app_testing_percentage, mobile_app_testing_usage, ndm_netflow_percentage, ndm_netflow_usage, npm_host_percentage, npm_host_usage, obs_pipeline_bytes_percentage, obs_pipeline_bytes_usage, profiled_container_percentage, profiled_container_usage, profiled_fargate_percentage, profiled_fargate_usage, profiled_host_percentage, profiled_host_usage, rum_browser_mobile_sessions_percentage, rum_browser_mobile_sessions_usage, rum_replay_sessions_percentage, rum_replay_sessions_usage, sds_scanned_bytes_percentage, sds_scanned_bytes_usage, serverless_apps_percentage, serverless_apps_usage, siem_ingested_bytes_percentage, siem_ingested_bytes_usage, snmp_percentage, snmp_usage, universal_service_monitoring_percentage, universal_service_monitoring_usage, vuln_management_hosts_percentage, vuln_management_hosts_usage].hash
1387
+ [api_percentage, api_usage, apm_fargate_percentage, apm_fargate_usage, apm_host_percentage, apm_host_usage, apm_usm_percentage, apm_usm_usage, appsec_fargate_percentage, appsec_fargate_usage, appsec_percentage, appsec_usage, asm_serverless_traced_invocations_percentage, asm_serverless_traced_invocations_usage, browser_percentage, browser_usage, ci_pipeline_indexed_spans_percentage, ci_pipeline_indexed_spans_usage, ci_test_indexed_spans_percentage, ci_test_indexed_spans_usage, ci_visibility_itr_percentage, ci_visibility_itr_usage, cloud_siem_percentage, cloud_siem_usage, container_excl_agent_percentage, container_excl_agent_usage, container_percentage, container_usage, cspm_containers_percentage, cspm_containers_usage, cspm_hosts_percentage, cspm_hosts_usage, custom_event_percentage, custom_event_usage, custom_ingested_timeseries_percentage, custom_ingested_timeseries_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_containers_percentage, cws_containers_usage, cws_hosts_percentage, cws_hosts_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, error_tracking_percentage, error_tracking_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_logs_percentage, estimated_ingested_logs_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, estimated_rum_sessions_percentage, estimated_rum_sessions_usage, fargate_percentage, fargate_usage, functions_percentage, functions_usage, incident_management_monthly_active_users_percentage, incident_management_monthly_active_users_usage, indexed_spans_percentage, indexed_spans_usage, infra_host_percentage, infra_host_usage, ingested_logs_bytes_percentage, ingested_logs_bytes_usage, ingested_spans_bytes_percentage, ingested_spans_bytes_usage, invocations_percentage, invocations_usage, lambda_traced_invocations_percentage, lambda_traced_invocations_usage, logs_indexed_15day_percentage, logs_indexed_15day_usage, logs_indexed_180day_percentage, logs_indexed_180day_usage, logs_indexed_30day_percentage, logs_indexed_30day_usage, logs_indexed_360day_percentage, logs_indexed_360day_usage, logs_indexed_3day_percentage, logs_indexed_3day_usage, logs_indexed_45day_percentage, logs_indexed_45day_usage, logs_indexed_60day_percentage, logs_indexed_60day_usage, logs_indexed_7day_percentage, logs_indexed_7day_usage, logs_indexed_90day_percentage, logs_indexed_90day_usage, logs_indexed_custom_retention_percentage, logs_indexed_custom_retention_usage, mobile_app_testing_percentage, mobile_app_testing_usage, ndm_netflow_percentage, ndm_netflow_usage, npm_host_percentage, npm_host_usage, obs_pipeline_bytes_percentage, obs_pipeline_bytes_usage, obs_pipelines_vcpu_percentage, obs_pipelines_vcpu_usage, online_archive_percentage, online_archive_usage, profiled_container_percentage, profiled_container_usage, profiled_fargate_percentage, profiled_fargate_usage, profiled_host_percentage, profiled_host_usage, rum_browser_mobile_sessions_percentage, rum_browser_mobile_sessions_usage, rum_replay_sessions_percentage, rum_replay_sessions_usage, sds_scanned_bytes_percentage, sds_scanned_bytes_usage, serverless_apps_percentage, serverless_apps_usage, siem_ingested_bytes_percentage, siem_ingested_bytes_usage, snmp_percentage, snmp_usage, universal_service_monitoring_percentage, universal_service_monitoring_usage, vuln_management_hosts_percentage, vuln_management_hosts_usage, workflow_executions_percentage, workflow_executions_usage].hash
1268
1388
  end
1269
1389
  end
1270
1390
  end
@@ -25,7 +25,7 @@ module DatadogAPIClient::V1
25
25
  # The name of the host that produced the metric.
26
26
  attr_accessor :host
27
27
 
28
- # If the type of the metric is rate or count, define the corresponding interval.
28
+ # If the type of the metric is rate or count, define the corresponding interval in seconds.
29
29
  attr_accessor :interval
30
30
 
31
31
  # The name of the timeseries.
@@ -18,7 +18,7 @@ require 'time'
18
18
 
19
19
  module DatadogAPIClient::V1
20
20
  # The time-slice condition, composed of 3 parts: 1. the metric timeseries query, 2. the comparator,
21
- # and 3. the threshold.
21
+ # and 3. the threshold. Optionally, a fourth part, the query interval, can be provided.
22
22
  class SLOTimeSliceCondition
23
23
  include BaseGenericModel
24
24
 
@@ -28,6 +28,11 @@ module DatadogAPIClient::V1
28
28
  # The queries and formula used to calculate the SLI value.
29
29
  attr_reader :query
30
30
 
31
+ # The interval used when querying data, which defines the size of a time slice.
32
+ # Two values are allowed: 60 (1 minute) and 300 (5 minutes).
33
+ # If not provided, the value defaults to 300 (5 minutes).
34
+ attr_accessor :query_interval_seconds
35
+
31
36
  # The threshold value to which each SLI value will be compared.
32
37
  attr_reader :threshold
33
38
 
@@ -37,6 +42,7 @@ module DatadogAPIClient::V1
37
42
  {
38
43
  :'comparator' => :'comparator',
39
44
  :'query' => :'query',
45
+ :'query_interval_seconds' => :'query_interval_seconds',
40
46
  :'threshold' => :'threshold'
41
47
  }
42
48
  end
@@ -47,6 +53,7 @@ module DatadogAPIClient::V1
47
53
  {
48
54
  :'comparator' => :'SLOTimeSliceComparator',
49
55
  :'query' => :'SLOTimeSliceQuery',
56
+ :'query_interval_seconds' => :'SLOTimeSliceInterval',
50
57
  :'threshold' => :'Float'
51
58
  }
52
59
  end
@@ -75,6 +82,10 @@ module DatadogAPIClient::V1
75
82
  self.query = attributes[:'query']
76
83
  end
77
84
 
85
+ if attributes.key?(:'query_interval_seconds')
86
+ self.query_interval_seconds = attributes[:'query_interval_seconds']
87
+ end
88
+
78
89
  if attributes.key?(:'threshold')
79
90
  self.threshold = attributes[:'threshold']
80
91
  end
@@ -128,6 +139,7 @@ module DatadogAPIClient::V1
128
139
  self.class == o.class &&
129
140
  comparator == o.comparator &&
130
141
  query == o.query &&
142
+ query_interval_seconds == o.query_interval_seconds &&
131
143
  threshold == o.threshold
132
144
  end
133
145
 
@@ -135,7 +147,7 @@ module DatadogAPIClient::V1
135
147
  # @return [Integer] Hash code
136
148
  # @!visibility private
137
149
  def hash
138
- [comparator, query, threshold].hash
150
+ [comparator, query, query_interval_seconds, threshold].hash
139
151
  end
140
152
  end
141
153
  end
@@ -0,0 +1,29 @@
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 interval used when querying data, which defines the size of a time slice.
21
+ # Two values are allowed: 60 (1 minute) and 300 (5 minutes).
22
+ # If not provided, the value defaults to 300 (5 minutes).
23
+ class SLOTimeSliceInterval
24
+ include BaseEnumModel
25
+
26
+ ONE_MINUTE = 60.freeze
27
+ FIVE_MINUTES = 300.freeze
28
+ end
29
+ end
@@ -22,7 +22,7 @@ module DatadogAPIClient::V1
22
22
  include BaseGenericModel
23
23
 
24
24
  # The time-slice condition, composed of 3 parts: 1. the metric timeseries query, 2. the comparator,
25
- # and 3. the threshold.
25
+ # and 3. the threshold. Optionally, a fourth part, the query interval, can be provided.
26
26
  attr_reader :time_slice
27
27
 
28
28
  # Attribute mapping from ruby-style variable name to JSON key.