datadog_api_client 1.0.0.beta.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (245) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.azure-pipelines/all.yml +0 -1
  4. data/.rubocop.yml +1 -1
  5. data/CHANGELOG.md +23 -0
  6. data/Gemfile +1 -1
  7. data/LICENSE-3rdparty.csv +0 -1
  8. data/check-examples.sh +7 -2
  9. data/data/v1/openapi.yaml +1963 -245
  10. data/data/v2/openapi.yaml +67 -13
  11. data/docs/v1/DashboardsAPI.md +10 -5
  12. data/docs/v1/DistributionWidgetDefinition.md +9 -3
  13. data/docs/v1/DistributionWidgetXAxis.md +24 -0
  14. data/docs/v1/DistributionWidgetYAxis.md +26 -0
  15. data/docs/v1/EventsAPI.md +7 -3
  16. data/docs/v1/GroupWidgetDefinition.md +8 -0
  17. data/docs/v1/ImageWidgetDefinition.md +11 -1
  18. data/docs/v1/LogsByRetention.md +22 -0
  19. data/docs/v1/LogsByRetentionMonthlyUsage.md +20 -0
  20. data/docs/v1/LogsByRetentionOrgUsage.md +18 -0
  21. data/docs/v1/LogsByRetentionOrgs.md +18 -0
  22. data/docs/v1/LogsRetentionAggSumUsage.md +24 -0
  23. data/docs/v1/LogsRetentionSumUsage.md +24 -0
  24. data/docs/v1/MonitorsAPI.md +1 -1
  25. data/docs/v1/NoteWidgetDefinition.md +5 -1
  26. data/docs/v1/NotebookAbsoluteTime.md +22 -0
  27. data/docs/v1/NotebookAuthor.md +34 -0
  28. data/docs/v1/NotebookCellCreateRequest.md +20 -0
  29. data/docs/v1/NotebookCellCreateRequestAttributes.md +57 -0
  30. data/docs/v1/NotebookCellResourceType.md +15 -0
  31. data/docs/v1/NotebookCellResponse.md +22 -0
  32. data/docs/v1/NotebookCellResponseAttributes.md +57 -0
  33. data/docs/v1/NotebookCellTime.md +49 -0
  34. data/docs/v1/NotebookCellUpdateRequest.md +22 -0
  35. data/docs/v1/NotebookCellUpdateRequestAttributes.md +57 -0
  36. data/docs/v1/NotebookCreateData.md +20 -0
  37. data/docs/v1/NotebookCreateDataAttributes.md +24 -0
  38. data/docs/v1/NotebookCreateRequest.md +18 -0
  39. data/docs/v1/NotebookDistributionCellAttributes.md +24 -0
  40. data/docs/v1/NotebookGlobalTime.md +49 -0
  41. data/docs/v1/NotebookGraphSize.md +15 -0
  42. data/docs/v1/NotebookHeatMapCellAttributes.md +24 -0
  43. data/docs/v1/NotebookLogStreamCellAttributes.md +22 -0
  44. data/docs/v1/NotebookMarkdownCellAttributes.md +18 -0
  45. data/docs/v1/NotebookMarkdownCellDefinition.md +21 -0
  46. data/docs/v1/NotebookMarkdownCellDefinitionType.md +15 -0
  47. data/docs/v1/NotebookRelativeTime.md +18 -0
  48. data/docs/v1/NotebookResourceType.md +15 -0
  49. data/docs/v1/NotebookResponse.md +18 -0
  50. data/docs/v1/NotebookResponseData.md +22 -0
  51. data/docs/v1/NotebookResponseDataAttributes.md +30 -0
  52. data/docs/v1/NotebookSplitBy.md +20 -0
  53. data/docs/v1/NotebookStatus.md +15 -0
  54. data/docs/v1/NotebookTimeseriesCellAttributes.md +24 -0
  55. data/docs/v1/NotebookToplistCellAttributes.md +24 -0
  56. data/docs/v1/NotebookUpdateCell.md +49 -0
  57. data/docs/v1/NotebookUpdateData.md +20 -0
  58. data/docs/v1/NotebookUpdateDataAttributes.md +24 -0
  59. data/docs/v1/NotebookUpdateRequest.md +18 -0
  60. data/docs/v1/NotebooksAPI.md +339 -0
  61. data/docs/v1/NotebooksResponse.md +20 -0
  62. data/docs/v1/NotebooksResponseMeta.md +18 -0
  63. data/docs/v1/NotebooksResponsePage.md +20 -0
  64. data/docs/v1/README.md +66 -9
  65. data/docs/v1/SLOListResponse.md +3 -1
  66. data/docs/v1/SLOListResponseMetadata.md +18 -0
  67. data/docs/v1/SLOListResponseMetadataPage.md +20 -0
  68. data/docs/v1/SLOResponse.md +1 -1
  69. data/docs/v1/SLOResponseData.md +44 -0
  70. data/docs/v1/ServiceLevelObjectivesAPI.md +8 -4
  71. data/docs/v1/SyntheticsAPI.md +28 -156
  72. data/docs/v1/SyntheticsAPIStep.md +4 -0
  73. data/docs/v1/SyntheticsBrowserTestConfig.md +2 -0
  74. data/docs/v1/SyntheticsTestConfig.md +1 -1
  75. data/docs/v1/SyntheticsTestOptions.md +1 -1
  76. data/docs/v1/SyntheticsTestRequest.md +6 -0
  77. data/docs/v1/UsageAttributionSupportedMetrics.md +15 -0
  78. data/docs/v1/UsageAttributionValues.md +8 -0
  79. data/docs/v1/UsageHostHour.md +3 -1
  80. data/docs/v1/UsageIoTHour.md +1 -1
  81. data/docs/v1/UsageLogsByRetentionHour.md +24 -0
  82. data/docs/v1/UsageLogsByRetentionResponse.md +18 -0
  83. data/docs/v1/UsageMeteringAPI.md +69 -2
  84. data/docs/v1/UsageSummaryDate.md +11 -9
  85. data/docs/v1/UsageSummaryDateOrg.md +3 -1
  86. data/docs/v1/UsageSummaryResponse.md +5 -1
  87. data/docs/v1/WidgetHorizontalAlign.md +15 -0
  88. data/docs/v1/WidgetLayout.md +2 -0
  89. data/docs/v1/WidgetMarker.md +1 -1
  90. data/docs/v1/WidgetVerticalAlign.md +15 -0
  91. data/docs/v2/IncidentServiceUpdateData.md +1 -1
  92. data/docs/v2/IncidentServicesAPI.md +1 -1
  93. data/docs/v2/IncidentTeamUpdateData.md +1 -1
  94. data/docs/v2/IncidentTeamsAPI.md +1 -1
  95. data/docs/v2/MetricsAPI.md +1 -11
  96. data/extract-code-blocks.sh +6 -2
  97. data/lib/datadog_api_client/v1.rb +54 -0
  98. data/lib/datadog_api_client/v1/api/dashboards_api.rb +3 -0
  99. data/lib/datadog_api_client/v1/api/events_api.rb +14 -4
  100. data/lib/datadog_api_client/v1/api/monitors_api.rb +2 -2
  101. data/lib/datadog_api_client/v1/api/notebooks_api.rb +418 -0
  102. data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +3 -0
  103. data/lib/datadog_api_client/v1/api/synthetics_api.rb +14 -170
  104. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +79 -2
  105. data/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +36 -6
  106. data/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb +259 -0
  107. data/lib/datadog_api_client/v1/models/distribution_widget_y_axis.rb +269 -0
  108. data/lib/datadog_api_client/v1/models/group_widget_definition.rb +42 -1
  109. data/lib/datadog_api_client/v1/models/image_widget_definition.rb +56 -4
  110. data/lib/datadog_api_client/v1/models/logs_by_retention.rb +243 -0
  111. data/lib/datadog_api_client/v1/models/logs_by_retention_monthly_usage.rb +235 -0
  112. data/lib/datadog_api_client/v1/models/logs_by_retention_org_usage.rb +225 -0
  113. data/lib/datadog_api_client/v1/models/logs_by_retention_orgs.rb +225 -0
  114. data/lib/datadog_api_client/v1/models/logs_retention_agg_sum_usage.rb +253 -0
  115. data/lib/datadog_api_client/v1/models/logs_retention_sum_usage.rb +253 -0
  116. data/lib/datadog_api_client/v1/models/note_widget_definition.rb +25 -4
  117. data/lib/datadog_api_client/v1/models/notebook_absolute_time.rb +253 -0
  118. data/lib/datadog_api_client/v1/models/notebook_author.rb +303 -0
  119. data/lib/datadog_api_client/v1/models/notebook_cell_create_request.rb +243 -0
  120. data/lib/datadog_api_client/v1/models/notebook_cell_create_request_attributes.rb +113 -0
  121. data/lib/datadog_api_client/v1/models/notebook_cell_resource_type.rb +39 -0
  122. data/lib/datadog_api_client/v1/models/notebook_cell_response.rb +258 -0
  123. data/lib/datadog_api_client/v1/models/notebook_cell_response_attributes.rb +113 -0
  124. data/lib/datadog_api_client/v1/models/notebook_cell_time.rb +109 -0
  125. data/lib/datadog_api_client/v1/models/notebook_cell_update_request.rb +258 -0
  126. data/lib/datadog_api_client/v1/models/notebook_cell_update_request_attributes.rb +113 -0
  127. data/lib/datadog_api_client/v1/models/notebook_create_data.rb +243 -0
  128. data/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb +298 -0
  129. data/lib/datadog_api_client/v1/models/notebook_create_request.rb +227 -0
  130. data/lib/datadog_api_client/v1/models/notebook_distribution_cell_attributes.rb +255 -0
  131. data/lib/datadog_api_client/v1/models/notebook_global_time.rb +109 -0
  132. data/lib/datadog_api_client/v1/models/notebook_graph_size.rb +43 -0
  133. data/lib/datadog_api_client/v1/models/notebook_heat_map_cell_attributes.rb +255 -0
  134. data/lib/datadog_api_client/v1/models/notebook_log_stream_cell_attributes.rb +246 -0
  135. data/lib/datadog_api_client/v1/models/notebook_markdown_cell_attributes.rb +227 -0
  136. data/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition.rb +244 -0
  137. data/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition_type.rb +39 -0
  138. data/lib/datadog_api_client/v1/models/notebook_relative_time.rb +227 -0
  139. data/lib/datadog_api_client/v1/models/notebook_resource_type.rb +39 -0
  140. data/lib/datadog_api_client/v1/models/notebook_response.rb +222 -0
  141. data/lib/datadog_api_client/v1/models/notebook_response_data.rb +258 -0
  142. data/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb +327 -0
  143. data/lib/datadog_api_client/v1/models/notebook_split_by.rb +247 -0
  144. data/lib/datadog_api_client/v1/models/notebook_status.rb +39 -0
  145. data/lib/datadog_api_client/v1/models/notebook_timeseries_cell_attributes.rb +255 -0
  146. data/lib/datadog_api_client/v1/models/notebook_toplist_cell_attributes.rb +255 -0
  147. data/lib/datadog_api_client/v1/models/notebook_update_cell.rb +109 -0
  148. data/lib/datadog_api_client/v1/models/notebook_update_data.rb +243 -0
  149. data/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb +298 -0
  150. data/lib/datadog_api_client/v1/models/notebook_update_request.rb +227 -0
  151. data/lib/datadog_api_client/v1/models/notebooks_response.rb +234 -0
  152. data/lib/datadog_api_client/v1/models/notebooks_response_meta.rb +222 -0
  153. data/lib/datadog_api_client/v1/models/notebooks_response_page.rb +233 -0
  154. data/lib/datadog_api_client/v1/models/slo_list_response.rb +13 -4
  155. data/lib/datadog_api_client/v1/models/slo_list_response_metadata.rb +222 -0
  156. data/lib/datadog_api_client/v1/models/slo_list_response_metadata_page.rb +233 -0
  157. data/lib/datadog_api_client/v1/models/slo_response.rb +1 -1
  158. data/lib/datadog_api_client/v1/models/slo_response_data.rb +363 -0
  159. data/lib/datadog_api_client/v1/models/synthetics_api_step.rb +21 -1
  160. data/lib/datadog_api_client/v1/models/synthetics_assertion_type.rb +4 -0
  161. data/lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb +11 -1
  162. data/lib/datadog_api_client/v1/models/synthetics_test_config.rb +0 -5
  163. data/lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb +1 -0
  164. data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +1 -1
  165. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +79 -1
  166. data/lib/datadog_api_client/v1/models/synthetics_tick_interval.rb +1 -0
  167. data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +67 -0
  168. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +41 -1
  169. data/lib/datadog_api_client/v1/models/usage_host_hour.rb +14 -4
  170. data/lib/datadog_api_client/v1/models/usage_io_t_hour.rb +1 -1
  171. data/lib/datadog_api_client/v1/models/usage_logs_by_retention_hour.rb +253 -0
  172. data/lib/datadog_api_client/v1/models/usage_logs_by_retention_response.rb +225 -0
  173. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +38 -28
  174. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +14 -4
  175. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +23 -4
  176. data/lib/datadog_api_client/v1/models/widget.rb +1 -1
  177. data/lib/datadog_api_client/v1/models/widget_horizontal_align.rb +41 -0
  178. data/lib/datadog_api_client/v1/models/widget_image_sizing.rb +5 -0
  179. data/lib/datadog_api_client/v1/models/widget_layout.rb +12 -2
  180. data/lib/datadog_api_client/v1/models/widget_margin.rb +3 -0
  181. data/lib/datadog_api_client/v1/models/widget_marker.rb +1 -1
  182. data/lib/datadog_api_client/v1/models/widget_vertical_align.rb +41 -0
  183. data/lib/datadog_api_client/v2/api/metrics_api.rb +2 -2
  184. data/lib/datadog_api_client/v2/configuration.rb +0 -2
  185. data/lib/datadog_api_client/v2/models/incident_service_update_data.rb +0 -5
  186. data/lib/datadog_api_client/v2/models/incident_team_update_data.rb +0 -5
  187. data/lib/datadog_api_client/v2/models/metric_tag_configuration_metric_types.rb +1 -0
  188. data/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb +1 -0
  189. data/lib/datadog_api_client/version.rb +1 -1
  190. data/run-tests.sh +0 -6
  191. data/spec/v1/api/notebooks_api_spec.rb +106 -0
  192. data/spec/v1/models/distribution_widget_x_axis_spec.rb +55 -0
  193. data/spec/v1/models/distribution_widget_y_axis_spec.rb +61 -0
  194. data/spec/v1/models/logs_by_retention_monthly_usage_spec.rb +43 -0
  195. data/spec/v1/models/logs_by_retention_org_usage_spec.rb +37 -0
  196. data/spec/v1/models/logs_by_retention_orgs_spec.rb +37 -0
  197. data/spec/v1/models/logs_by_retention_spec.rb +49 -0
  198. data/spec/v1/models/logs_retention_agg_sum_usage_spec.rb +55 -0
  199. data/spec/v1/models/logs_retention_sum_usage_spec.rb +55 -0
  200. data/spec/v1/models/notebook_absolute_time_spec.rb +49 -0
  201. data/spec/v1/models/notebook_author_spec.rb +85 -0
  202. data/spec/v1/models/notebook_cell_create_request_attributes_spec.rb +34 -0
  203. data/spec/v1/models/notebook_cell_create_request_spec.rb +43 -0
  204. data/spec/v1/models/notebook_cell_resource_type_spec.rb +31 -0
  205. data/spec/v1/models/notebook_cell_response_attributes_spec.rb +34 -0
  206. data/spec/v1/models/notebook_cell_response_spec.rb +49 -0
  207. data/spec/v1/models/notebook_cell_time_spec.rb +34 -0
  208. data/spec/v1/models/notebook_cell_update_request_attributes_spec.rb +34 -0
  209. data/spec/v1/models/notebook_cell_update_request_spec.rb +49 -0
  210. data/spec/v1/models/notebook_create_data_attributes_spec.rb +55 -0
  211. data/spec/v1/models/notebook_create_data_spec.rb +43 -0
  212. data/spec/v1/models/notebook_create_request_spec.rb +37 -0
  213. data/spec/v1/models/notebook_distribution_cell_attributes_spec.rb +55 -0
  214. data/spec/v1/models/notebook_global_time_spec.rb +34 -0
  215. data/spec/v1/models/notebook_graph_size_spec.rb +31 -0
  216. data/spec/v1/models/notebook_heat_map_cell_attributes_spec.rb +55 -0
  217. data/spec/v1/models/notebook_log_stream_cell_attributes_spec.rb +49 -0
  218. data/spec/v1/models/notebook_markdown_cell_attributes_spec.rb +37 -0
  219. data/spec/v1/models/notebook_markdown_cell_definition_spec.rb +43 -0
  220. data/spec/v1/models/notebook_markdown_cell_definition_type_spec.rb +31 -0
  221. data/spec/v1/models/notebook_relative_time_spec.rb +37 -0
  222. data/spec/v1/models/notebook_resource_type_spec.rb +31 -0
  223. data/spec/v1/models/notebook_response_data_attributes_spec.rb +73 -0
  224. data/spec/v1/models/notebook_response_data_spec.rb +49 -0
  225. data/spec/v1/models/notebook_response_spec.rb +37 -0
  226. data/spec/v1/models/notebook_split_by_spec.rb +43 -0
  227. data/spec/v1/models/notebook_status_spec.rb +31 -0
  228. data/spec/v1/models/notebook_timeseries_cell_attributes_spec.rb +55 -0
  229. data/spec/v1/models/notebook_toplist_cell_attributes_spec.rb +55 -0
  230. data/spec/v1/models/notebook_update_cell_spec.rb +34 -0
  231. data/spec/v1/models/notebook_update_data_attributes_spec.rb +55 -0
  232. data/spec/v1/models/notebook_update_data_spec.rb +43 -0
  233. data/spec/v1/models/notebook_update_request_spec.rb +37 -0
  234. data/spec/v1/models/notebooks_response_meta_spec.rb +37 -0
  235. data/spec/v1/models/notebooks_response_page_spec.rb +43 -0
  236. data/spec/v1/models/notebooks_response_spec.rb +43 -0
  237. data/spec/v1/models/slo_list_response_metadata_page_spec.rb +43 -0
  238. data/spec/v1/models/slo_list_response_metadata_spec.rb +37 -0
  239. data/spec/v1/models/slo_response_data_spec.rb +115 -0
  240. data/spec/v1/models/usage_attribution_supported_metrics_spec.rb +31 -0
  241. data/spec/v1/models/usage_logs_by_retention_hour_spec.rb +55 -0
  242. data/spec/v1/models/usage_logs_by_retention_response_spec.rb +37 -0
  243. data/spec/v1/models/widget_horizontal_align_spec.rb +31 -0
  244. data/spec/v1/models/widget_vertical_align_spec.rb +31 -0
  245. metadata +220 -4
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **data** | [**Array<ServiceLevelObjective>**](ServiceLevelObjective.md) | An array of service level objective objects. | [optional] |
8
8
  | **errors** | **Array<String>** | An array of error messages. Each endpoint documents how/whether this field is used. | [optional] |
