datadog_api_client 1.10.0 → 2.0.1

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 (351) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +1014 -166
  4. data/.generator/schemas/v2/openapi.yaml +1615 -86
  5. data/.generator/src/generator/cli.py +57 -40
  6. data/.generator/src/generator/formatter.py +14 -0
  7. data/.generator/src/generator/openapi.py +12 -6
  8. data/.generator/src/generator/templates/api.j2 +14 -13
  9. data/.generator/src/generator/templates/api_client.j2 +63 -11
  10. data/.generator/src/generator/templates/configuration.j2 +12 -8
  11. data/.generator/src/generator/templates/example.j2 +1 -1
  12. data/.generator/src/generator/templates/inflector.j2 +28 -0
  13. data/.generator/src/generator/templates/model_base.j2 +2 -2
  14. data/.generator/src/generator/templates/model_oneof.j2 +1 -1
  15. data/.generator/src/generator/templates/package.j2 +7 -12
  16. data/.github/workflows/approved_status.yml +0 -2
  17. data/.github/workflows/codeql-analysis.yml +49 -0
  18. data/.github/workflows/docs.yml +1 -1
  19. data/.github/workflows/prepare_release.yml +1 -1
  20. data/.github/workflows/publish.yml +1 -1
  21. data/.github/workflows/release.yml +1 -1
  22. data/.github/workflows/test.yml +4 -6
  23. data/.github/workflows/test_integration.yml +1 -8
  24. data/.pre-commit-config.yaml +3 -12
  25. data/CHANGELOG.md +69 -0
  26. data/Gemfile +1 -0
  27. data/Makefile +1 -2
  28. data/README.md +13 -13
  29. data/datadog_api_client.gemspec +2 -0
  30. data/examples/v1/dashboards/CreateDashboard_1442588603.rb +61 -0
  31. data/examples/v1/dashboards/CreateDashboard_252716965.rb +52 -0
  32. data/examples/v1/dashboards/CreateDashboard_3882428227.rb +60 -0
  33. data/examples/v1/downtimes/CreateDowntime_1393233946.rb +3 -0
  34. data/examples/v1/downtimes/CreateDowntime_2908359488.rb +3 -0
  35. data/examples/v1/downtimes/CreateDowntime_3059354445.rb +3 -0
  36. data/examples/v1/events/ListEvents.rb +1 -1
  37. data/examples/v1/metrics/SubmitDistributionPoints.rb +22 -0
  38. data/examples/v1/metrics/SubmitDistributionPoints_3109558960.rb +25 -0
  39. data/examples/v1/organizations/DowngradeOrg.rb +5 -0
  40. data/examples/v1/organizations/UpdateOrg.rb +1 -0
  41. data/examples/v1/service-level-objectives/GetSLOHistory.rb +1 -1
  42. data/examples/v1/service-level-objectives/SearchSLO.rb +16 -0
  43. data/examples/v1/snapshots/GetGraphSnapshot.rb +2 -0
  44. data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +3 -0
  45. data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +4 -1
  46. data/examples/v1/synthetics/GetAPITestLatestResults.rb +1 -1
  47. data/examples/v1/synthetics/GetAPITestResult.rb +1 -1
  48. data/examples/v1/synthetics/GetBrowserTestLatestResults.rb +1 -1
  49. data/examples/v1/synthetics/GetBrowserTestResult.rb +1 -1
  50. data/examples/v1/synthetics/UpdateBrowserTest.rb +3 -0
  51. data/examples/v1/usage-metering/GetDailyCustomReports.rb +1 -1
  52. data/examples/v1/usage-metering/GetHourlyUsageAttribution.rb +0 -3
  53. data/examples/v1/usage-metering/GetMonthlyCustomReports.rb +1 -1
  54. data/examples/v1/usage-metering/GetMonthlyUsageAttribution.rb +0 -3
  55. data/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.rb +1 -1
  56. data/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb +1 -1
  57. data/examples/v1/usage-metering/GetUsageAttribution.rb +1 -1
  58. data/examples/v1/usage-metering/GetUsageCIApp.rb +2 -5
  59. data/examples/v1/usage-metering/GetUsageCIApp_1064440884.rb +8 -0
  60. data/examples/v1/usage-metering/GetUsageCWS.rb +2 -5
  61. data/examples/v1/usage-metering/GetUsageCWS_736958514.rb +8 -0
  62. data/examples/v1/usage-metering/GetUsageDBM.rb +2 -5
  63. data/examples/v1/usage-metering/GetUsageDBM_3446806203.rb +8 -0
  64. data/examples/v1/usage-metering/GetUsageLambda.rb +2 -5
  65. data/examples/v1/usage-metering/GetUsageLambda_3132428705.rb +8 -0
  66. data/examples/v1/usage-metering/GetUsageLogs.rb +2 -5
  67. data/examples/v1/usage-metering/GetUsageLogsByIndex.rb +2 -5
  68. data/examples/v1/usage-metering/GetUsageLogsByIndex_1025184776.rb +8 -0
  69. data/examples/v1/usage-metering/GetUsageLogs_2562396405.rb +8 -0
  70. data/examples/v1/usage-metering/GetUsageNetworkFlows.rb +2 -5
  71. data/examples/v1/usage-metering/GetUsageNetworkFlows_1239422069.rb +8 -0
  72. data/examples/v1/usage-metering/GetUsageNetworkHosts.rb +2 -5
  73. data/examples/v1/usage-metering/GetUsageNetworkHosts_1249907835.rb +8 -0
  74. data/examples/v1/usage-metering/GetUsageOnlineArchive.rb +2 -5
  75. data/examples/v1/usage-metering/GetUsageOnlineArchive_1501172903.rb +8 -0
  76. data/examples/v1/usage-metering/GetUsageRumSessions.rb +2 -5
  77. data/examples/v1/usage-metering/GetUsageRumSessions_714937291.rb +8 -0
  78. data/examples/v1/usage-metering/GetUsageRumUnits.rb +2 -5
  79. data/examples/v1/usage-metering/GetUsageRumUnits_3959755399.rb +8 -0
  80. data/examples/v1/usage-metering/GetUsageSDS.rb +2 -5
  81. data/examples/v1/usage-metering/GetUsageSDS_271128478.rb +8 -0
  82. data/examples/v1/usage-metering/GetUsageSynthetics.rb +1 -1
  83. data/examples/v1/usage-metering/GetUsageSyntheticsAPI.rb +2 -5
  84. data/examples/v1/usage-metering/GetUsageSyntheticsAPI_4048033529.rb +8 -0
  85. data/examples/v1/usage-metering/GetUsageSyntheticsBrowser.rb +2 -5
  86. data/examples/v1/usage-metering/GetUsageSyntheticsBrowser_1704663299.rb +8 -0
  87. data/examples/v2/events/ListEvents.rb +8 -0
  88. data/examples/v2/events/ListEvents_2663715109.rb +14 -0
  89. data/examples/v2/events/SearchEvents.rb +23 -0
  90. data/examples/v2/incident-services/CreateIncidentService.rb +1 -1
  91. data/examples/v2/incident-services/DeleteIncidentService.rb +1 -1
  92. data/examples/v2/incident-services/GetIncidentService.rb +1 -1
  93. data/examples/v2/incident-services/ListIncidentServices.rb +1 -1
  94. data/examples/v2/incident-services/UpdateIncidentService.rb +1 -1
  95. data/examples/v2/incident-teams/CreateIncidentTeam.rb +1 -1
  96. data/examples/v2/incident-teams/DeleteIncidentTeam.rb +1 -1
  97. data/examples/v2/incident-teams/GetIncidentTeam.rb +1 -1
  98. data/examples/v2/incident-teams/ListIncidentTeams.rb +1 -1
  99. data/examples/v2/incident-teams/UpdateIncidentTeam.rb +1 -1
  100. data/examples/v2/incidents/CreateIncident.rb +1 -1
  101. data/examples/v2/incidents/DeleteIncident.rb +1 -1
  102. data/examples/v2/incidents/GetIncident.rb +1 -1
  103. data/examples/v2/incidents/ListIncidents.rb +1 -1
  104. data/examples/v2/incidents/UpdateIncident.rb +1 -1
  105. data/examples/v2/incidents/UpdateIncident_1009194038.rb +1 -1
  106. data/examples/v2/incidents/UpdateIncident_3369341440.rb +1 -1
  107. data/examples/v2/metrics/CreateTagConfiguration.rb +0 -3
  108. data/examples/v2/metrics/DeleteTagConfiguration.rb +0 -3
  109. data/examples/v2/metrics/ListTagConfigurationByName.rb +0 -3
  110. data/examples/v2/metrics/ListTagConfigurations.rb +0 -3
  111. data/examples/v2/metrics/ListTagConfigurations_103226315.rb +0 -3
  112. data/examples/v2/metrics/ListTagConfigurations_1799362914.rb +0 -3
  113. data/examples/v2/metrics/SubmitMetrics.rb +6 -0
  114. data/examples/v2/metrics/UpdateTagConfiguration.rb +0 -3
  115. data/examples/v2/opsgenie-integration/CreateOpsgenieService.rb +16 -0
  116. data/examples/v2/opsgenie-integration/DeleteOpsgenieService.rb +8 -0
  117. data/examples/v2/opsgenie-integration/GetOpsgenieService.rb +8 -0
  118. data/examples/v2/opsgenie-integration/ListOpsgenieServices.rb +5 -0
  119. data/examples/v2/opsgenie-integration/UpdateOpsgenieService.rb +21 -0
  120. data/examples/v2/security-monitoring/EditSecurityMonitoringSignalAssignee.rb +15 -0
  121. data/examples/v2/security-monitoring/EditSecurityMonitoringSignalIncidents.rb +15 -0
  122. data/examples/v2/security-monitoring/EditSecurityMonitoringSignalState.rb +14 -0
  123. data/examples/v2/security-monitoring/ListSecurityMonitoringSignals.rb +0 -3
  124. data/examples/v2/security-monitoring/SearchSecurityMonitoringSignals.rb +0 -3
  125. data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +4 -0
  126. data/examples/v2/usage-metering/GetEstimatedCostByOrg.rb +8 -0
  127. data/examples/v2/usage-metering/GetEstimatedCostByOrg_2734954020.rb +11 -0
  128. data/examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb +11 -0
  129. data/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.rb +2 -5
  130. data/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring_3959166796.rb +8 -0
  131. data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb +2 -5
  132. data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations_1436752065.rb +8 -0
  133. data/examples/v2/usage-metering/GetUsageObservabilityPipelines.rb +2 -5
  134. data/examples/v2/usage-metering/GetUsageObservabilityPipelines_970725512.rb +8 -0
  135. data/lib/datadog_api_client/{v2/api_client.rb → api_client.rb} +63 -11
  136. data/lib/datadog_api_client/api_key_configuration.rb +1 -18
  137. data/lib/datadog_api_client/{v1/configuration.rb → configuration.rb} +133 -29
  138. data/lib/datadog_api_client/inflector.rb +1293 -0
  139. data/lib/datadog_api_client/models.rb +66 -0
  140. data/lib/datadog_api_client/v1/api/authentication_api.rb +3 -11
  141. data/lib/datadog_api_client/v1/api/aws_integration_api.rb +19 -91
  142. data/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb +15 -71
  143. data/lib/datadog_api_client/v1/api/azure_integration_api.rb +11 -51
  144. data/lib/datadog_api_client/v1/api/dashboard_lists_api.rb +11 -51
  145. data/lib/datadog_api_client/v1/api/dashboards_api.rb +15 -71
  146. data/lib/datadog_api_client/v1/api/downtimes_api.rb +15 -71
  147. data/lib/datadog_api_client/v1/api/events_api.rb +9 -33
  148. data/lib/datadog_api_client/v1/api/gcp_integration_api.rb +9 -41
  149. data/lib/datadog_api_client/v1/api/hosts_api.rb +9 -41
  150. data/lib/datadog_api_client/v1/api/ip_ranges_api.rb +3 -11
  151. data/lib/datadog_api_client/v1/api/key_management_api.rb +21 -101
  152. data/lib/datadog_api_client/v1/api/logs_api.rb +5 -21
  153. data/lib/datadog_api_client/v1/api/logs_indexes_api.rb +13 -61
  154. data/lib/datadog_api_client/v1/api/logs_pipelines_api.rb +15 -71
  155. data/lib/datadog_api_client/v1/api/metrics_api.rb +86 -61
  156. data/lib/datadog_api_client/v1/api/monitors_api.rb +21 -101
  157. data/lib/datadog_api_client/v1/api/notebooks_api.rb +11 -51
  158. data/lib/datadog_api_client/v1/api/organizations_api.rb +77 -52
  159. data/lib/datadog_api_client/v1/api/pager_duty_integration_api.rb +9 -41
  160. data/lib/datadog_api_client/v1/api/security_monitoring_api.rb +10 -34
  161. data/lib/datadog_api_client/v1/api/service_checks_api.rb +3 -11
  162. data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +11 -51
  163. data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +100 -94
  164. data/lib/datadog_api_client/v1/api/slack_integration_api.rb +11 -51
  165. data/lib/datadog_api_client/v1/api/snapshots_api.rb +7 -11
  166. data/lib/datadog_api_client/v1/api/synthetics_api.rb +55 -271
  167. data/lib/datadog_api_client/v1/api/tags_api.rb +11 -51
  168. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +175 -418
  169. data/lib/datadog_api_client/v1/api/users_api.rb +11 -51
  170. data/lib/datadog_api_client/v1/api/webhooks_integration_api.rb +17 -81
  171. data/lib/datadog_api_client/v1/model_base.rb +2 -2
  172. data/lib/datadog_api_client/v1/models/distribution_point_item.rb +63 -0
  173. data/lib/datadog_api_client/v1/models/distribution_points_content_encoding.rb +26 -0
  174. data/lib/datadog_api_client/v1/models/distribution_points_payload.rb +124 -0
  175. data/lib/datadog_api_client/v1/models/distribution_points_series.rb +179 -0
  176. data/lib/datadog_api_client/v1/models/distribution_points_type.rb +26 -0
  177. data/lib/datadog_api_client/v1/models/distribution_widget_histogram_request_query.rb +64 -0
  178. data/lib/datadog_api_client/v1/models/distribution_widget_histogram_request_type.rb +26 -0
  179. data/lib/datadog_api_client/v1/models/distribution_widget_request.rb +21 -1
  180. data/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stat_name.rb +1 -0
  181. data/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb +1 -1
  182. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb +5 -1
  183. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +9 -0
  184. data/lib/datadog_api_client/v1/models/ip_prefixes_synthetics_private_locations.rb +125 -0
  185. data/lib/datadog_api_client/v1/models/ip_ranges.rb +11 -1
  186. data/lib/datadog_api_client/v1/models/logs_processor.rb +1 -1
  187. data/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb +1 -1
  188. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb +6 -2
  189. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +18 -0
  190. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +61 -1
  191. data/lib/datadog_api_client/v1/models/notebook_cell_create_request_attributes.rb +1 -1
  192. data/lib/datadog_api_client/v1/models/notebook_cell_response_attributes.rb +1 -1
  193. data/lib/datadog_api_client/v1/models/notebook_cell_time.rb +1 -1
  194. data/lib/datadog_api_client/v1/models/notebook_cell_update_request_attributes.rb +1 -1
  195. data/lib/datadog_api_client/v1/models/notebook_global_time.rb +1 -1
  196. data/lib/datadog_api_client/v1/models/notebook_update_cell.rb +1 -1
  197. data/lib/datadog_api_client/v1/models/org_downgraded_response.rb +111 -0
  198. data/lib/datadog_api_client/v1/models/organization.rb +14 -4
  199. data/lib/datadog_api_client/v1/models/search_slo_response.rb +131 -0
  200. data/lib/datadog_api_client/v1/models/search_slo_response_data.rb +121 -0
  201. data/lib/datadog_api_client/v1/models/search_slo_response_data_attributes.rb +123 -0
  202. data/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets.rb +197 -0
  203. data/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_int.rb +121 -0
  204. data/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_string.rb +121 -0
  205. data/lib/datadog_api_client/v1/models/search_slo_response_links.rb +151 -0
  206. data/lib/datadog_api_client/v1/models/search_slo_response_meta.rb +111 -0
  207. data/lib/datadog_api_client/v1/models/search_slo_response_meta_page.rb +181 -0
  208. data/lib/datadog_api_client/v1/models/service_level_objective.rb +3 -3
  209. data/lib/datadog_api_client/v1/models/service_level_objective_query.rb +1 -1
  210. data/lib/datadog_api_client/v1/models/service_level_objective_request.rb +3 -3
  211. data/lib/datadog_api_client/v1/models/slo_history_metrics.rb +1 -1
  212. data/lib/datadog_api_client/v1/models/slo_response_data.rb +1 -1
  213. data/lib/datadog_api_client/v1/models/sunburst_widget_legend.rb +1 -1
  214. data/lib/datadog_api_client/v1/models/synthetics_api_test.rb +11 -0
  215. data/lib/datadog_api_client/v1/models/synthetics_assertion.rb +1 -1
  216. data/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb +1 -1
  217. data/lib/datadog_api_client/v1/models/synthetics_browser_test.rb +11 -0
  218. data/lib/datadog_api_client/v1/models/synthetics_core_web_vitals.rb +2 -2
  219. data/lib/datadog_api_client/v1/models/synthetics_test_ci_options.rb +111 -0
  220. data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +11 -1
  221. data/lib/datadog_api_client/v1/models/tree_map_color_by.rb +1 -1
  222. data/lib/datadog_api_client/v1/models/tree_map_group_by.rb +1 -1
  223. data/lib/datadog_api_client/v1/models/tree_map_size_by.rb +1 -1
  224. data/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb +28 -6
  225. data/lib/datadog_api_client/v1/models/usage_attribution_body.rb +6 -2
  226. data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +6 -0
  227. data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +6 -0
  228. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +61 -1
  229. data/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb +474 -4
  230. data/lib/datadog_api_client/v1/models/widget_definition.rb +1 -1
  231. data/lib/datadog_api_client/v2/api/audit_api.rb +11 -25
  232. data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +11 -51
  233. data/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb +14 -62
  234. data/lib/datadog_api_client/v2/api/dashboard_lists_api.rb +9 -41
  235. data/lib/datadog_api_client/v2/api/events_api.rb +228 -0
  236. data/lib/datadog_api_client/v2/api/incident_services_api.rb +36 -46
  237. data/lib/datadog_api_client/v2/api/incident_teams_api.rb +36 -46
  238. data/lib/datadog_api_client/v2/api/incidents_api.rb +39 -48
  239. data/lib/datadog_api_client/v2/api/key_management_api.rb +29 -141
  240. data/lib/datadog_api_client/v2/api/logs_api.rb +15 -45
  241. data/lib/datadog_api_client/v2/api/logs_archives_api.rb +21 -101
  242. data/lib/datadog_api_client/v2/api/logs_metrics_api.rb +11 -51
  243. data/lib/datadog_api_client/v2/api/metrics_api.rb +26 -114
  244. data/lib/datadog_api_client/v2/api/opsgenie_integration_api.rb +355 -0
  245. data/lib/datadog_api_client/v2/api/organizations_api.rb +3 -11
  246. data/lib/datadog_api_client/v2/api/processes_api.rb +6 -13
  247. data/lib/datadog_api_client/v2/api/roles_api.rb +27 -131
  248. data/lib/datadog_api_client/v2/api/rum_api.rb +13 -35
  249. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +247 -125
  250. data/lib/datadog_api_client/v2/api/service_accounts_api.rb +11 -51
  251. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +190 -50
  252. data/lib/datadog_api_client/v2/api/users_api.rb +21 -101
  253. data/lib/datadog_api_client/v2/model_base.rb +2 -2
  254. data/lib/datadog_api_client/v2/models/api_key_response_included_item.rb +1 -1
  255. data/lib/datadog_api_client/v2/models/application_key_response_included_item.rb +1 -1
  256. data/lib/datadog_api_client/v2/models/authn_mapping_included.rb +1 -1
  257. data/lib/datadog_api_client/v2/models/event.rb +141 -0
  258. data/lib/datadog_api_client/v2/models/event_attributes.rb +305 -0
  259. data/lib/datadog_api_client/v2/models/event_priority.rb +27 -0
  260. data/lib/datadog_api_client/v2/models/event_response.rb +133 -0
  261. data/lib/datadog_api_client/v2/models/event_response_attributes.rb +133 -0
  262. data/lib/datadog_api_client/v2/models/event_status_type.rb +35 -0
  263. data/lib/datadog_api_client/v2/models/event_type.rb +26 -0
  264. data/lib/datadog_api_client/v2/models/events_list_request.rb +142 -0
  265. data/lib/datadog_api_client/v2/models/events_list_response.rb +133 -0
  266. data/lib/datadog_api_client/v2/models/events_list_response_links.rb +112 -0
  267. data/lib/datadog_api_client/v2/models/events_query_filter.rb +137 -0
  268. data/lib/datadog_api_client/v2/models/events_query_options.rb +124 -0
  269. data/lib/datadog_api_client/v2/models/events_request_page.rb +134 -0
  270. data/lib/datadog_api_client/v2/models/events_response_metadata.rb +144 -0
  271. data/lib/datadog_api_client/v2/models/events_response_metadata_page.rb +112 -0
  272. data/lib/datadog_api_client/v2/models/events_sort.rb +27 -0
  273. data/lib/datadog_api_client/v2/models/events_warning.rb +131 -0
  274. data/lib/datadog_api_client/v2/models/hourly_usage.rb +133 -0
  275. data/lib/datadog_api_client/v2/models/hourly_usage_attributes.rb +163 -0
  276. data/lib/datadog_api_client/v2/models/hourly_usage_measurement.rb +122 -0
  277. data/lib/datadog_api_client/v2/models/hourly_usage_metadata.rb +111 -0
  278. data/lib/datadog_api_client/v2/models/hourly_usage_pagination.rb +112 -0
  279. data/lib/datadog_api_client/v2/models/hourly_usage_response.rb +123 -0
  280. data/lib/datadog_api_client/v2/models/incident_field_attributes.rb +1 -1
  281. data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +1 -1
  282. data/lib/datadog_api_client/v2/models/incident_service_included_items.rb +1 -1
  283. data/lib/datadog_api_client/v2/models/incident_team_included_items.rb +1 -1
  284. data/lib/datadog_api_client/v2/models/incident_timeline_cell_create_attributes.rb +1 -1
  285. data/lib/datadog_api_client/v2/models/intake_payload_accepted.rb +10 -8
  286. data/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value.rb +1 -1
  287. data/lib/datadog_api_client/v2/models/logs_archive_create_request_destination.rb +1 -1
  288. data/lib/datadog_api_client/v2/models/logs_archive_destination.rb +1 -1
  289. data/lib/datadog_api_client/v2/models/logs_group_by_missing.rb +1 -1
  290. data/lib/datadog_api_client/v2/models/logs_group_by_total.rb +1 -1
  291. data/lib/datadog_api_client/v2/models/metric_intake_type.rb +1 -2
  292. data/lib/datadog_api_client/v2/models/metric_resource.rb +2 -2
  293. data/lib/datadog_api_client/v2/models/metric_series.rb +1 -1
  294. data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +0 -2
  295. data/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb +0 -2
  296. data/lib/datadog_api_client/v2/models/metric_volumes.rb +1 -1
  297. data/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations.rb +1 -1
  298. data/lib/datadog_api_client/v2/models/monitor_type.rb +215 -0
  299. data/lib/datadog_api_client/v2/models/opsgenie_service_create_attributes.rb +174 -0
  300. data/lib/datadog_api_client/v2/models/opsgenie_service_create_data.rb +145 -0
  301. data/lib/datadog_api_client/v2/models/opsgenie_service_create_request.rb +122 -0
  302. data/lib/datadog_api_client/v2/models/opsgenie_service_region_type.rb +28 -0
  303. data/lib/datadog_api_client/v2/models/opsgenie_service_response.rb +122 -0
  304. data/lib/datadog_api_client/v2/models/opsgenie_service_response_attributes.rb +132 -0
  305. data/lib/datadog_api_client/v2/models/opsgenie_service_response_data.rb +166 -0
  306. data/lib/datadog_api_client/v2/models/opsgenie_service_type.rb +26 -0
  307. data/lib/datadog_api_client/v2/models/opsgenie_service_update_attributes.rb +142 -0
  308. data/lib/datadog_api_client/v2/models/opsgenie_service_update_data.rb +166 -0
  309. data/lib/datadog_api_client/v2/models/opsgenie_service_update_request.rb +122 -0
  310. data/lib/datadog_api_client/v2/models/opsgenie_services_response.rb +124 -0
  311. data/lib/datadog_api_client/v2/models/rum_aggregate_bucket_value.rb +1 -1
  312. data/lib/datadog_api_client/v2/models/rum_group_by_missing.rb +1 -1
  313. data/lib/datadog_api_client/v2/models/rum_group_by_total.rb +1 -1
  314. data/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb +30 -4
  315. data/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_method.rb +27 -0
  316. data/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_threshold.rb +27 -0
  317. data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +13 -1
  318. data/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +13 -1
  319. data/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb +13 -1
  320. data/lib/datadog_api_client/v2/models/security_monitoring_signal_archive_reason.rb +29 -0
  321. data/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_attributes.rb +132 -0
  322. data/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_data.rb +122 -0
  323. data/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_request.rb +122 -0
  324. data/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_attributes.rb +134 -0
  325. data/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_data.rb +122 -0
  326. data/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_request.rb +122 -0
  327. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state.rb +28 -0
  328. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_attributes.rb +152 -0
  329. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb +122 -0
  330. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_request.rb +122 -0
  331. data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_attributes.rb +248 -0
  332. data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb +111 -0
  333. data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_response.rb +122 -0
  334. data/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb +152 -0
  335. data/lib/datadog_api_client/v2/models/user_response_included_item.rb +1 -1
  336. data/lib/datadog_api_client/version.rb +1 -1
  337. data/lib/datadog_api_client.rb +11 -5
  338. data/spec/{v1/api_client_spec.rb → api_client_spec.rb} +29 -29
  339. data/spec/{v1/configuration_spec.rb → configuration_spec.rb} +3 -3
  340. data/spec/spec_helper.rb +1 -3
  341. metadata +144 -20
  342. data/.dockerignore +0 -1
  343. data/.generator/src/generator/templates/api_error.j2 +0 -49
  344. data/lib/datadog_api_client/v1/api_client.rb +0 -453
  345. data/lib/datadog_api_client/v1/api_error.rb +0 -60
  346. data/lib/datadog_api_client/v1.rb +0 -794
  347. data/lib/datadog_api_client/v2/api_error.rb +0 -60
  348. data/lib/datadog_api_client/v2/configuration.rb +0 -427
  349. data/lib/datadog_api_client/v2.rb +0 -540
  350. data/spec/v2/api_client_spec.rb +0 -210
  351. data/spec/v2/configuration_spec.rb +0 -45