9
+ | **metadata** | [**SLOListResponseMetadata**](SLOListResponseMetadata.md) | | [optional] |
9
10
 
10
11
  ## Example
11
12
 
@@ -14,7 +15,8 @@ require 'datadog_api_client/v1'
14
15
 
15
16
  instance = DatadogAPIClient::V1::SLOListResponse.new(
16
17
  data: null,
17
- errors: null
18
+ errors: null,
19
+ metadata: null
18
20
  )
19
21
  ```
20
22
 
@@ -0,0 +1,18 @@
1
+ # DatadogAPIClient::V1::SLOListResponseMetadata
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **page** | [**SLOListResponseMetadataPage**](SLOListResponseMetadataPage.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'datadog_api_client/v1'
13
+
14
+ instance = DatadogAPIClient::V1::SLOListResponseMetadata.new(
15
+ page: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # DatadogAPIClient::V1::SLOListResponseMetadataPage
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **total_count** | **Integer** | The total number of resources that could be retrieved ignoring the parameters and filters in the request. | [optional] |
8
+ | **total_filtered_count** | **Integer** | The total number of resources that match the parameters and filters in the request. This attribute can be used by a client to determine the total number of pages. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'datadog_api_client/v1'
14
+
15
+ instance = DatadogAPIClient::V1::SLOListResponseMetadataPage.new(
16
+ total_count: null,
17
+ total_filtered_count: null
18
+ )
19
+ ```
20
+
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **data** | [**ServiceLevelObjective**](ServiceLevelObjective.md) | | [optional] |
7
+ | **data** | [**SLOResponseData**](SLOResponseData.md) | | [optional] |
8
8
  | **errors** | **Array<String>** | An array of error messages. Each endpoint documents how/whether this field is used. | [optional] |
9
9
 
10
10
  ## Example
@@ -0,0 +1,44 @@
1
+ # DatadogAPIClient::V1::SLOResponseData
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **configured_alert_ids** | **Array<Integer>** | A list of SLO monitors IDs that reference this SLO. This field is returned only when `with_configured_alert_ids` parameter is true in query. | [optional] |
8
+ | **created_at** | **Integer** | Creation timestamp (UNIX time in seconds) Always included in service level objective responses. | [optional][readonly] |
9
+ | **creator** | [**Creator**](Creator.md) | | [optional] |
10
+ | **description** | **String** | A user-defined description of the service level objective. Always included in service level objective responses (but may be `null`). Optional in create/update requests. | [optional] |
11
+ | **groups** | **Array<String>** | A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective. Included in service level objective responses if it is not empty. Optional in create/update requests for monitor service level objectives, but may only be used when then length of the `monitor_ids` field is one. | [optional] |
12
+ | **id** | **String** | A unique identifier for the service level objective object. Always included in service level objective responses. | [optional][readonly] |
13
+ | **modified_at** | **Integer** | Modification timestamp (UNIX time in seconds) Always included in service level objective responses. | [optional][readonly] |
14
+ | **monitor_ids** | **Array<Integer>** | A list of monitor ids that defines the scope of a monitor service level objective. **Required if type is `monitor`**. | [optional] |
15
+ | **monitor_tags** | **Array<String>** | The union of monitor tags for all monitors referenced by the `monitor_ids` field. Always included in service level objective responses for monitor service level objectives (but may be empty). Ignored in create/update requests. Does not affect which monitors are included in the service level objective (that is determined entirely by the `monitor_ids` field). | [optional] |
16
+ | **name** | **String** | The name of the service level objective object. | [optional] |
17
+ | **query** | [**ServiceLevelObjectiveQuery**](ServiceLevelObjectiveQuery.md) | | [optional] |
18
+ | **tags** | **Array<String>** | A list of tags associated with this service level objective. Always included in service level objective responses (but may be empty). Optional in create/update requests. | [optional] |
19
+ | **thresholds** | [**Array<SLOThreshold>**](SLOThreshold.md) | The thresholds (timeframes and associated targets) for this service level objective object. | [optional] |
20
+ | **type** | [**SLOType**](SLOType.md) | | [optional] |
21
+
22
+ ## Example
23
+
24
+ ```ruby
25
+ require 'datadog_api_client/v1'
26
+
27
+ instance = DatadogAPIClient::V1::SLOResponseData.new(
28
+ configured_alert_ids: [123,456,789],
29
+ created_at: null,
30
+ creator: null,
31
+ description: null,
32
+ groups: ["env:prod","role:mysql"],
33
+ id: null,
34
+ modified_at: null,
35
+ monitor_ids: null,
36
+ monitor_tags: null,
37
+ name: Custom Metric SLO,
38
+ query: null,
39
+ tags: ["env:prod","app:core"],
40
+ thresholds: [{"target":95,"timeframe":"7d"},{"target":95,"timeframe":"30d","warning":97}],
41
+ type: null
42
+ )
43
+ ```
44
+
@@ -268,7 +268,7 @@ end
268
268
 
269
269
  ## get_slo
270
270
 
271
- > <SLOResponse> get_slo(slo_id)
271
+ > <SLOResponse> get_slo(slo_id, opts)
272
272
 
273
273
  Get an SLO's details
274
274
 
@@ -280,10 +280,13 @@ Get a service level objective object.
280
280
  require 'datadog_api_client'
281
281
  api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new
282
282
  slo_id = 'slo_id_example' # String | The ID of the service level objective object.
283
+ opts = {
284
+ with_configured_alert_ids: true # Boolean | Get the IDs of SLO monitors that reference this SLO.
285
+ }
283
286
 
284
287
  begin
285
288
  # Get an SLO's details
286
- result = api_instance.get_slo(slo_id)
289
+ result = api_instance.get_slo(slo_id, opts)
287
290
  p result
288
291
  rescue DatadogAPIClient::V1::APIError => e
289
292
  puts "Error when calling ServiceLevelObjectivesAPI->get_slo: #{e}"
@@ -294,12 +297,12 @@ end
294
297
 
295
298
  This returns an Array which contains the response data, status code and headers.
296
299
 
297
- > <Array(<SLOResponse>, Integer, Hash)> get_slo_with_http_info(slo_id)
300
+ > <Array(<SLOResponse>, Integer, Hash)> get_slo_with_http_info(slo_id, opts)
298
301
 
299
302
  ```ruby
300
303
  begin
301
304
  # Get an SLO's details
302
- data, status_code, headers = api_instance.get_slo_with_http_info(slo_id)
305
+ data, status_code, headers = api_instance.get_slo_with_http_info(slo_id, opts)
303
306
  p status_code # => 2xx
304
307
  p headers # => { ... }
305
308
  p data # => <SLOResponse>
@@ -313,6 +316,7 @@ end
313
316
  | Name | Type | Description | Notes |
314
317
  | ---- | ---- | ----------- | ----- |
315
318
  | **slo_id** | **String** | The ID of the service level objective object. | |
319
+ | **with_configured_alert_ids** | **Boolean** | Get the IDs of SLO monitors that reference this SLO. | [optional] |
316
320
 
317
321
  ### Return type
318
322
 
@@ -8,27 +8,25 @@ All URIs are relative to *https://api.datadoghq.com*
8
8
  | [**create_private_location**](SyntheticsAPI.md#create_private_location) | **POST** /api/v1/synthetics/private-locations | Create a private location |
9
9
  | [**create_synthetics_api_test**](SyntheticsAPI.md#create_synthetics_api_test) | **POST** /api/v1/synthetics/tests/api | Create an API test |
10
10
  | [**create_synthetics_browser_test**](SyntheticsAPI.md#create_synthetics_browser_test) | **POST** /api/v1/synthetics/tests/browser | Create a browser test |
11
- | [**create_test**](SyntheticsAPI.md#create_test) | **POST** /api/v1/synthetics/tests | Create a test |
12
11
  | [**delete_global_variable**](SyntheticsAPI.md#delete_global_variable) | **DELETE** /api/v1/synthetics/variables/{variable_id} | Delete a global variable |
13
12
  | [**delete_private_location**](SyntheticsAPI.md#delete_private_location) | **DELETE** /api/v1/synthetics/private-locations/{location_id} | Delete a private location |
14
13
  | [**delete_tests**](SyntheticsAPI.md#delete_tests) | **POST** /api/v1/synthetics/tests/delete | Delete tests |
15
14
  | [**edit_global_variable**](SyntheticsAPI.md#edit_global_variable) | **PUT** /api/v1/synthetics/variables/{variable_id} | Edit a global variable |
16
15
  | [**get_api_test**](SyntheticsAPI.md#get_api_test) | **GET** /api/v1/synthetics/tests/api/{public_id} | Get an API test |
17
- | [**get_api_test_latest_results**](SyntheticsAPI.md#get_api_test_latest_results) | **GET** /api/v1/synthetics/tests/{public_id}/results | Get the test&#39;s latest results summaries (API) |
18
- | [**get_api_test_result**](SyntheticsAPI.md#get_api_test_result) | **GET** /api/v1/synthetics/tests/{public_id}/results/{result_id} | Get a test result (API) |
19
- | [**get_browser_test**](SyntheticsAPI.md#get_browser_test) | **GET** /api/v1/synthetics/tests/browser/{public_id} | Get a test configuration (browser) |
20
- | [**get_browser_test_latest_results**](SyntheticsAPI.md#get_browser_test_latest_results) | **GET** /api/v1/synthetics/tests/browser/{public_id}/results | Get the test&#39;s latest results summaries (browser) |
21
- | [**get_browser_test_result**](SyntheticsAPI.md#get_browser_test_result) | **GET** /api/v1/synthetics/tests/browser/{public_id}/results/{result_id} | Get a test result (browser) |
16
+ | [**get_api_test_latest_results**](SyntheticsAPI.md#get_api_test_latest_results) | **GET** /api/v1/synthetics/tests/{public_id}/results | Get an API test&#39;s latest results summaries |
17
+ | [**get_api_test_result**](SyntheticsAPI.md#get_api_test_result) | **GET** /api/v1/synthetics/tests/{public_id}/results/{result_id} | Get an API test result |
18
+ | [**get_browser_test**](SyntheticsAPI.md#get_browser_test) | **GET** /api/v1/synthetics/tests/browser/{public_id} | Get a browser test |
19
+ | [**get_browser_test_latest_results**](SyntheticsAPI.md#get_browser_test_latest_results) | **GET** /api/v1/synthetics/tests/browser/{public_id}/results | Get a browser test&#39;s latest results summaries |
20
+ | [**get_browser_test_result**](SyntheticsAPI.md#get_browser_test_result) | **GET** /api/v1/synthetics/tests/browser/{public_id}/results/{result_id} | Get a browser test result |
22
21
  | [**get_global_variable**](SyntheticsAPI.md#get_global_variable) | **GET** /api/v1/synthetics/variables/{variable_id} | Get a global variable |
23
22
  | [**get_private_location**](SyntheticsAPI.md#get_private_location) | **GET** /api/v1/synthetics/private-locations/{location_id} | Get a private location |
24
- | [**get_test**](SyntheticsAPI.md#get_test) | **GET** /api/v1/synthetics/tests/{public_id} | Get a test configuration (API) |
23
+ | [**get_test**](SyntheticsAPI.md#get_test) | **GET** /api/v1/synthetics/tests/{public_id} | Get a test configuration |
25
24
  | [**list_locations**](SyntheticsAPI.md#list_locations) | **GET** /api/v1/synthetics/locations | Get all locations (public and private) |
26
25
  | [**list_tests**](SyntheticsAPI.md#list_tests) | **GET** /api/v1/synthetics/tests | Get the list of all tests |
27
- | [**trigger_ci_tests**](SyntheticsAPI.md#trigger_ci_tests) | **POST** /api/v1/synthetics/tests/trigger/ci | Trigger some Synthetics tests for CI |
26
+ | [**trigger_ci_tests**](SyntheticsAPI.md#trigger_ci_tests) | **POST** /api/v1/synthetics/tests/trigger/ci | Trigger tests from CI/CD pipelines |
28
27
  | [**update_api_test**](SyntheticsAPI.md#update_api_test) | **PUT** /api/v1/synthetics/tests/api/{public_id} | Edit an API test |
29
28
  | [**update_browser_test**](SyntheticsAPI.md#update_browser_test) | **PUT** /api/v1/synthetics/tests/browser/{public_id} | Edit a browser test |
30
29
  | [**update_private_location**](SyntheticsAPI.md#update_private_location) | **PUT** /api/v1/synthetics/private-locations/{location_id} | Edit a private location |
31
- | [**update_test**](SyntheticsAPI.md#update_test) | **PUT** /api/v1/synthetics/tests/{public_id} | Edit a test |
32
30
  | [**update_test_pause_status**](SyntheticsAPI.md#update_test_pause_status) | **PUT** /api/v1/synthetics/tests/{public_id}/status | Pause or start a test |
33
31
 
34
32
 
@@ -280,68 +278,6 @@ end
280
278
  - **Accept**: application/json
281
279
 
282
280
 
283
- ## create_test
284
-
285
- > <SyntheticsTestDetails> create_test(body)
286
-
287
- Create a test
288
-
289
- Create a Synthetic test.
290
-
291
- ### Examples
292
-
293
- ```ruby
294
- require 'datadog_api_client'
295
- api_instance = DatadogAPIClient::V1::SyntheticsAPI.new
296
- body = DatadogAPIClient::V1::SyntheticsTestDetails.new # SyntheticsTestDetails | Details of the test to create.
297
-
298
- begin
299
- # Create a test
300
- result = api_instance.create_test(body)
301
- p result
302
- rescue DatadogAPIClient::V1::APIError => e
303
- puts "Error when calling SyntheticsAPI->create_test: #{e}"
304
- end
305
- ```
306
-
307
- #### Using the create_test_with_http_info variant
308
-
309
- This returns an Array which contains the response data, status code and headers.
310
-
311
- > <Array(<SyntheticsTestDetails>, Integer, Hash)> create_test_with_http_info(body)
312
-
313
- ```ruby
314
- begin
315
- # Create a test
316
- data, status_code, headers = api_instance.create_test_with_http_info(body)
317
- p status_code # => 2xx
318
- p headers # => { ... }
319
- p data # => <SyntheticsTestDetails>
320
- rescue DatadogAPIClient::V1::APIError => e
321
- puts "Error when calling SyntheticsAPI->create_test_with_http_info: #{e}"
322
- end
323
- ```
324
-
325
- ### Parameters
326
-
327
- | Name | Type | Description | Notes |
328
- | ---- | ---- | ----------- | ----- |
329
- | **body** | [**SyntheticsTestDetails**](SyntheticsTestDetails.md) | Details of the test to create. | |
330
-
331
- ### Return type
332
-
333
- [**SyntheticsTestDetails**](SyntheticsTestDetails.md)
334
-
335
- ### Authorization
336
-
337
- [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
338
-
339
- ### HTTP request headers
340
-
341
- - **Content-Type**: application/json
342
- - **Accept**: application/json
343
-
344
-
345
281
  ## delete_global_variable
346
282
 
347
283
  > delete_global_variable(variable_id)
@@ -656,7 +592,7 @@ end
656
592
 
657
593
  > <SyntheticsGetAPITestLatestResultsResponse> get_api_test_latest_results(public_id, opts)
658
594
 
659
- Get the test's latest results summaries (API)
595
+ Get an API test's latest results summaries
660
596
 
661
597
  Get the last 50 test results summaries for a given Synthetics API test.
662
598
 
@@ -673,7 +609,7 @@ opts = {
673
609
  }
674
610
 
675
611
  begin
676
- # Get the test's latest results summaries (API)
612
+ # Get an API test's latest results summaries
677
613
  result = api_instance.get_api_test_latest_results(public_id, opts)
678
614
  p result
679
615
  rescue DatadogAPIClient::V1::APIError => e
@@ -689,7 +625,7 @@ This returns an Array which contains the response data, status code and headers.
689
625
 
690
626
  ```ruby
691
627
  begin
692
- # Get the test's latest results summaries (API)
628
+ # Get an API test's latest results summaries
693
629
  data, status_code, headers = api_instance.get_api_test_latest_results_with_http_info(public_id, opts)
694
630
  p status_code # => 2xx
695
631
  p headers # => { ... }
@@ -726,7 +662,7 @@ end
726
662
 
727
663
  > <SyntheticsAPITestResultFull> get_api_test_result(public_id, result_id)
728
664
 
729
- Get a test result (API)
665
+ Get an API test result
730
666
 
731
667
  Get a specific full result from a given (API) Synthetic test.
732
668
 
@@ -739,7 +675,7 @@ public_id = 'public_id_example' # String | The public ID of the API test to whic
739
675
  result_id = 'result_id_example' # String | The ID of the result to get.
740
676
 
741
677
  begin
742
- # Get a test result (API)
678
+ # Get an API test result
743
679
  result = api_instance.get_api_test_result(public_id, result_id)
744
680
  p result
745
681
  rescue DatadogAPIClient::V1::APIError => e
@@ -755,7 +691,7 @@ This returns an Array which contains the response data, status code and headers.
755
691
 
756
692
  ```ruby
757
693
  begin
758
- # Get a test result (API)
694
+ # Get an API test result
759
695
  data, status_code, headers = api_instance.get_api_test_result_with_http_info(public_id, result_id)
760
696
  p status_code # => 2xx
761
697
  p headers # => { ... }
@@ -790,7 +726,7 @@ end
790
726
 
791
727
  > <SyntheticsBrowserTest> get_browser_test(public_id)
792
728
 
793
- Get a test configuration (browser)
729
+ Get a browser test
794
730
 
795
731
  Get the detailed configuration (including steps) associated with a Synthetic browser test.
796
732
 
@@ -802,7 +738,7 @@ api_instance = DatadogAPIClient::V1::SyntheticsAPI.new
802
738
  public_id = 'public_id_example' # String | The public ID of the test to get details from.
803
739
 
804
740
  begin
805
- # Get a test configuration (browser)
741
+ # Get a browser test
806
742
  result = api_instance.get_browser_test(public_id)
807
743
  p result
808
744
  rescue DatadogAPIClient::V1::APIError => e
@@ -818,7 +754,7 @@ This returns an Array which contains the response data, status code and headers.
818
754
 
819
755
  ```ruby
820
756
  begin
821
- # Get a test configuration (browser)
757
+ # Get a browser test
822
758
  data, status_code, headers = api_instance.get_browser_test_with_http_info(public_id)
823
759
  p status_code # => 2xx
824
760
  p headers # => { ... }
@@ -852,7 +788,7 @@ end
852
788
 
853
789
  > <SyntheticsGetBrowserTestLatestResultsResponse> get_browser_test_latest_results(public_id, opts)
854
790
 
855
- Get the test's latest results summaries (browser)
791
+ Get a browser test's latest results summaries
856
792
 
857
793
  Get the last 50 test results summaries for a given Synthetics Browser test.
858
794
 
@@ -869,7 +805,7 @@ opts = {
869
805
  }
870
806
 
871
807
  begin
872
- # Get the test's latest results summaries (browser)
808
+ # Get a browser test's latest results summaries
873
809
  result = api_instance.get_browser_test_latest_results(public_id, opts)
874
810
  p result
875
811
  rescue DatadogAPIClient::V1::APIError => e
@@ -885,7 +821,7 @@ This returns an Array which contains the response data, status code and headers.
885
821
 
886
822
  ```ruby
887
823
  begin
888
- # Get the test's latest results summaries (browser)
824
+ # Get a browser test's latest results summaries
889
825
  data, status_code, headers = api_instance.get_browser_test_latest_results_with_http_info(public_id, opts)
890
826
  p status_code # => 2xx
891
827
  p headers # => { ... }
@@ -922,7 +858,7 @@ end
922
858
 
923
859
  > <SyntheticsBrowserTestResultFull> get_browser_test_result(public_id, result_id)
924
860
 
925
- Get a test result (browser)
861
+ Get a browser test result
926
862
 
927
863
  Get a specific full result from a given (browser) Synthetic test.
928
864
 
@@ -935,7 +871,7 @@ public_id = 'public_id_example' # String | The public ID of the browser test to
935
871
  result_id = 'result_id_example' # String | The ID of the result to get.
936
872
 
937
873
  begin
938
- # Get a test result (browser)
874
+ # Get a browser test result
939
875
  result = api_instance.get_browser_test_result(public_id, result_id)
940
876
  p result
941
877
  rescue DatadogAPIClient::V1::APIError => e
@@ -951,7 +887,7 @@ This returns an Array which contains the response data, status code and headers.
951
887
 
952
888
  ```ruby
953
889
  begin
954
- # Get a test result (browser)
890
+ # Get a browser test result
955
891
  data, status_code, headers = api_instance.get_browser_test_result_with_http_info(public_id, result_id)
956
892
  p status_code # => 2xx
957
893
  p headers # => { ... }
@@ -1110,7 +1046,7 @@ end
1110
1046
 
1111
1047
  > <SyntheticsTestDetails> get_test(public_id)
1112
1048
 
1113
- Get a test configuration (API)
1049
+ Get a test configuration
1114
1050
 
1115
1051
  Get the detailed configuration associated with a Synthetics test.
1116
1052
 
@@ -1122,7 +1058,7 @@ api_instance = DatadogAPIClient::V1::SyntheticsAPI.new
1122
1058
  public_id = 'public_id_example' # String | The public ID of the test to get details from.
1123
1059
 
1124
1060
  begin
1125
- # Get a test configuration (API)
1061
+ # Get a test configuration
1126
1062
  result = api_instance.get_test(public_id)
1127
1063
  p result
1128
1064
  rescue DatadogAPIClient::V1::APIError => e
@@ -1138,7 +1074,7 @@ This returns an Array which contains the response data, status code and headers.
1138
1074
 
1139
1075
  ```ruby
1140
1076
  begin
1141
- # Get a test configuration (API)
1077
+ # Get a test configuration
1142
1078
  data, status_code, headers = api_instance.get_test_with_http_info(public_id)
1143
1079
  p status_code # => 2xx
1144
1080
  p headers # => { ... }
@@ -1290,7 +1226,7 @@ This endpoint does not need any parameter.
1290
1226
 
1291
1227
  > <SyntheticsTriggerCITestsResponse> trigger_ci_tests(body)
1292
1228
 
1293
- Trigger some Synthetics tests for CI
1229
+ Trigger tests from CI/CD pipelines
1294
1230
 
1295
1231
  Trigger a set of Synthetics tests for continuous integration.
1296
1232
 
@@ -1302,7 +1238,7 @@ api_instance = DatadogAPIClient::V1::SyntheticsAPI.new
1302
1238
  body = DatadogAPIClient::V1::SyntheticsCITestBody.new # SyntheticsCITestBody | Details of the test to trigger.
1303
1239
 
1304
1240
  begin
1305
- # Trigger some Synthetics tests for CI
1241
+ # Trigger tests from CI/CD pipelines
1306
1242
  result = api_instance.trigger_ci_tests(body)
1307
1243
  p result
1308
1244
  rescue DatadogAPIClient::V1::APIError => e
@@ -1318,7 +1254,7 @@ This returns an Array which contains the response data, status code and headers.
1318
1254
 
1319
1255
  ```ruby
1320
1256
  begin
1321
- # Trigger some Synthetics tests for CI
1257
+ # Trigger tests from CI/CD pipelines
1322
1258
  data, status_code, headers = api_instance.trigger_ci_tests_with_http_info(body)
1323
1259
  p status_code # => 2xx
1324
1260
  p headers # => { ... }
@@ -1540,70 +1476,6 @@ end
1540
1476
  - **Accept**: application/json
1541
1477
 
1542
1478
 
1543
- ## update_test
1544
-
1545
- > <SyntheticsTestDetails> update_test(public_id, body)
1546
-
1547
- Edit a test
1548
-
1549
- Edit the configuration of a Synthetic test.
1550
-
1551
- ### Examples
1552
-
1553
- ```ruby
1554
- require 'datadog_api_client'
1555
- api_instance = DatadogAPIClient::V1::SyntheticsAPI.new
1556
- public_id = 'public_id_example' # String | The public ID of the test to get details from.
1557
- body = DatadogAPIClient::V1::SyntheticsTestDetails.new # SyntheticsTestDetails | New test details to be saved.
1558
-
1559
- begin
1560
- # Edit a test
1561
- result = api_instance.update_test(public_id, body)
1562
- p result
1563
- rescue DatadogAPIClient::V1::APIError => e
1564
- puts "Error when calling SyntheticsAPI->update_test: #{e}"
1565
- end
1566
- ```
1567
-
1568
- #### Using the update_test_with_http_info variant
1569
-
1570
- This returns an Array which contains the response data, status code and headers.
1571
-
1572
- > <Array(<SyntheticsTestDetails>, Integer, Hash)> update_test_with_http_info(public_id, body)
1573
-
1574
- ```ruby
1575
- begin
1576
- # Edit a test
1577
- data, status_code, headers = api_instance.update_test_with_http_info(public_id, body)
1578
- p status_code # => 2xx
1579
- p headers # => { ... }
1580
- p data # => <SyntheticsTestDetails>
1581
- rescue DatadogAPIClient::V1::APIError => e
1582
- puts "Error when calling SyntheticsAPI->update_test_with_http_info: #{e}"
1583
- end
1584
- ```
1585
-
1586
- ### Parameters
1587
-
1588
- | Name | Type | Description | Notes |
1589
- | ---- | ---- | ----------- | ----- |
1590
- | **public_id** | **String** | The public ID of the test to get details from. | |
1591
- | **body** | [**SyntheticsTestDetails**](SyntheticsTestDetails.md) | New test details to be saved. | |
1592
-
1593
- ### Return type
1594
-
1595
- [**SyntheticsTestDetails**](SyntheticsTestDetails.md)
1596
-
1597
- ### Authorization
1598
-
1599
- [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
1600
-
1601
- ### HTTP request headers
1602
-
1603
- - **Content-Type**: application/json
1604
- - **Accept**: application/json
1605
-
1606
-
1607
1479
  ## update_test_pause_status
1608
1480
 
1609
1481
  > Boolean update_test_pause_status(public_id, body)