@@ -224,6 +224,13 @@ components:
224
224
  required: true
225
225
  schema:
226
226
  type: string
227
+ OpsgenieServiceIDPathParameter:
228
+ description: The UUID of the service.
229
+ in: path
230
+ name: integration_service_id
231
+ required: true
232
+ schema:
233
+ type: string
227
234
  PageNumber:
228
235
  description: Specific page number to return.
229
236
  in: query
@@ -283,6 +290,13 @@ components:
283
290
  schema:
284
291
  example: 00000000-0000-1234-0000-000000000000
285
292
  type: string
293
+ SignalID:
294
+ description: The ID of the signal.
295
+ in: path
296
+ name: signal_id
297
+ required: true
298
+ schema:
299
+ type: string
286
300
  UserID:
287
301
  description: The ID of the user.
288
302
  in: path
@@ -1496,6 +1510,340 @@ components:
1496
1510
  - INTEGRATION_SCREENBOARD
1497
1511
  - INTEGRATION_TIMEBOARD
1498
1512
  - HOST_TIMEBOARD
1513
+ Event:
1514
+ description: The metadata associated with a request.
1515
+ properties:
1516
+ id:
1517
+ description: Event ID.
1518
+ example: '6509751066204996294'
1519
+ type: string
1520
+ name:
1521
+ description: The event name.
1522
+ type: string
1523
+ source_id:
1524
+ description: Event source ID.
1525
+ example: 36
1526
+ type: integer
1527
+ type:
1528
+ description: Event type.
1529
+ example: error_tracking_alert
1530
+ type: string
1531
+ type: object
1532
+ EventAttributes:
1533
+ description: Object description of attributes from your event.
1534
+ properties:
1535
+ aggregation_key:
1536
+ description: Aggregation key of the event.
1537
+ type: string
1538
+ date_happened:
1539
+ description: 'POSIX timestamp of the event. Must be sent as an integer (no
1540
+ quotation marks).
1541
+
1542
+ Limited to events no older than 18 hours.'
1543
+ format: int64
1544
+ type: integer
1545
+ device_name:
1546
+ description: A device name.
1547
+ type: string
1548
+ duration:
1549
+ description: The duration between the triggering of the event and its recovery
1550
+ in nanoseconds.
1551
+ format: int64
1552
+ type: integer
1553
+ event_object:
1554
+ description: The event title.
1555
+ example: Did you hear the news today?
1556
+ type: string
1557
+ evt:
1558
+ $ref: '#/components/schemas/Event'
1559
+ hostname:
1560
+ description: 'Host name to associate with the event.
1561
+
1562
+ Any tags associated with the host are also applied to this event.'
1563
+ type: string
1564
+ monitor:
1565
+ $ref: '#/components/schemas/MonitorType'
1566
+ monitor_groups:
1567
+ description: List of groups referred to in the event.
1568
+ items:
1569
+ description: Group referred to in the event.
1570
+ type: string
1571
+ nullable: true
1572
+ type: array
1573
+ monitor_id:
1574
+ description: ID of the monitor that triggered the event. When an event isn't
1575
+ related to a monitor, this field is empty.
1576
+ nullable: true
1577
+ type: integer
1578
+ priority:
1579
+ $ref: '#/components/schemas/EventPriority'
1580
+ related_event_id:
1581
+ description: Related event ID.
1582
+ type: integer
1583
+ service:
1584
+ description: Service that triggered the event.
1585
+ example: datadog-api
1586
+ type: string
1587
+ source_type_name:
1588
+ description: 'The type of event being posted.
1589
+
1590
+ For example, `nagios`, `hudson`, `jenkins`, `my_apps`, `chef`, `puppet`,
1591
+ `git` or `bitbucket`.
1592
+
1593
+ The list of standard source attribute values is [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).'
1594
+ type: string
1595
+ sourcecategory:
1596
+ description: Identifier for the source of the event, such as a monitor alert,
1597
+ an externally-submitted event, or an integration.
1598
+ type: string
1599
+ status:
1600
+ $ref: '#/components/schemas/EventStatusType'
1601
+ tags:
1602
+ description: A list of tags to apply to the event.
1603
+ example:
1604
+ - environment:test
1605
+ items:
1606
+ description: A tag.
1607
+ type: string
1608
+ type: array
1609
+ timestamp:
1610
+ description: POSIX timestamp of your event in milliseconds.
1611
+ example: 1652274265000
1612
+ format: int64
1613
+ type: integer
1614
+ title:
1615
+ description: The event title.
1616
+ example: Oh boy!
1617
+ type: string
1618
+ type: object
1619
+ EventPriority:
1620
+ description: The priority of the event's monitor. For example, `normal` or `low`.
1621
+ enum:
1622
+ - normal
1623
+ - low
1624
+ example: normal
1625
+ nullable: true
1626
+ type: string
1627
+ x-enum-varnames:
1628
+ - NORMAL
1629
+ - LOW
1630
+ EventResponse:
1631
+ description: The object description of an event after being processed and stored
1632
+ by Datadog.
1633
+ properties:
1634
+ attributes:
1635
+ $ref: '#/components/schemas/EventResponseAttributes'
1636
+ id:
1637
+ description: the unique ID of the event.
1638
+ example: AAAAAWgN8Xwgr1vKDQAAAABBV2dOOFh3ZzZobm1mWXJFYTR0OA
1639
+ type: string
1640
+ type:
1641
+ $ref: '#/components/schemas/EventType'
1642
+ type: object
1643
+ EventResponseAttributes:
1644
+ description: The object description of an event response attribute.
1645
+ properties:
1646
+ attributes:
1647
+ $ref: '#/components/schemas/EventAttributes'
1648
+ tags:
1649
+ description: An array of tags associated with the event.
1650
+ example:
1651
+ - team:A
1652
+ items:
1653
+ description: The tag associated with the event.
1654
+ type: string
1655
+ type: array
1656
+ timestamp:
1657
+ description: The timestamp of the event.
1658
+ example: '2019-01-02T09:42:36.320Z'
1659
+ format: date-time
1660
+ type: string
1661
+ type: object
1662
+ EventStatusType:
1663
+ description: 'If an alert event is enabled, its status is one of the following:
1664
+
1665
+ `failure`, `error`, `warning`, `info`, `success`, `user_update`,
1666
+
1667
+ `recommendation`, or `snapshot`.'
1668
+ enum:
1669
+ - failure
1670
+ - error
1671
+ - warning
1672
+ - info
1673
+ - success
1674
+ - user_update
1675
+ - recommendation
1676
+ - snapshot
1677
+ example: info
1678
+ type: string
1679
+ x-enum-varnames:
1680
+ - FAILURE
1681
+ - ERROR
1682
+ - WARNING
1683
+ - INFO
1684
+ - SUCCESS
1685
+ - USER_UPDATE
1686
+ - RECOMMENDATION
1687
+ - SNAPSHOT
1688
+ EventType:
1689
+ default: event
1690
+ description: Type of the event.
1691
+ enum:
1692
+ - event
1693
+ example: event
1694
+ type: string
1695
+ x-enum-varnames:
1696
+ - EVENT
1697
+ EventsListRequest:
1698
+ description: The object sent with the request to retrieve a list of events from
1699
+ your organization.
1700
+ properties:
1701
+ filter:
1702
+ $ref: '#/components/schemas/EventsQueryFilter'
1703
+ options:
1704
+ $ref: '#/components/schemas/EventsQueryOptions'
1705
+ page:
1706
+ $ref: '#/components/schemas/EventsRequestPage'
1707
+ sort:
1708
+ $ref: '#/components/schemas/EventsSort'
1709
+ type: object
1710
+ EventsListResponse:
1711
+ description: The response object with all events matching the request and pagination
1712
+ information.
1713
+ properties:
1714
+ data:
1715
+ description: An array of events matching the request.
1716
+ items:
1717
+ $ref: '#/components/schemas/EventResponse'
1718
+ type: array
1719
+ links:
1720
+ $ref: '#/components/schemas/EventsListResponseLinks'
1721
+ meta:
1722
+ $ref: '#/components/schemas/EventsResponseMetadata'
1723
+ type: object
1724
+ EventsListResponseLinks:
1725
+ description: Links attributes.
1726
+ properties:
1727
+ next:
1728
+ description: 'Link for the next set of results. Note that the request can
1729
+ also be made using the
1730
+
1731
+ POST endpoint.'
1732
+ example: https://app.datadoghq.com/api/v2/events?filter[query]=foo&page[cursor]=eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==
1733
+ type: string
1734
+ type: object
1735
+ EventsQueryFilter:
1736
+ description: The search and filter query settings.
1737
+ properties:
1738
+ from:
1739
+ default: now-15m
1740
+ description: The minimum time for the requested events. Supports date math
1741
+ and regular timestamps in milliseconds.
1742
+ example: now-15m
1743
+ type: string
1744
+ query:
1745
+ default: '*'
1746
+ description: The search query following the event search syntax.
1747
+ example: service:web* AND @http.status_code:[200 TO 299]
1748
+ type: string
1749
+ to:
1750
+ default: now
1751
+ description: The maximum time for the requested events. Supports date math
1752
+ and regular timestamps in milliseconds.
1753
+ example: now
1754
+ type: string
1755
+ type: object
1756
+ EventsQueryOptions:
1757
+ description: 'The global query options that are used. Either provide a timezone
1758
+ or a time offset but not both,
1759
+
1760
+ otherwise the query fails.'
1761
+ properties:
1762
+ timeOffset:
1763
+ description: The time offset to apply to the query in seconds.
1764
+ format: int64
1765
+ type: integer
1766
+ timezone:
1767
+ default: UTC
1768
+ description: 'The timezone can be specified as an offset, for example: `UTC+03:00`.'
1769
+ example: GMT
1770
+ type: string
1771
+ type: object
1772
+ EventsRequestPage:
1773
+ description: Pagination settings.
1774
+ properties:
1775
+ cursor:
1776
+ description: The returned paging point to use to get the next results.
1777
+ example: eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==
1778
+ type: string
1779
+ limit:
1780
+ default: 10
1781
+ description: The maximum number of logs in the response.
1782
+ example: 25
1783
+ format: int32
1784
+ maximum: 1000
1785
+ type: integer
1786
+ type: object
1787
+ EventsResponseMetadata:
1788
+ description: The metadata associated with a request.
1789
+ properties:
1790
+ elapsed:
1791
+ description: The time elapsed in milliseconds.
1792
+ example: 132
1793
+ format: int64
1794
+ type: integer
1795
+ page:
1796
+ $ref: '#/components/schemas/EventsResponseMetadataPage'
1797
+ request_id:
1798
+ description: The identifier of the request.
1799
+ example: MWlFUjVaWGZTTTZPYzM0VXp1OXU2d3xLSVpEMjZKQ0VKUTI0dEYtM3RSOFVR
1800
+ type: string
1801
+ warnings:
1802
+ description: 'A list of warnings (non-fatal errors) encountered. Partial
1803
+ results might be returned if
1804
+
1805
+ warnings are present in the response.'
1806
+ items:
1807
+ $ref: '#/components/schemas/EventsWarning'
1808
+ type: array
1809
+ type: object
1810
+ EventsResponseMetadataPage:
1811
+ description: Pagination attributes.
1812
+ properties:
1813
+ after:
1814
+ description: 'The cursor to use to get the next results, if any. To make
1815
+ the next request, use the same
1816
+
1817
+ parameters with the addition of the `page[cursor]`.'
1818
+ example: eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==
1819
+ type: string
1820
+ type: object
1821
+ EventsSort:
1822
+ description: The sort parameters when querying events.
1823
+ enum:
1824
+ - timestamp
1825
+ - -timestamp
1826
+ type: string
1827
+ x-enum-varnames:
1828
+ - TIMESTAMP_ASCENDING
1829
+ - TIMESTAMP_DESCENDING
1830
+ EventsWarning:
1831
+ description: A warning message indicating something is wrong with the query.
1832
+ properties:
1833
+ code:
1834
+ description: A unique code for this type of warning.
1835
+ example: unknown_index
1836
+ type: string
1837
+ detail:
1838
+ description: A detailed explanation of this specific warning.
1839
+ example: 'indexes: foo, bar'
1840
+ type: string
1841
+ title:
1842
+ description: A short human-readable summary of the warning.
1843
+ example: One or several indexes are missing or invalid. Results hold data
1844
+ from the other indexes.
1845
+ type: string
1846
+ type: object
1499
1847
  FullAPIKey:
1500
1848
  description: Datadog API key.
1501
1849
  properties:
@@ -1669,6 +2017,84 @@ components:
1669
2017
  required:
1670
2018
  - message
1671
2019
  type: object
2020
+ HourlyUsage:
2021
+ description: Hourly usage for a product family for an org.
2022
+ properties:
2023
+ attributes:
2024
+ $ref: '#/components/schemas/HourlyUsageAttributes'
2025
+ id:
2026
+ description: Unique ID of the response.
2027
+ type: string
2028
+ type:
2029
+ $ref: '#/components/schemas/UsageTimeSeriesType'
2030
+ type: object
2031
+ HourlyUsageAttributes:
2032
+ description: Attributes of hourly usage for a product family for an org for
2033
+ a time period.
2034
+ properties:
2035
+ measurements:
2036
+ description: List of the measured usage values for the product family for
2037
+ the org for the time period.
2038
+ items:
2039
+ $ref: '#/components/schemas/HourlyUsageMeasurement'
2040
+ type: array
2041
+ org_name:
2042
+ description: The organization name.
2043
+ type: string
2044
+ product_family:
2045
+ description: The product for which usage is being reported.
2046
+ type: string
2047
+ public_id:
2048
+ description: The organization public ID.
2049
+ type: string
2050
+ region:
2051
+ description: The region of the Datadog instance that the organization belongs
2052
+ to.
2053
+ type: string
2054
+ timestamp:
2055
+ description: Datetime in ISO-8601 format, UTC. The hour for the usage.
2056
+ format: date-time
2057
+ type: string
2058
+ type: object
2059
+ HourlyUsageMeasurement:
2060
+ description: Usage amount for a given usage type.
2061
+ properties:
2062
+ usage_type:
2063
+ description: Type of usage.
2064
+ type: string
2065
+ value:
2066
+ description: Contains the number measured for the given usage_type during
2067
+ the hour.
2068
+ format: int64
2069
+ nullable: true
2070
+ type: integer
2071
+ type: object
2072
+ HourlyUsageMetadata:
2073
+ description: The object containing document metadata.
2074
+ properties:
2075
+ pagination:
2076
+ $ref: '#/components/schemas/HourlyUsagePagination'
2077
+ type: object
2078
+ HourlyUsagePagination:
2079
+ description: The metadata for the current pagination.
2080
+ properties:
2081
+ next_record_id:
2082
+ description: The cursor to get the next results (if any). To make the next
2083
+ request, use the same parameters and add `next_record_id`.
2084
+ nullable: true
2085
+ type: string
2086
+ type: object
2087
+ HourlyUsageResponse:
2088
+ description: Hourly usage response.
2089
+ properties:
2090
+ data:
2091
+ description: Response containing hourly usage.
2092
+ items:
2093
+ $ref: '#/components/schemas/HourlyUsage'
2094
+ type: array
2095
+ meta:
2096
+ $ref: '#/components/schemas/HourlyUsageMetadata'
2097
+ type: object
1672
2098
  HourlyUsageType:
1673
2099
  description: Usage type that is being measured.
1674
2100
  enum:
@@ -2605,11 +3031,13 @@ components:
2605
3031
  IntakePayloadAccepted:
2606
3032
  description: The payload accepted for intake.
2607
3033
  properties:
2608
- status:
2609
- description: The status of the intake payload.
2610
- example: ok
2611
- type: string
2612
- type: object
3034
+ errors:
3035
+ description: A list of errors.
3036
+ items:
3037
+ description: An empty error list.
3038
+ type: string
3039
+ type: array
3040
+ type: object
2613
3041
  ListApplicationKeysResponse:
2614
3042
  description: Response for a list of application keys.
2615
3043
  properties:
@@ -4101,13 +4529,13 @@ components:
4101
4529
  x-enum-varnames:
4102
4530
  - METRIC_VOLUMES
4103
4531
  MetricIntakeType:
4104
- description: The type of metric.
4532
+ description: The type of metric. The available types are `0` (unspecified),
4533
+ `1` (count), `2` (rate), and `3` (gauge).
4105
4534
  enum:
4106
4535
  - 0
4107
4536
  - 1
4108
4537
  - 2
4109
4538
  - 3
4110
- - 15
4111
4539
  format: int32
4112
4540
  type: integer
4113
4541
  x-enum-varnames:
@@ -4115,7 +4543,6 @@ components:
4115
4543
  - COUNT
4116
4544
  - RATE
4117
4545
  - GAUGE
4118
- - UNSPECIFIED_LEGACY
4119
4546
  MetricMetadata:
4120
4547
  description: Metadata for the metric.
4121
4548
  properties:
@@ -4158,6 +4585,9 @@ components:
4158
4585
  points:
4159
4586
  - timestamp: 1475317847
4160
4587
  value: 0.7
4588
+ resources:
4589
+ - name: dummyhost
4590
+ type: host
4161
4591
  items:
4162
4592
  $ref: '#/components/schemas/MetricSeries'
4163
4593
  type: array
@@ -4185,12 +4615,15 @@ components:
4185
4615
  type: object
4186
4616
  MetricResource:
4187
4617
  description: Metric resource.
4618
+ example:
4619
+ name: dummyhost
4620
+ type: host
4188
4621
  properties:
4189
4622
  name:
4190
- description: The name of the metric.
4623
+ description: The name of the resource.
4191
4624
  type: string
4192
4625
  type:
4193
- description: The type of metric.
4626
+ description: The type of the resource.
4194
4627
  type: string
4195
4628
  type: object
4196
4629
  MetricSeries:
@@ -4310,7 +4743,6 @@ components:
4310
4743
  aggregations:
4311
4744
  $ref: '#/components/schemas/MetricCustomAggregations'
4312
4745
  include_percentiles:
4313
- default: false
4314
4746
  description: 'Toggle to include/exclude percentiles for a distribution metric.
4315
4747
 
4316
4748
  Defaults to false. Can only be applied to metrics that have a `metric_type`
@@ -4402,7 +4834,6 @@ components:
4402
4834
  aggregations:
4403
4835
  $ref: '#/components/schemas/MetricCustomAggregations'
4404
4836
  include_percentiles:
4405
- default: false
4406
4837
  description: 'Toggle to include/exclude percentiles for a distribution metric.
4407
4838
 
4408
4839
  Defaults to false. Can only be applied to metrics that have a `metric_type`
@@ -4488,6 +4919,54 @@ components:
4488
4919
  type: array
4489
4920
  readOnly: true
4490
4921
  type: object
4922
+ MonitorType:
4923
+ description: Attributes from the monitor that triggered the event.
4924
+ nullable: true
4925
+ properties:
4926
+ created_at:
4927
+ description: The POSIX timestamp of the monitor's creation in nanoseconds.
4928
+ example: 1646318692000
4929
+ type: integer
4930
+ group_status:
4931
+ description: Monitor group status used when there is no `result_groups`.
4932
+ type: integer
4933
+ groups:
4934
+ description: Groups to which the monitor belongs.
4935
+ items:
4936
+ description: A group.
4937
+ type: string
4938
+ type: array
4939
+ id:
4940
+ description: The monitor ID.
4941
+ type: integer
4942
+ message:
4943
+ description: The monitor message.
4944
+ type: string
4945
+ modified:
4946
+ description: The monitor's last-modified timestamp.
4947
+ type: integer
4948
+ name:
4949
+ description: The monitor name.
4950
+ type: string
4951
+ query:
4952
+ description: The query that triggers the alert.
4953
+ type: string
4954
+ tags:
4955
+ description: A list of tags attached to the monitor.
4956
+ example:
4957
+ - environment:test
4958
+ items:
4959
+ description: A tag.
4960
+ type: string
4961
+ type: array
4962
+ templated_name:
4963
+ description: The templated name of the monitor before resolving any template
4964
+ variables.
4965
+ type: string
4966
+ type:
4967
+ description: The monitor type.
4968
+ type: string
4969
+ type: object
4491
4970
  NullableRelationshipToUser:
4492
4971
  description: Relationship to user.
4493
4972
  properties:
@@ -4510,6 +4989,174 @@ components:
4510
4989
  - id
4511
4990
  - type
4512
4991
  type: object
4992
+ OpsgenieServiceCreateAttributes:
4993
+ description: The Opsgenie service attributes for a create request.
4994
+ properties:
4995
+ custom_url:
4996
+ description: The custom URL for a custom region.
4997
+ example: https://example.com
4998
+ type: string
4999
+ name:
5000
+ description: The name for the Opsgenie service.
5001
+ example: fake-opsgenie-service-name
5002
+ type: string
5003
+ opsgenie_api_key:
5004
+ description: The Opsgenie API key for your Opsgenie service.
5005
+ example: 00000000-0000-0000-0000-000000000000
5006
+ type: string
5007
+ region:
5008
+ $ref: '#/components/schemas/OpsgenieServiceRegionType'
5009
+ required:
5010
+ - name
5011
+ - opsgenie_api_key
5012
+ - region
5013
+ type: object
5014
+ OpsgenieServiceCreateData:
5015
+ description: Opsgenie service data for a create request.
5016
+ properties:
5017
+ attributes:
5018
+ $ref: '#/components/schemas/OpsgenieServiceCreateAttributes'
5019
+ type:
5020
+ $ref: '#/components/schemas/OpsgenieServiceType'
5021
+ required:
5022
+ - type
5023
+ - attributes
5024
+ type: object
5025
+ OpsgenieServiceCreateRequest:
5026
+ description: Create request for an Opsgenie service.
5027
+ properties:
5028
+ data:
5029
+ $ref: '#/components/schemas/OpsgenieServiceCreateData'
5030
+ required:
5031
+ - data
5032
+ type: object
5033
+ OpsgenieServiceRegionType:
5034
+ description: The region for the Opsgenie service.
5035
+ enum:
5036
+ - us
5037
+ - eu
5038
+ - custom
5039
+ example: us
5040
+ type: string
5041
+ x-enum-varnames:
5042
+ - US
5043
+ - EU
5044
+ - CUSTOM
5045
+ OpsgenieServiceResponse:
5046
+ description: Response of an Opsgenie service.
5047
+ properties:
5048
+ data:
5049
+ $ref: '#/components/schemas/OpsgenieServiceResponseData'
5050
+ required:
5051
+ - data
5052
+ type: object
5053
+ OpsgenieServiceResponseAttributes:
5054
+ description: The attributes from an Opsgenie service response.
5055
+ properties:
5056
+ custom_url:
5057
+ description: The custom URL for a custom region.
5058
+ example: null
5059
+ nullable: true
5060
+ type: string
5061
+ name:
5062
+ description: The name for the Opsgenie service.
5063
+ example: fake-opsgenie-service-name
5064
+ type: string
5065
+ region:
5066
+ $ref: '#/components/schemas/OpsgenieServiceRegionType'
5067
+ type: object
5068
+ OpsgenieServiceResponseData:
5069
+ description: Opsgenie service data from a response.
5070
+ properties:
5071
+ attributes:
5072
+ $ref: '#/components/schemas/OpsgenieServiceResponseAttributes'
5073
+ id:
5074
+ description: The ID of the Opsgenie service.
5075
+ example: 596da4af-0563-4097-90ff-07230c3f9db3
5076
+ type: string
5077
+ type:
5078
+ $ref: '#/components/schemas/OpsgenieServiceType'
5079
+ required:
5080
+ - id
5081
+ - type
5082
+ - attributes
5083
+ type: object
5084
+ OpsgenieServiceType:
5085
+ default: opsgenie-service
5086
+ description: Opsgenie service resource type.
5087
+ enum:
5088
+ - opsgenie-service
5089
+ example: opsgenie-service
5090
+ type: string
5091
+ x-enum-varnames:
5092
+ - OPSGENIE_SERVICE
5093
+ OpsgenieServiceUpdateAttributes:
5094
+ description: The Opsgenie service attributes for an update request.
5095
+ properties:
5096
+ custom_url:
5097
+ description: The custom URL for a custom region.
5098
+ example: https://example.com
5099
+ nullable: true
5100
+ type: string
5101
+ name:
5102
+ description: The name for the Opsgenie service.
5103
+ example: fake-opsgenie-service-name
5104
+ type: string
5105
+ opsgenie_api_key:
5106
+ description: The Opsgenie API key for your Opsgenie service.
5107
+ example: 00000000-0000-0000-0000-000000000000
5108
+ type: string
5109
+ region:
5110
+ $ref: '#/components/schemas/OpsgenieServiceRegionType'
5111
+ type: object
5112
+ OpsgenieServiceUpdateData:
5113
+ description: Opsgenie service for an update request.
5114
+ properties:
5115
+ attributes:
5116
+ $ref: '#/components/schemas/OpsgenieServiceUpdateAttributes'
5117
+ id:
5118
+ description: The ID of the Opsgenie service.
5119
+ example: 596da4af-0563-4097-90ff-07230c3f9db3
5120
+ type: string
5121
+ type:
5122
+ $ref: '#/components/schemas/OpsgenieServiceType'
5123
+ required:
5124
+ - id
5125
+ - type
5126
+ - attributes
5127
+ type: object
5128
+ OpsgenieServiceUpdateRequest:
5129
+ description: Update request for an Opsgenie service.
5130
+ properties:
5131
+ data:
5132
+ $ref: '#/components/schemas/OpsgenieServiceUpdateData'
5133
+ required:
5134
+ - data
5135
+ type: object
5136
+ OpsgenieServicesResponse:
5137
+ description: Response with a list of Opsgenie services.
5138
+ properties:
5139
+ data:
5140
+ description: An array of Opsgenie services.
5141
+ example:
5142
+ - attributes:
5143
+ custom_url: null
5144
+ name: fake-opsgenie-service-name
5145
+ region: us
5146
+ id: 596da4af-0563-4097-90ff-07230c3f9db3
5147
+ type: opsgenie-service
5148
+ - attributes:
5149
+ custom_url: null
5150
+ name: fake-opsgenie-service-name-2
5151
+ region: eu
5152
+ id: 0d2937f1-b561-44fa-914a-99910f848014
5153
+ type: opsgenie-service
5154
+ items:
5155
+ $ref: '#/components/schemas/OpsgenieServiceResponseData'
5156
+ type: array
5157
+ required:
5158
+ - data
5159
+ type: object
4513
5160
  Organization:
4514
5161
  description: Organization object.
4515
5162
  properties:
@@ -6167,6 +6814,17 @@ components:
6167
6814
  - cases
6168
6815
  - message
6169
6816
  type: object
6817
+ SecurityMonitoringRuleDecreaseCriticalityBasedOnEnv:
6818
+ description: 'If true, signals in non-production environments have a lower severity
6819
+ than what is defined by the rule case, which can reduce signal noise.
6820
+
6821
+ The severity is decreased by one level: `CRITICAL` in production becomes `HIGH`
6822
+ in non-production, `HIGH` becomes `MEDIUM` and so on. `INFO` remains `INFO`.
6823
+
6824
+ The decrement is applied when the environment tag of the signal starts with
6825
+ `staging`, `test` or `dev`.'
6826
+ example: false
6827
+ type: boolean
6170
6828
  SecurityMonitoringRuleDetectionMethod:
6171
6829
  description: The detection method.
6172
6830
  enum:
@@ -6294,6 +6952,10 @@ components:
6294
6952
  $ref: '#/components/schemas/SecurityMonitoringRuleNewValueOptionsForgetAfter'
6295
6953
  learningDuration:
6296
6954
  $ref: '#/components/schemas/SecurityMonitoringRuleNewValueOptionsLearningDuration'
6955
+ learningMethod:
6956
+ $ref: '#/components/schemas/SecurityMonitoringRuleNewValueOptionsLearningMethod'
6957
+ learningThreshold:
6958
+ $ref: '#/components/schemas/SecurityMonitoringRuleNewValueOptionsLearningThreshold'
6297
6959
  type: object
6298
6960
  SecurityMonitoringRuleNewValueOptionsForgetAfter:
6299
6961
  description: The duration in days after which a learned value is forgotten.
@@ -6314,6 +6976,7 @@ components:
6314
6976
  - THREE_WEEKS
6315
6977
  - FOUR_WEEKS
6316
6978
  SecurityMonitoringRuleNewValueOptionsLearningDuration:
6979
+ default: 0
6317
6980
  description: 'The duration in days during which values are learned, and after
6318
6981
  which signals will be generated for values that
6319
6982
 
@@ -6329,9 +6992,34 @@ components:
6329
6992
  - ZERO_DAYS
6330
6993
  - ONE_DAY
6331
6994
  - SEVEN_DAYS
6995
+ SecurityMonitoringRuleNewValueOptionsLearningMethod:
6996
+ default: duration
6997
+ description: The learning method used to determine when signals should be generated
6998
+ for values that weren't learned.
6999
+ enum:
7000
+ - duration
7001
+ - threshold
7002
+ type: string
7003
+ x-enum-varnames:
7004
+ - DURATION
7005
+ - THRESHOLD
7006
+ SecurityMonitoringRuleNewValueOptionsLearningThreshold:
7007
+ default: 0
7008
+ description: A number of occurrences after which signals will be generated for
7009
+ values that weren't learned.
7010
+ enum:
7011
+ - 0
7012
+ - 1
7013
+ format: int32
7014
+ type: integer
7015
+ x-enum-varnames:
7016
+ - ZERO_OCCURRENCES
7017
+ - ONE_OCCURRENCE
6332
7018
  SecurityMonitoringRuleOptions:
6333
7019
  description: Options on rules.
6334
7020
  properties:
7021
+ decreaseCriticalityBasedOnEnv:
7022
+ $ref: '#/components/schemas/SecurityMonitoringRuleDecreaseCriticalityBasedOnEnv'
6335
7023
  detectionMethod:
6336
7024
  $ref: '#/components/schemas/SecurityMonitoringRuleDetectionMethod'
6337
7025
  evaluationWindow:
@@ -6369,6 +7057,13 @@ components:
6369
7057
 
6370
7058
  aggregations.'
6371
7059
  type: string
7060
+ metrics:
7061
+ description: Group of target fields to aggregate over when using the new
7062
+ value aggregations.
7063
+ items:
7064
+ description: Field.
7065
+ type: string
7066
+ type: array
6372
7067
  name:
6373
7068
  description: Name of the query.
6374
7069
  type: string
@@ -6415,6 +7110,13 @@ components:
6415
7110
 
6416
7111
  aggregations.'
6417
7112
  type: string
7113
+ metrics:
7114
+ description: Group of target fields to aggregate over when using the new
7115
+ value aggregations.
7116
+ items:
7117
+ description: Field.
7118
+ type: string
7119
+ type: array
6418
7120
  name:
6419
7121
  description: Name of the query.
6420
7122
  type: string
@@ -6590,6 +7292,49 @@ components:
6590
7292
  type:
6591
7293
  $ref: '#/components/schemas/SecurityMonitoringSignalType'
6592
7294
  type: object
7295
+ SecurityMonitoringSignalArchiveComment:
7296
+ description: Optional comment to display on archived signals.
7297
+ type: string
7298
+ SecurityMonitoringSignalArchiveReason:
7299
+ description: Reason a signal is archived.
7300
+ enum:
7301
+ - none
7302
+ - false_positive
7303
+ - testing_or_maintenance
7304
+ - other
7305
+ type: string
7306
+ x-enum-varnames:
7307
+ - NONE
7308
+ - FALSE_POSITIVE
7309
+ - TESTING_OR_MAINTENANCE
7310
+ - OTHER
7311
+ SecurityMonitoringSignalAssigneeUpdateAttributes:
7312
+ description: Attributes describing the new assignee of a security signal.
7313
+ properties:
7314
+ assignee:
7315
+ $ref: '#/components/schemas/SecurityMonitoringTriageUser'
7316
+ version:
7317
+ $ref: '#/components/schemas/SecurityMonitoringSignalVersion'
7318
+ required:
7319
+ - assignee
7320
+ type: object
7321
+ SecurityMonitoringSignalAssigneeUpdateData:
7322
+ description: Data containing the patch for changing the assignee of a signal.
7323
+ properties:
7324
+ attributes:
7325
+ $ref: '#/components/schemas/SecurityMonitoringSignalAssigneeUpdateAttributes'
7326
+ required:
7327
+ - attributes
7328
+ type: object
7329
+ SecurityMonitoringSignalAssigneeUpdateRequest:
7330
+ description: Request body for changing the assignee of a given security monitoring
7331
+ signal.
7332
+ properties:
7333
+ data:
7334
+ $ref: '#/components/schemas/SecurityMonitoringSignalAssigneeUpdateData'
7335
+ required:
7336
+ - data
7337
+ type: object
6593
7338
  SecurityMonitoringSignalAttributes:
6594
7339
  description: 'The object containing all signal attributes and their
6595
7340
 
@@ -6627,6 +7372,44 @@ components:
6627
7372
  format: date-time
6628
7373
  type: string
6629
7374
  type: object
7375
+ SecurityMonitoringSignalIncidentIds:
7376
+ description: Array of incidents that are associated with this signal.
7377
+ items:
7378
+ description: Public ID attribute of the incident that is associated with the
7379
+ signal.
7380
+ example: 2066
7381
+ format: int64
7382
+ type: integer
7383
+ type: array
7384
+ SecurityMonitoringSignalIncidentsUpdateAttributes:
7385
+ description: Attributes describing the new list of related signals for a security
7386
+ signal.
7387
+ properties:
7388
+ incident_ids:
7389
+ $ref: '#/components/schemas/SecurityMonitoringSignalIncidentIds'
7390
+ version:
7391
+ $ref: '#/components/schemas/SecurityMonitoringSignalVersion'
7392
+ required:
7393
+ - incident_ids
7394
+ type: object
7395
+ SecurityMonitoringSignalIncidentsUpdateData:
7396
+ description: Data containing the patch for changing the related incidents of
7397
+ a signal.
7398
+ properties:
7399
+ attributes:
7400
+ $ref: '#/components/schemas/SecurityMonitoringSignalIncidentsUpdateAttributes'
7401
+ required:
7402
+ - attributes
7403
+ type: object
7404
+ SecurityMonitoringSignalIncidentsUpdateRequest:
7405
+ description: Request body for changing the related incidents of a given security
7406
+ monitoring signal.
7407
+ properties:
7408
+ data:
7409
+ $ref: '#/components/schemas/SecurityMonitoringSignalIncidentsUpdateData'
7410
+ required:
7411
+ - data
7412
+ type: object
6630
7413
  SecurityMonitoringSignalListRequest:
6631
7414
  description: The request for a security signal list.
6632
7415
  properties:
@@ -6671,6 +7454,96 @@ components:
6671
7454
  maximum: 1000
6672
7455
  type: integer
6673
7456
  type: object
7457
+ SecurityMonitoringSignalState:
7458
+ description: The new triage state of the signal.
7459
+ enum:
7460
+ - open
7461
+ - archived
7462
+ - under_review
7463
+ type: string
7464
+ x-enum-varnames:
7465
+ - OPEN
7466
+ - ARCHIVED
7467
+ - UNDER_REVIEW
7468
+ SecurityMonitoringSignalStateUpdateAttributes:
7469
+ description: Attributes describing the change of state of a security signal.
7470
+ properties:
7471
+ archive_comment:
7472
+ $ref: '#/components/schemas/SecurityMonitoringSignalArchiveComment'
7473
+ archive_reason:
7474
+ $ref: '#/components/schemas/SecurityMonitoringSignalArchiveReason'
7475
+ state:
7476
+ $ref: '#/components/schemas/SecurityMonitoringSignalState'
7477
+ version:
7478
+ $ref: '#/components/schemas/SecurityMonitoringSignalVersion'
7479
+ required:
7480
+ - state
7481
+ type: object
7482
+ SecurityMonitoringSignalStateUpdateData:
7483
+ description: Data containing the patch for changing the state of a signal.
7484
+ properties:
7485
+ attributes:
7486
+ $ref: '#/components/schemas/SecurityMonitoringSignalStateUpdateAttributes'
7487
+ required:
7488
+ - attributes
7489
+ type: object
7490
+ SecurityMonitoringSignalStateUpdateRequest:
7491
+ description: Request body for changing the state of a given security monitoring
7492
+ signal.
7493
+ properties:
7494
+ data:
7495
+ $ref: '#/components/schemas/SecurityMonitoringSignalStateUpdateData'
7496
+ required:
7497
+ - data
7498
+ type: object
7499
+ SecurityMonitoringSignalTriageAttributes:
7500
+ description: Attributes describing a triage state update operation over a security
7501
+ signal.
7502
+ properties:
7503
+ archive_comment:
7504
+ $ref: '#/components/schemas/SecurityMonitoringSignalArchiveComment'
7505
+ archive_comment_timestamp:
7506
+ description: Timestamp of the last edit to the comment.
7507
+ format: int64
7508
+ minimum: 0
7509
+ type: integer
7510
+ archive_comment_user:
7511
+ $ref: '#/components/schemas/SecurityMonitoringTriageUser'
7512
+ archive_reason:
7513
+ $ref: '#/components/schemas/SecurityMonitoringSignalArchiveReason'
7514
+ assignee:
7515
+ $ref: '#/components/schemas/SecurityMonitoringTriageUser'
7516
+ incident_ids:
7517
+ $ref: '#/components/schemas/SecurityMonitoringSignalIncidentIds'
7518
+ state:
7519
+ $ref: '#/components/schemas/SecurityMonitoringSignalState'
7520
+ state_update_timestamp:
7521
+ description: Timestamp of the last update to the signal state.
7522
+ format: int64
7523
+ minimum: 0
7524
+ type: integer
7525
+ state_update_user:
7526
+ $ref: '#/components/schemas/SecurityMonitoringTriageUser'
7527
+ required:
7528
+ - assignee
7529
+ - state
7530
+ - incident_ids
7531
+ type: object
7532
+ SecurityMonitoringSignalTriageUpdateData:
7533
+ description: Data containing the updated triage attributes of the signal.
7534
+ properties:
7535
+ attributes:
7536
+ $ref: '#/components/schemas/SecurityMonitoringSignalTriageAttributes'
7537
+ type: object
7538
+ SecurityMonitoringSignalTriageUpdateResponse:
7539
+ description: The response returned after all triage operations, containing the
7540
+ updated signal triage data.
7541
+ properties:
7542
+ data:
7543
+ $ref: '#/components/schemas/SecurityMonitoringSignalTriageUpdateData'
7544
+ required:
7545
+ - data
7546
+ type: object
6674
7547
  SecurityMonitoringSignalType:
6675
7548
  default: signal
6676
7549
  description: The type of event.
@@ -6680,6 +7553,11 @@ components:
6680
7553
  type: string
6681
7554
  x-enum-varnames:
6682
7555
  - SIGNAL
7556
+ SecurityMonitoringSignalVersion:
7557
+ description: Version of the updated signal. If server side version is higher,
7558
+ update will be rejected.
7559
+ format: int64
7560
+ type: integer
6683
7561
  SecurityMonitoringSignalsListResponse:
6684
7562
  description: 'The response object with all security signals matching the request
6685
7563
 
@@ -6732,6 +7610,26 @@ components:
6732
7610
  x-enum-varnames:
6733
7611
  - TIMESTAMP_ASCENDING
6734
7612
  - TIMESTAMP_DESCENDING
7613
+ SecurityMonitoringTriageUser:
7614
+ description: Object representing a given user entity.
7615
+ properties:
7616
+ handle:
7617
+ description: The handle for this user account.
7618
+ type: string
7619
+ id:
7620
+ description: Numerical ID assigned by Datadog to this user account.
7621
+ format: int64
7622
+ type: integer
7623
+ name:
7624
+ description: The name for this user account.
7625
+ type: string
7626
+ uuid:
7627
+ description: UUID assigned by Datadog to this user account.
7628
+ example: 773b045d-ccf8-4808-bd3b-955ef6a8c940
7629
+ type: string
7630
+ required:
7631
+ - uuid
7632
+ type: object
6735
7633
  ServiceAccountCreateAttributes:
6736
7634
  description: Attributes of the created user.
6737
7635
  properties:
@@ -7136,7 +8034,6 @@ components:
7136
8034
  authorizationCode:
7137
8035
  authorizationUrl: /oauth2/v1/authorize
7138
8036
  scopes:
7139
- dashboards_public_share: Share dashboards externally.
7140
8037
  dashboards_read: View dashboards.
7141
8038
  dashboards_write: Create and change dashboards.
7142
8039
  events_read: Read Events data.
@@ -7144,6 +8041,7 @@ components:
7144
8041
  incident_settings_write: Configure Incidents settings.
7145
8042
  incident_write: Create, view, and manage incidents in Datadog.
7146
8043
  metrics_read: View custom metrics.
8044
+ monitors_read: View monitors.
7147
8045
  security_monitoring_filters_read: Read Security Filters.
7148
8046
  security_monitoring_filters_write: Create, edit, and delete Security Filters.
7149
8047
  security_monitoring_rules_read: Read Detection Rules.
@@ -8304,35 +9202,162 @@ paths:
8304
9202
  x-menu-order: 3
8305
9203
  x-undo:
8306
9204
  type: safe
8307
- /api/v2/incidents:
9205
+ /api/v2/events:
8308
9206
  get:
8309
- description: Get all incidents for the user's organization.
8310
- operationId: ListIncidents
9207
+ description: 'List endpoint returns events that match an events search query.
9208
+
9209
+ [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).
9210
+
9211
+
9212
+ Use this endpoint to see your latest events.'
9213
+ operationId: ListEvents
8311
9214
  parameters:
8312
- - $ref: '#/components/parameters/IncidentIncludeQueryParameter'
8313
- - $ref: '#/components/parameters/PageSize'
8314
- - $ref: '#/components/parameters/PageOffset'
8315
- responses:
8316
- '200':
8317
- content:
8318
- application/json:
8319
- schema:
8320
- $ref: '#/components/schemas/IncidentsResponse'
8321
- description: OK
8322
- '400':
8323
- $ref: '#/components/responses/BadRequestResponse'
8324
- '401':
8325
- $ref: '#/components/responses/UnauthorizedResponse'
8326
- '403':
8327
- $ref: '#/components/responses/ForbiddenResponse'
8328
- '404':
8329
- $ref: '#/components/responses/NotFoundResponse'
8330
- '429':
8331
- $ref: '#/components/responses/TooManyRequestsResponse'
8332
- security:
8333
- - apiKeyAuth: []
8334
- appKeyAuth: []
8335
- - AuthZ:
9215
+ - description: Search query following events syntax.
9216
+ in: query
9217
+ name: filter[query]
9218
+ required: false
9219
+ schema:
9220
+ type: string
9221
+ - description: Minimum timestamp for requested events.
9222
+ in: query
9223
+ name: filter[from]
9224
+ required: false
9225
+ schema:
9226
+ type: string
9227
+ - description: Maximum timestamp for requested events.
9228
+ in: query
9229
+ name: filter[to]
9230
+ required: false
9231
+ schema:
9232
+ type: string
9233
+ - description: Order of events in results.
9234
+ in: query
9235
+ name: sort
9236
+ required: false
9237
+ schema:
9238
+ $ref: '#/components/schemas/EventsSort'
9239
+ - description: List following results with a cursor provided in the previous
9240
+ query.
9241
+ example: eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==
9242
+ in: query
9243
+ name: page[cursor]
9244
+ required: false
9245
+ schema:
9246
+ type: string
9247
+ - description: Maximum number of events in the response.
9248
+ example: 25
9249
+ in: query
9250
+ name: page[limit]
9251
+ required: false
9252
+ schema:
9253
+ default: 10
9254
+ format: int32
9255
+ maximum: 1000
9256
+ type: integer
9257
+ responses:
9258
+ '200':
9259
+ content:
9260
+ application/json:
9261
+ schema:
9262
+ $ref: '#/components/schemas/EventsListResponse'
9263
+ description: OK
9264
+ '400':
9265
+ $ref: '#/components/responses/BadRequestResponse'
9266
+ '403':
9267
+ $ref: '#/components/responses/NotAuthorizedResponse'
9268
+ '429':
9269
+ $ref: '#/components/responses/TooManyRequestsResponse'
9270
+ security:
9271
+ - apiKeyAuth: []
9272
+ appKeyAuth: []
9273
+ - AuthZ:
9274
+ - events_read
9275
+ summary: Get a list of events
9276
+ tags:
9277
+ - Events
9278
+ x-menu-order: 1
9279
+ x-pagination:
9280
+ cursorParam: page[cursor]
9281
+ cursorPath: meta.page.after
9282
+ limitParam: page[limit]
9283
+ resultsPath: data
9284
+ x-undo:
9285
+ type: safe
9286
+ x-unstable: '**Note**: This endpoint is in private beta.
9287
+
9288
+ For access, contact [Datadog support](https://docs.datadoghq.com/help/).'
9289
+ /api/v2/events/search:
9290
+ post:
9291
+ description: 'List endpoint returns events that match an events search query.
9292
+
9293
+ [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).
9294
+
9295
+
9296
+ Use this endpoint to build complex events filtering and search.'
9297
+ operationId: SearchEvents
9298
+ requestBody:
9299
+ content:
9300
+ application/json:
9301
+ schema:
9302
+ $ref: '#/components/schemas/EventsListRequest'
9303
+ required: false
9304
+ responses:
9305
+ '200':
9306
+ content:
9307
+ application/json:
9308
+ schema:
9309
+ $ref: '#/components/schemas/EventsListResponse'
9310
+ description: OK
9311
+ '400':
9312
+ $ref: '#/components/responses/BadRequestResponse'
9313
+ '403':
9314
+ $ref: '#/components/responses/NotAuthorizedResponse'
9315
+ '429':
9316
+ $ref: '#/components/responses/TooManyRequestsResponse'
9317
+ summary: Search events
9318
+ tags:
9319
+ - Events
9320
+ x-codegen-request-body-name: body
9321
+ x-menu-order: 2
9322
+ x-pagination:
9323
+ cursorParam: body.page.cursor
9324
+ cursorPath: meta.page.after
9325
+ limitParam: body.page.limit
9326
+ resultsPath: data
9327
+ x-undo:
9328
+ type: safe
9329
+ x-unstable: '**Note**: This endpoint is in private beta.
9330
+
9331
+ For access, contact [Datadog support](https://docs.datadoghq.com/help/).'
9332
+ /api/v2/incidents:
9333
+ get:
9334
+ description: Get all incidents for the user's organization.
9335
+ operationId: ListIncidents
9336
+ parameters:
9337
+ - $ref: '#/components/parameters/IncidentIncludeQueryParameter'
9338
+ - $ref: '#/components/parameters/PageSize'
9339
+ - $ref: '#/components/parameters/PageOffset'
9340
+ responses:
9341
+ '200':
9342
+ content:
9343
+ application/json:
9344
+ schema:
9345
+ $ref: '#/components/schemas/IncidentsResponse'
9346
+ description: OK
9347
+ '400':
9348
+ $ref: '#/components/responses/BadRequestResponse'
9349
+ '401':
9350
+ $ref: '#/components/responses/UnauthorizedResponse'
9351
+ '403':
9352
+ $ref: '#/components/responses/ForbiddenResponse'
9353
+ '404':
9354
+ $ref: '#/components/responses/NotFoundResponse'
9355
+ '429':
9356
+ $ref: '#/components/responses/TooManyRequestsResponse'
9357
+ security:
9358
+ - apiKeyAuth: []
9359
+ appKeyAuth: []
9360
+ - AuthZ:
8336
9361
  - incident_read
8337
9362
  summary: Get a list of incidents
8338
9363
  tags:
@@ -8512,6 +9537,159 @@ paths:
8512
9537
  x-unstable: '**Note**: This endpoint is in public beta.
8513
9538
 
8514
9539
  If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
9540
+ /api/v2/integration/opsgenie/services:
9541
+ get:
9542
+ description: Get a list of all services from the Datadog Opsgenie integration.
9543
+ operationId: ListOpsgenieServices
9544
+ responses:
9545
+ '200':
9546
+ content:
9547
+ application/json:
9548
+ schema:
9549
+ $ref: '#/components/schemas/OpsgenieServicesResponse'
9550
+ description: OK
9551
+ '403':
9552
+ $ref: '#/components/responses/ForbiddenResponse'
9553
+ '429':
9554
+ $ref: '#/components/responses/TooManyRequestsResponse'
9555
+ summary: Get all service objects
9556
+ tags:
9557
+ - Opsgenie Integration
9558
+ x-menu-order: 1
9559
+ x-undo:
9560
+ type: safe
9561
+ post:
9562
+ description: Create a new service object in the Opsgenie integration.
9563
+ operationId: CreateOpsgenieService
9564
+ requestBody:
9565
+ content:
9566
+ application/json:
9567
+ schema:
9568
+ $ref: '#/components/schemas/OpsgenieServiceCreateRequest'
9569
+ description: Opsgenie service payload
9570
+ required: true
9571
+ responses:
9572
+ '201':
9573
+ content:
9574
+ application/json:
9575
+ schema:
9576
+ $ref: '#/components/schemas/OpsgenieServiceResponse'
9577
+ description: CREATED
9578
+ '400':
9579
+ $ref: '#/components/responses/BadRequestResponse'
9580
+ '403':
9581
+ $ref: '#/components/responses/ForbiddenResponse'
9582
+ '409':
9583
+ $ref: '#/components/responses/ConflictResponse'
9584
+ '429':
9585
+ $ref: '#/components/responses/TooManyRequestsResponse'
9586
+ summary: Create a new service object
9587
+ tags:
9588
+ - Opsgenie Integration
9589
+ x-codegen-request-body-name: body
9590
+ x-given:
9591
+ opsgenie_service:
9592
+ parameters:
9593
+ - name: body
9594
+ value: "{\n \"data\": {\n \"attributes\": {\n \"name\": \"{{
9595
+ unique }}\",\n \"opsgenie_api_key\": \"00000000-0000-0000-0000-000000000000\",\n
9596
+ \ \"region\": \"us\"\n },\n \"type\": \"opsgenie-service\"\n
9597
+ \ }\n}"
9598
+ step: there is a valid "opsgenie_service" in the system
9599
+ x-menu-order: 2
9600
+ x-undo:
9601
+ operationId: DeleteOpsgenieService
9602
+ parameters:
9603
+ - name: integration_service_id
9604
+ source: data.id
9605
+ type: unsafe
9606
+ /api/v2/integration/opsgenie/services/{integration_service_id}:
9607
+ delete:
9608
+ description: Delete a single service object in the Datadog Opsgenie integration.
9609
+ operationId: DeleteOpsgenieService
9610
+ parameters:
9611
+ - $ref: '#/components/parameters/OpsgenieServiceIDPathParameter'
9612
+ responses:
9613
+ '204':
9614
+ description: OK
9615
+ '400':
9616
+ $ref: '#/components/responses/BadRequestResponse'
9617
+ '403':
9618
+ $ref: '#/components/responses/ForbiddenResponse'
9619
+ '404':
9620
+ $ref: '#/components/responses/NotFoundResponse'
9621
+ '429':
9622
+ $ref: '#/components/responses/TooManyRequestsResponse'
9623
+ summary: Delete a single service object
9624
+ tags:
9625
+ - Opsgenie Integration
9626
+ x-menu-order: 5
9627
+ x-undo:
9628
+ type: idempotent
9629
+ get:
9630
+ description: Get a single service from the Datadog Opsgenie integration.
9631
+ operationId: GetOpsgenieService
9632
+ parameters:
9633
+ - $ref: '#/components/parameters/OpsgenieServiceIDPathParameter'
9634
+ responses:
9635
+ '200':
9636
+ content:
9637
+ application/json:
9638
+ schema:
9639
+ $ref: '#/components/schemas/OpsgenieServiceResponse'
9640
+ description: OK
9641
+ '400':
9642
+ $ref: '#/components/responses/BadRequestResponse'
9643
+ '403':
9644
+ $ref: '#/components/responses/ForbiddenResponse'
9645
+ '404':
9646
+ $ref: '#/components/responses/NotFoundResponse'
9647
+ '409':
9648
+ $ref: '#/components/responses/ConflictResponse'
9649
+ '429':
9650
+ $ref: '#/components/responses/TooManyRequestsResponse'
9651
+ summary: Get a single service object
9652
+ tags:
9653
+ - Opsgenie Integration
9654
+ x-menu-order: 3
9655
+ x-undo:
9656
+ type: safe
9657
+ patch:
9658
+ description: Update a single service object in the Datadog Opsgenie integration.
9659
+ operationId: UpdateOpsgenieService
9660
+ parameters:
9661
+ - $ref: '#/components/parameters/OpsgenieServiceIDPathParameter'
9662
+ requestBody:
9663
+ content:
9664
+ application/json:
9665
+ schema:
9666
+ $ref: '#/components/schemas/OpsgenieServiceUpdateRequest'
9667
+ description: Opsgenie service payload.
9668
+ required: true
9669
+ responses:
9670
+ '200':
9671
+ content:
9672
+ application/json:
9673
+ schema:
9674
+ $ref: '#/components/schemas/OpsgenieServiceResponse'
9675
+ description: OK
9676
+ '400':
9677
+ $ref: '#/components/responses/BadRequestResponse'
9678
+ '403':
9679
+ $ref: '#/components/responses/ForbiddenResponse'
9680
+ '404':
9681
+ $ref: '#/components/responses/NotFoundResponse'
9682
+ '409':
9683
+ $ref: '#/components/responses/ConflictResponse'
9684
+ '429':
9685
+ $ref: '#/components/responses/TooManyRequestsResponse'
9686
+ summary: Update a single service object
9687
+ tags:
9688
+ - Opsgenie Integration
9689
+ x-codegen-request-body-name: body
9690
+ x-menu-order: 4
9691
+ x-undo:
9692
+ type: idempotent
8515
9693
  /api/v2/logs:
8516
9694
  post:
8517
9695
  description: 'Send your logs to your Datadog platform over HTTP. Limits per
@@ -9575,10 +10753,6 @@ paths:
9575
10753
  x-menu-order: 5
9576
10754
  x-undo:
9577
10755
  type: safe
9578
- x-unstable: "**Note: Use of this endpoint for count/gauge/rate metric types
9579
- is only accessible for Metrics without Limits™ beta customers.\nIf you\u2019re
9580
- interested in Metrics without Limits™, please contact your Customer
9581
- Success Manager.**"
9582
10756
  /api/v2/metrics/config/bulk-tags:
9583
10757
  delete:
9584
10758
  description: 'Delete all custom lists of queryable tag keys for a set of existing
@@ -9885,10 +11059,6 @@ paths:
9885
11059
  x-menu-order: 4
9886
11060
  x-undo:
9887
11061
  type: idempotent
9888
- x-unstable: "**Note: Use of this endpoint for count/gauge/rate metric types
9889
- is only accessible for Metrics without Limits™ beta customers.\nIf you\u2019re
9890
- interested in Metrics without Limits™, please contact your Customer
9891
- Success Manager.**"
9892
11062
  get:
9893
11063
  description: Returns the tag configuration for the given metric name.
9894
11064
  operationId: ListTagConfigurationByName
@@ -9919,16 +11089,17 @@ paths:
9919
11089
  schema:
9920
11090
  $ref: '#/components/schemas/APIErrorResponse'
9921
11091
  description: Too Many Requests
11092
+ security:
11093
+ - apiKeyAuth: []
11094
+ appKeyAuth: []
11095
+ - AuthZ:
11096
+ - metrics_read
9922
11097
  summary: List tag configuration by name
9923
11098
  tags:
9924
11099
  - Metrics
9925
11100
  x-menu-order: 2
9926
11101
  x-undo:
9927
11102
  type: safe
9928
- x-unstable: "**Note: Use of this endpoint for count/gauge/rate metric types
9929
- is only accessible for Metrics without Limits™ beta customers.\nIf you\u2019re
9930
- interested in Metrics without Limits™, please contact your Customer
9931
- Success Manager.**"
9932
11103
  patch:
9933
11104
  description: 'Update the tag configuration of a metric or percentile aggregations
9934
11105
  of a distribution metric or custom aggregations
@@ -9984,10 +11155,6 @@ paths:
9984
11155
  x-menu-order: 3
9985
11156
  x-undo:
9986
11157
  type: idempotent
9987
- x-unstable: "**Note: Use of this endpoint for count/gauge/rate metric types
9988
- is only accessible for Metrics without Limits™ beta customers.\nIf you\u2019re
9989
- interested in Metrics without Limits™, please contact your Customer
9990
- Success Manager.**"
9991
11158
  post:
9992
11159
  description: 'Create and define a list of queryable tag keys for an existing
9993
11160
  count/gauge/rate/distribution metric.
@@ -10061,21 +11228,11 @@ paths:
10061
11228
  - name: metric_name
10062
11229
  source: data.id
10063
11230
  type: unsafe
10064
- x-unstable: "**Note: Use of this endpoint for count/gauge/rate metric types
10065
- is only accessible for Metrics without Limits™ beta customers.\nIf you\u2019re
10066
- interested in Metrics without Limits™, please contact your Customer
10067
- Success Manager.**"
10068
11231
  /api/v2/metrics/{metric_name}/volumes:
10069
11232
  get:
10070
11233
  description: 'View distinct metrics volumes for the given metric name.
10071
11234
 
10072
11235
 
10073
- Custom distribution metrics will return both ingested and indexed custom metric
10074
- volumes.
10075
-
10076
- For Metrics without Limits™ beta customers, all metrics will return
10077
- both ingested/indexed volumes.
10078
-
10079
11236
  Custom metrics generated in-app from other products will return `null` for
10080
11237
  ingested volumes.'
10081
11238
  operationId: ListVolumesByMetricName
@@ -11096,11 +12253,6 @@ paths:
11096
12253
  $ref: '#/components/responses/NotAuthorizedResponse'
11097
12254
  '429':
11098
12255
  $ref: '#/components/responses/TooManyRequestsResponse'
11099
- security:
11100
- - apiKeyAuth: []
11101
- appKeyAuth: []
11102
- - AuthZ:
11103
- - security_monitoring_rules_read
11104
12256
  summary: Get the latest Cloud Workload Security policy
11105
12257
  tags:
11106
12258
  - Cloud Workload Security
@@ -11702,9 +12854,6 @@ paths:
11702
12854
  resultsPath: data
11703
12855
  x-undo:
11704
12856
  type: safe
11705
- x-unstable: '**Note**: This endpoint is in public beta.
11706
-
11707
- If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
11708
12857
  /api/v2/security_monitoring/signals/search:
11709
12858
  post:
11710
12859
  description: 'Returns security signals that match a search query.
@@ -11749,9 +12898,159 @@ paths:
11749
12898
  resultsPath: data
11750
12899
  x-undo:
11751
12900
  type: safe
11752
- x-unstable: '**Note**: This endpoint is in public beta.
11753
-
11754
- If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
12901
+ /api/v2/security_monitoring/signals/{signal_id}/assignee:
12902
+ patch:
12903
+ description: Modify the triage assignee of a security signal.
12904
+ operationId: EditSecurityMonitoringSignalAssignee
12905
+ parameters:
12906
+ - $ref: '#/components/parameters/SignalID'
12907
+ requestBody:
12908
+ content:
12909
+ application/json:
12910
+ schema:
12911
+ $ref: '#/components/schemas/SecurityMonitoringSignalAssigneeUpdateRequest'
12912
+ description: Attributes describing the signal update.
12913
+ required: true
12914
+ responses:
12915
+ '200':
12916
+ content:
12917
+ application/json:
12918
+ schema:
12919
+ $ref: '#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse'
12920
+ description: OK
12921
+ '400':
12922
+ content:
12923
+ application/json:
12924
+ schema:
12925
+ $ref: '#/components/schemas/APIErrorResponse'
12926
+ description: Bad Request
12927
+ '403':
12928
+ content:
12929
+ application/json:
12930
+ schema:
12931
+ $ref: '#/components/schemas/APIErrorResponse'
12932
+ description: Forbidden
12933
+ '404':
12934
+ content:
12935
+ application/json:
12936
+ schema:
12937
+ $ref: '#/components/schemas/APIErrorResponse'
12938
+ description: Not Found
12939
+ '429':
12940
+ $ref: '#/components/responses/TooManyRequestsResponse'
12941
+ security:
12942
+ - apiKeyAuth: []
12943
+ appKeyAuth: []
12944
+ - AuthZ:
12945
+ - security_monitoring_signals_write
12946
+ summary: Modify the triage assignee of a security signal
12947
+ tags:
12948
+ - Security Monitoring
12949
+ x-codegen-request-body-name: body
12950
+ x-undo:
12951
+ type: idempotent
12952
+ /api/v2/security_monitoring/signals/{signal_id}/incidents:
12953
+ patch:
12954
+ description: Change the related incidents for a security signal.
12955
+ operationId: EditSecurityMonitoringSignalIncidents
12956
+ parameters:
12957
+ - $ref: '#/components/parameters/SignalID'
12958
+ requestBody:
12959
+ content:
12960
+ application/json:
12961
+ schema:
12962
+ $ref: '#/components/schemas/SecurityMonitoringSignalIncidentsUpdateRequest'
12963
+ description: Attributes describing the signal update.
12964
+ required: true
12965
+ responses:
12966
+ '200':
12967
+ content:
12968
+ application/json:
12969
+ schema:
12970
+ $ref: '#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse'
12971
+ description: OK
12972
+ '400':
12973
+ content:
12974
+ application/json:
12975
+ schema:
12976
+ $ref: '#/components/schemas/APIErrorResponse'
12977
+ description: Bad Request
12978
+ '403':
12979
+ content:
12980
+ application/json:
12981
+ schema:
12982
+ $ref: '#/components/schemas/APIErrorResponse'
12983
+ description: Forbidden
12984
+ '404':
12985
+ content:
12986
+ application/json:
12987
+ schema:
12988
+ $ref: '#/components/schemas/APIErrorResponse'
12989
+ description: Not Found
12990
+ '429':
12991
+ $ref: '#/components/responses/TooManyRequestsResponse'
12992
+ security:
12993
+ - apiKeyAuth: []
12994
+ appKeyAuth: []
12995
+ - AuthZ:
12996
+ - security_monitoring_signals_write
12997
+ summary: Change the related incidents of a security signal
12998
+ tags:
12999
+ - Security Monitoring
13000
+ x-codegen-request-body-name: body
13001
+ x-undo:
13002
+ type: idempotent
13003
+ /api/v2/security_monitoring/signals/{signal_id}/state:
13004
+ patch:
13005
+ description: Change the triage state of a security signal.
13006
+ operationId: EditSecurityMonitoringSignalState
13007
+ parameters:
13008
+ - $ref: '#/components/parameters/SignalID'
13009
+ requestBody:
13010
+ content:
13011
+ application/json:
13012
+ schema:
13013
+ $ref: '#/components/schemas/SecurityMonitoringSignalStateUpdateRequest'
13014
+ description: Attributes describing the signal update.
13015
+ required: true
13016
+ responses:
13017
+ '200':
13018
+ content:
13019
+ application/json:
13020
+ schema:
13021
+ $ref: '#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse'
13022
+ description: OK
13023
+ '400':
13024
+ content:
13025
+ application/json:
13026
+ schema:
13027
+ $ref: '#/components/schemas/APIErrorResponse'
13028
+ description: Bad Request
13029
+ '403':
13030
+ content:
13031
+ application/json:
13032
+ schema:
13033
+ $ref: '#/components/schemas/APIErrorResponse'
13034
+ description: Forbidden
13035
+ '404':
13036
+ content:
13037
+ application/json:
13038
+ schema:
13039
+ $ref: '#/components/schemas/APIErrorResponse'
13040
+ description: Not Found
13041
+ '429':
13042
+ $ref: '#/components/responses/TooManyRequestsResponse'
13043
+ security:
13044
+ - apiKeyAuth: []
13045
+ appKeyAuth: []
13046
+ - AuthZ:
13047
+ - security_monitoring_signals_write
13048
+ summary: Change the triage state of a security signal
13049
+ tags:
13050
+ - Security Monitoring
13051
+ x-codegen-request-body-name: body
13052
+ x-undo:
13053
+ type: idempotent
11755
13054
  /api/v2/series:
11756
13055
  post:
11757
13056
  description: "The metrics end-point allows you to post time-series data that
@@ -11761,7 +13060,7 @@ paths:
11761
13060
  metrics directly to the Datadog API without using DogStatsD, expect:\n\n-
11762
13061
  64 bits for the timestamp\n- 64 bits for the value\n- 20 bytes for the metric
11763
13062
  names\n- 50 bytes for the timeseries\n- The full payload is approximately
11764
- 100 bytes."
13063
+ 100 bytes.\n\nHost name is one of the resources in the Resources field."
11765
13064
  operationId: SubmitMetrics
11766
13065
  parameters:
11767
13066
  - description: HTTP header used to compress the media-type.
@@ -12500,7 +13799,10 @@ paths:
12500
13799
  If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
12501
13800
  /api/v2/usage/application_security:
12502
13801
  get:
12503
- description: Get hourly usage for Application Security .
13802
+ description: 'Get hourly usage for application security .
13803
+
13804
+ **Note:** hourly usage data for all products is now available in the [Get
13805
+ hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)'
12504
13806
  operationId: GetUsageApplicationSecurityMonitoring
12505
13807
  parameters:
12506
13808
  - description: 'Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]`
@@ -12551,10 +13853,10 @@ paths:
12551
13853
  appKeyAuth: []
12552
13854
  - AuthZ:
12553
13855
  - usage_read
12554
- summary: Get hourly usage for Application Security
13856
+ summary: Get hourly usage for application security
12555
13857
  tags:
12556
13858
  - Usage Metering
12557
- x-menu-order: 38
13859
+ x-menu-order: 37
12558
13860
  x-undo:
12559
13861
  type: safe
12560
13862
  /api/v2/usage/cost_by_org:
@@ -12612,12 +13914,220 @@ paths:
12612
13914
  summary: Get cost across multi-org account
12613
13915
  tags:
12614
13916
  - Usage Metering
13917
+ x-menu-order: 5
13918
+ x-undo:
13919
+ type: safe
13920
+ /api/v2/usage/estimated_cost:
13921
+ get:
13922
+ description: 'Get estimated cost across multi-org and single root-org accounts.
13923
+
13924
+ Estimated cost data is only available for the current month and previous month.
13925
+ To access historical costs prior to this, use the /cost_by_org endpoint.'
13926
+ operationId: GetEstimatedCostByOrg
13927
+ parameters:
13928
+ - description: String to specify whether cost is broken down at a parent-org
13929
+ level or at the sub-org level. Currently, only the 'sub-org' view is supported.
13930
+ in: query
13931
+ name: view
13932
+ required: true
13933
+ schema:
13934
+ type: string
13935
+ - description: 'Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]`
13936
+ for cost beginning this month. Either start_month or start_date should be
13937
+ specified, but not both. (start_month cannot go beyond two months in the
13938
+ past)'
13939
+ in: query
13940
+ name: start_month
13941
+ required: false
13942
+ schema:
13943
+ format: date-time
13944
+ type: string
13945
+ - description: 'Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]`
13946
+ for cost ending this month.'
13947
+ in: query
13948
+ name: end_month
13949
+ required: false
13950
+ schema:
13951
+ format: date-time
13952
+ type: string
13953
+ - description: 'Datetime in ISO-8601 format, UTC, precise to day: `[YYYY-MM-DD]`
13954
+ for cost beginning this day. Either start_month or start_date should be
13955
+ specified, but not both. (start_date cannot go beyond two months in the
13956
+ past)'
13957
+ in: query
13958
+ name: start_date
13959
+ required: false
13960
+ schema:
13961
+ format: date-time
13962
+ type: string
13963
+ - description: 'Datetime in ISO-8601 format, UTC, precise to day: `[YYYY-MM-DD]`
13964
+ for cost ending this day.'
13965
+ in: query
13966
+ name: end_date
13967
+ required: false
13968
+ schema:
13969
+ format: date-time
13970
+ type: string
13971
+ responses:
13972
+ '200':
13973
+ content:
13974
+ application/json;datetime-format=rfc3339:
13975
+ schema:
13976
+ $ref: '#/components/schemas/CostByOrgResponse'
13977
+ description: OK
13978
+ '400':
13979
+ content:
13980
+ application/json;datetime-format=rfc3339:
13981
+ schema:
13982
+ $ref: '#/components/schemas/APIErrorResponse'
13983
+ description: Bad Request
13984
+ '403':
13985
+ content:
13986
+ application/json;datetime-format=rfc3339:
13987
+ schema:
13988
+ $ref: '#/components/schemas/APIErrorResponse'
13989
+ description: Forbidden - User is not authorized
13990
+ '429':
13991
+ content:
13992
+ application/json;datetime-format=rfc3339:
13993
+ schema:
13994
+ $ref: '#/components/schemas/APIErrorResponse'
13995
+ description: Too many requests
13996
+ security:
13997
+ - apiKeyAuth: []
13998
+ appKeyAuth: []
13999
+ - AuthZ:
14000
+ - usage_read
14001
+ summary: Get estimated cost across your account
14002
+ tags:
14003
+ - Usage Metering
12615
14004
  x-menu-order: 39
12616
14005
  x-undo:
12617
14006
  type: safe
14007
+ x-unstable: '**Note**: This endpoint is in public beta.
14008
+
14009
+ Only the sub-org view is available currently, the summary view will be released
14010
+ at a later date.'
14011
+ /api/v2/usage/hourly_usage:
14012
+ get:
14013
+ description: Get hourly usage by product family
14014
+ operationId: GetHourlyUsage
14015
+ parameters:
14016
+ - description: 'Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh]
14017
+ for usage beginning at this hour.'
14018
+ in: query
14019
+ name: filter[timestamp][start]
14020
+ required: true
14021
+ schema:
14022
+ format: date-time
14023
+ type: string
14024
+ - description: 'Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh]
14025
+ for usage ending **before** this hour.'
14026
+ in: query
14027
+ name: filter[timestamp][end]
14028
+ required: false
14029
+ schema:
14030
+ format: date-time
14031
+ type: string
14032
+ - description: 'Comma separated list of product families to retrieve. Available
14033
+ families are `all`, `analyzed_logs`,
14034
+
14035
+ `application_security`, `audit_logs`, `serverless`, `ci_app`, `cspm`, `custom_events`,
14036
+ `cws`, `dbm`, `fargate`,
14037
+
14038
+ `infra_hosts`, `incident_management`, `indexed_logs`, `indexed_spans`, `ingested_spans`,
14039
+ `iot`,
14040
+
14041
+ `lambda_traced_invocations`, `logs`, `network_flows`, `network_hosts`, `observability_pipelines`,
14042
+
14043
+ `online_archive`, `profiling`, `rum`, `rum_browser_sessions`, `rum_mobile_sessions`,
14044
+ `sds`, `snmp`,
14045
+
14046
+ `synthetics_api`, `synthetics_browser`, and `timeseries`.'
14047
+ in: query
14048
+ name: filter[product_families]
14049
+ required: true
14050
+ schema:
14051
+ type: string
14052
+ - description: Include child org usage in the response. Defaults to false.
14053
+ in: query
14054
+ name: filter[include_descendants]
14055
+ required: false
14056
+ schema:
14057
+ default: false
14058
+ type: boolean
14059
+ - description: 'Comma separated list of product family versions to use in the
14060
+ format `product_family:version`. For example,
14061
+
14062
+ `infra_hosts:1.0.0`. If this parameter is not used, the API will use the
14063
+ latest version of each requested
14064
+
14065
+ product family. Currently all families have one version `1.0.0`.'
14066
+ in: query
14067
+ name: filter[versions]
14068
+ required: false
14069
+ schema:
14070
+ type: string
14071
+ - description: Maximum number of results to return (between 1 and 500) - defaults
14072
+ to 500 if limit not specified.
14073
+ in: query
14074
+ name: page[limit]
14075
+ required: false
14076
+ schema:
14077
+ default: 500
14078
+ format: int32
14079
+ maximum: 500
14080
+ minimum: 1
14081
+ type: integer
14082
+ - description: List following results with a next_record_id provided in the
14083
+ previous query.
14084
+ in: query
14085
+ name: page[next_record_id]
14086
+ required: false
14087
+ schema:
14088
+ type: string
14089
+ responses:
14090
+ '200':
14091
+ content:
14092
+ application/json;datetime-format=rfc3339:
14093
+ schema:
14094
+ $ref: '#/components/schemas/HourlyUsageResponse'
14095
+ description: OK
14096
+ '400':
14097
+ content:
14098
+ application/json;datetime-format=rfc3339:
14099
+ schema:
14100
+ $ref: '#/components/schemas/APIErrorResponse'
14101
+ description: Bad Request
14102
+ '403':
14103
+ content:
14104
+ application/json;datetime-format=rfc3339:
14105
+ schema:
14106
+ $ref: '#/components/schemas/APIErrorResponse'
14107
+ description: Forbidden - User is not authorized
14108
+ '429':
14109
+ content:
14110
+ application/json;datetime-format=rfc3339:
14111
+ schema:
14112
+ $ref: '#/components/schemas/APIErrorResponse'
14113
+ description: Too many requests
14114
+ security:
14115
+ - apiKeyAuth: []
14116
+ appKeyAuth: []
14117
+ - AuthZ:
14118
+ - usage_read
14119
+ summary: Get hourly usage by product family
14120
+ tags:
14121
+ - Usage Metering
14122
+ x-menu-order: 1
14123
+ x-undo:
14124
+ type: safe
12618
14125
  /api/v2/usage/lambda_traced_invocations:
12619
14126
  get:
12620
- description: Get hourly usage for Lambda Traced Invocations.
14127
+ description: 'Get hourly usage for lambda traced invocations.
14128
+
14129
+ **Note:** hourly usage data for all products is now available in the [Get
14130
+ hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)'
12621
14131
  operationId: GetUsageLambdaTracedInvocations
12622
14132
  parameters:
12623
14133
  - description: 'Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]`
@@ -12668,15 +14178,18 @@ paths:
12668
14178
  appKeyAuth: []
12669
14179
  - AuthZ:
12670
14180
  - usage_read
12671
- summary: Get hourly usage for Lambda Traced Invocations
14181
+ summary: Get hourly usage for lambda traced invocations
12672
14182
  tags:
12673
14183
  - Usage Metering
12674
- x-menu-order: 38
14184
+ x-menu-order: 36
12675
14185
  x-undo:
12676
14186
  type: safe
12677
14187
  /api/v2/usage/observability_pipelines:
12678
14188
  get:
12679
- description: Get hourly usage for Observability Pipelines.
14189
+ description: 'Get hourly usage for observability pipelines.
14190
+
14191
+ **Note:** hourly usage data for all products is now available in the [Get
14192
+ hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)'
12680
14193
  operationId: GetUsageObservabilityPipelines
12681
14194
  parameters:
12682
14195
  - description: 'Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]`
@@ -12727,7 +14240,7 @@ paths:
12727
14240
  appKeyAuth: []
12728
14241
  - AuthZ:
12729
14242
  - usage_read
12730
- summary: Get hourly usage for Observability Pipelines
14243
+ summary: Get hourly usage for observability pipelines
12731
14244
  tags:
12732
14245
  - Usage Metering
12733
14246
  x-menu-order: 38
@@ -13227,6 +14740,16 @@ tags:
13227
14740
 
13228
14741
  organization.'
13229
14742
  name: Dashboard Lists
14743
+ - description: 'The events service allows you to programmatically post events to the
14744
+ event stream
14745
+
14746
+ and fetch events from the event stream. Events are limited to 4000 characters.
14747
+
14748
+ If an event is sent out with a message containing more than 4000 characters, only
14749
+ the
14750
+
14751
+ first 4000 characters are displayed.'
14752
+ name: Events
13230
14753
  - description: Create, update, delete, and retrieve services which can be associated
13231
14754
  with incidents.
13232
14755
  name: Incident Services
@@ -13273,6 +14796,12 @@ tags:
13273
14796
  that set number.\n\nThe Post, Patch, and Delete `manage_tags` API methods can
13274
14797
  only be performed by\na user who has the `Manage Tags for Metrics` permission."
13275
14798
  name: Metrics
14799
+ - description: 'Configure your [Datadog Opsgenie integration](https://docs.datadoghq.com/integrations/opsgenie/)
14800
+
14801
+ directly through the Datadog API.'
14802
+ externalDocs:
14803
+ url: https://docs.datadoghq.com/api/latest/opsgenie-integration
14804
+ name: Opsgenie Integration
13276
14805
  - description: Create, edit, and manage your organizations. Read more about [multi-org
13277
14806
  accounts](https://docs.datadoghq.com/account_management/multi_organization).
13278
14807
  externalDocs: