datadog_api_client 2.14.0 → 2.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (213) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +6 -6
  3. data/.generator/schemas/v1/openapi.yaml +808 -143
  4. data/.generator/schemas/v2/openapi.yaml +1808 -166
  5. data/.generator/src/generator/openapi.py +3 -1
  6. data/.generator/src/generator/templates/api.j2 +8 -2
  7. data/.generator/src/generator/templates/api_client.j2 +19 -1
  8. data/.generator/src/generator/templates/model_base.j2 +1 -0
  9. data/CHANGELOG.md +56 -0
  10. data/examples/v1/dashboards/CreateDashboard_1754992756.rb +44 -0
  11. data/examples/v1/dashboards/CreateDashboard_2278756614.rb +91 -0
  12. data/examples/v1/dashboards/CreateDashboard_2618036642.rb +36 -0
  13. data/examples/v1/dashboards/CreateDashboard_2705593938.rb +3 -0
  14. data/examples/v1/dashboards/CreateDashboard_3777304439.rb +50 -0
  15. data/examples/v1/dashboards/ListDashboards_1062671515.rb +8 -0
  16. data/examples/v1/monitors/CreateMonitor_1539578087.rb +36 -0
  17. data/examples/v1/monitors/ListMonitors_2966492814.rb +8 -0
  18. data/examples/v1/notebooks/ListNotebooks_788665428.rb +8 -0
  19. data/examples/v1/service-level-objective-corrections/ListSLOCorrection_2647266873.rb +8 -0
  20. data/examples/v1/service-level-objectives/ListSLOs_3036942817.rb +8 -0
  21. data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +1 -0
  22. data/examples/v1/synthetics/CreateSyntheticsBrowserTest.rb +1 -1
  23. data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +1 -1
  24. data/examples/v1/synthetics/CreateSyntheticsBrowserTest_397420811.rb +1 -1
  25. data/examples/v1/synthetics/ListTests_1938827783.rb +8 -0
  26. data/examples/v1/usage-metering/GetUsageCIApp.rb +4 -1
  27. data/examples/v1/usage-metering/GetUsageCWS.rb +4 -1
  28. data/examples/v1/usage-metering/GetUsageCloudSecurityPostureManagement.rb +1 -1
  29. data/examples/v2/apm-retention-filters/CreateApmRetentionFilter.rb +20 -0
  30. data/examples/v2/apm-retention-filters/DeleteApmRetentionFilter.rb +8 -0
  31. data/examples/v2/apm-retention-filters/GetApmRetentionFilter.rb +8 -0
  32. data/examples/v2/apm-retention-filters/ListApmRetentionFilters.rb +5 -0
  33. data/examples/v2/apm-retention-filters/ReorderApmRetentionFilters.rb +18 -0
  34. data/examples/v2/apm-retention-filters/UpdateApmRetentionFilter.rb +24 -0
  35. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +0 -3
  36. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +0 -8
  37. data/examples/v2/container-images/ListContainerImages.rb +8 -0
  38. data/examples/v2/container-images/ListContainerImages_3088586393.rb +11 -0
  39. data/examples/v2/container-images/ListContainerImages_3974828736.rb +11 -0
  40. data/examples/v2/downtimes/CancelDowntime.rb +0 -3
  41. data/examples/v2/downtimes/CreateDowntime.rb +0 -3
  42. data/examples/v2/downtimes/GetDowntime.rb +0 -3
  43. data/examples/v2/downtimes/ListDowntimes.rb +0 -3
  44. data/examples/v2/downtimes/ListDowntimes_805770330.rb +8 -0
  45. data/examples/v2/downtimes/ListMonitorDowntimes.rb +0 -3
  46. data/examples/v2/downtimes/ListMonitorDowntimes_128979780.rb +0 -3
  47. data/examples/v2/downtimes/UpdateDowntime.rb +0 -3
  48. data/examples/v2/gcp-integration/CreateGCPSTSAccount_109518525.rb +19 -0
  49. data/examples/v2/powerpack/CreatePowerpack.rb +47 -0
  50. data/examples/v2/powerpack/DeletePowerpack.rb +8 -0
  51. data/examples/v2/powerpack/GetPowerpack.rb +8 -0
  52. data/examples/v2/powerpack/ListPowerpacks.rb +8 -0
  53. data/examples/v2/powerpack/ListPowerpacks_1173755071.rb +8 -0
  54. data/examples/v2/powerpack/UpdatePowerpack.rb +50 -0
  55. data/examples/v2/rum/CreateRUMApplication.rb +1 -1
  56. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb +1 -1
  57. data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.rb +1 -1
  58. data/examples/v2/service-accounts/CreateServiceAccountApplicationKey.rb +5 -7
  59. data/examples/v2/service-accounts/DeleteServiceAccountApplicationKey.rb +7 -1
  60. data/examples/v2/service-accounts/GetServiceAccountApplicationKey.rb +7 -1
  61. data/examples/v2/service-accounts/ListServiceAccountApplicationKeys.rb +4 -1
  62. data/examples/v2/service-accounts/UpdateServiceAccountApplicationKey.rb +11 -9
  63. data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +23 -12
  64. data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2621709423.rb +53 -0
  65. data/examples/v2/teams/ListTeams_3592098458.rb +8 -0
  66. data/examples/v2/users/ListUsers_4075885358.rb +8 -0
  67. data/lib/datadog_api_client/api_client.rb +19 -1
  68. data/lib/datadog_api_client/configuration.rb +1 -7
  69. data/lib/datadog_api_client/inflector.rb +81 -0
  70. data/lib/datadog_api_client/v1/api/dashboards_api.rb +25 -0
  71. data/lib/datadog_api_client/v1/api/monitors_api.rb +23 -20
  72. data/lib/datadog_api_client/v1/api/notebooks_api.rb +21 -0
  73. data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +21 -0
  74. data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +21 -0
  75. data/lib/datadog_api_client/v1/api/synthetics_api.rb +25 -3
  76. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +6 -6
  77. data/lib/datadog_api_client/v1/api/webhooks_integration_api.rb +1 -1
  78. data/lib/datadog_api_client/v1/model_base.rb +1 -0
  79. data/lib/datadog_api_client/v1/models/heat_map_widget_request.rb +35 -1
  80. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +7 -4
  81. data/lib/datadog_api_client/v1/models/ip_prefixes_global.rb +94 -0
  82. data/lib/datadog_api_client/v1/models/ip_ranges.rb +11 -1
  83. data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
  84. data/lib/datadog_api_client/v1/models/monitor.rb +1 -1
  85. data/lib/datadog_api_client/v1/models/monitor_options.rb +1 -1
  86. data/lib/datadog_api_client/v1/models/monitor_options_custom_schedule.rb +82 -0
  87. data/lib/datadog_api_client/v1/models/monitor_options_custom_schedule_recurrence.rb +100 -0
  88. data/lib/datadog_api_client/v1/models/monitor_options_scheduling_options.rb +11 -1
  89. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +6 -0
  90. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +65 -5
  91. data/lib/datadog_api_client/v1/models/powerpack_template_variable_contents.rb +131 -0
  92. data/lib/datadog_api_client/v1/models/powerpack_template_variables.rb +94 -0
  93. data/lib/datadog_api_client/v1/models/powerpack_widget_definition.rb +169 -0
  94. data/lib/datadog_api_client/v1/models/powerpack_widget_definition_type.rb +26 -0
  95. data/lib/datadog_api_client/v1/models/split_config.rb +181 -0
  96. data/lib/datadog_api_client/v1/models/split_config_sort_compute.rb +119 -0
  97. data/lib/datadog_api_client/v1/models/split_dimension.rb +98 -0
  98. data/lib/datadog_api_client/v1/models/split_graph_source_widget_definition.rb +70 -0
  99. data/lib/datadog_api_client/v1/models/split_graph_viz_size.rb +29 -0
  100. data/lib/datadog_api_client/v1/models/split_graph_widget_definition.rb +191 -0
  101. data/lib/datadog_api_client/v1/models/split_graph_widget_definition_type.rb +26 -0
  102. data/lib/datadog_api_client/v1/models/split_sort.rb +108 -0
  103. data/lib/datadog_api_client/v1/models/split_vector_entry_item.rb +125 -0
  104. data/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +14 -4
  105. data/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +11 -1
  106. data/lib/datadog_api_client/v1/models/synthetics_assertion_timings_scope.rb +27 -0
  107. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +4 -4
  108. data/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb +8 -8
  109. data/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_response.rb +2 -2
  110. data/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +12 -1
  111. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +168 -8
  112. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +168 -8
  113. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +168 -8
  114. data/lib/datadog_api_client/v1/models/widget_definition.rb +8 -6
  115. data/lib/datadog_api_client/v2/api/apm_retention_filters_api.rb +423 -0
  116. data/lib/datadog_api_client/v2/api/audit_api.rb +1 -1
  117. data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +5 -11
  118. data/lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb +4 -4
  119. data/lib/datadog_api_client/v2/api/container_images_api.rb +129 -0
  120. data/lib/datadog_api_client/v2/api/downtimes_api.rb +25 -36
  121. data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
  122. data/lib/datadog_api_client/v2/api/incidents_api.rb +1 -1
  123. data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
  124. data/lib/datadog_api_client/v2/api/powerpack_api.rb +383 -0
  125. data/lib/datadog_api_client/v2/api/processes_api.rb +1 -1
  126. data/lib/datadog_api_client/v2/api/rum_api.rb +1 -1
  127. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +3 -3
  128. data/lib/datadog_api_client/v2/api/service_definition_api.rb +4 -4
  129. data/lib/datadog_api_client/v2/api/spans_api.rb +1 -1
  130. data/lib/datadog_api_client/v2/api/teams_api.rb +22 -0
  131. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
  132. data/lib/datadog_api_client/v2/api/users_api.rb +22 -0
  133. data/lib/datadog_api_client/v2/model_base.rb +1 -0
  134. data/lib/datadog_api_client/v2/models/apm_retention_filter_type.rb +26 -0
  135. data/lib/datadog_api_client/v2/models/container_image.rb +100 -0
  136. data/lib/datadog_api_client/v2/models/container_image_attributes.rb +261 -0
  137. data/lib/datadog_api_client/v2/models/container_image_flavor.rb +120 -0
  138. data/lib/datadog_api_client/v2/models/container_image_group.rb +110 -0
  139. data/lib/datadog_api_client/v2/models/container_image_group_attributes.rb +100 -0
  140. data/lib/datadog_api_client/v2/models/container_image_group_images_relationships_link.rb +92 -0
  141. data/lib/datadog_api_client/v2/models/container_image_group_relationships.rb +80 -0
  142. data/lib/datadog_api_client/v2/models/container_image_group_relationships_links.rb +80 -0
  143. data/lib/datadog_api_client/v2/models/container_image_group_type.rb +26 -0
  144. data/lib/datadog_api_client/v2/models/container_image_item.rb +63 -0
  145. data/lib/datadog_api_client/v2/models/container_image_meta.rb +80 -0
  146. data/lib/datadog_api_client/v2/models/container_image_meta_page.rb +160 -0
  147. data/lib/datadog_api_client/v2/models/container_image_meta_page_type.rb +26 -0
  148. data/lib/datadog_api_client/v2/models/container_image_type.rb +26 -0
  149. data/lib/datadog_api_client/v2/models/container_image_vulnerabilities.rb +140 -0
  150. data/lib/datadog_api_client/v2/models/container_images_response.rb +102 -0
  151. data/lib/datadog_api_client/v2/models/container_images_response_links.rb +130 -0
  152. data/lib/datadog_api_client/v2/models/data_scalar_column.rb +2 -2
  153. data/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb +1 -1
  154. data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +13 -1
  155. data/lib/datadog_api_client/v2/models/group_scalar_column.rb +2 -2
  156. data/lib/datadog_api_client/v2/models/list_powerpacks_response.rb +114 -0
  157. data/lib/datadog_api_client/v2/models/powerpack.rb +80 -0
  158. data/lib/datadog_api_client/v2/models/powerpack_attributes.rb +164 -0
  159. data/lib/datadog_api_client/v2/models/powerpack_data.rb +110 -0
  160. data/lib/datadog_api_client/v2/models/powerpack_group_widget.rb +108 -0
  161. data/lib/datadog_api_client/v2/models/powerpack_group_widget_definition.rb +162 -0
  162. data/lib/datadog_api_client/v2/models/powerpack_group_widget_layout.rb +177 -0
  163. data/lib/datadog_api_client/v2/models/powerpack_inner_widget_layout.rb +177 -0
  164. data/lib/datadog_api_client/v2/models/powerpack_inner_widgets.rb +108 -0
  165. data/lib/datadog_api_client/v2/models/powerpack_relationships.rb +80 -0
  166. data/lib/datadog_api_client/v2/models/powerpack_response.rb +92 -0
  167. data/lib/datadog_api_client/v2/models/powerpack_response_links.rb +129 -0
  168. data/lib/datadog_api_client/v2/models/powerpack_template_variable.rb +110 -0
  169. data/lib/datadog_api_client/v2/models/powerpacks_response_meta.rb +80 -0
  170. data/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb +150 -0
  171. data/lib/datadog_api_client/v2/models/reorder_retention_filters_request.rb +100 -0
  172. data/lib/datadog_api_client/v2/models/restriction_policy_binding.rb +1 -1
  173. data/lib/datadog_api_client/v2/models/retention_filter.rb +140 -0
  174. data/lib/datadog_api_client/v2/models/retention_filter_all.rb +140 -0
  175. data/lib/datadog_api_client/v2/models/retention_filter_all_attributes.rb +181 -0
  176. data/lib/datadog_api_client/v2/models/retention_filter_all_type.rb +28 -0
  177. data/lib/datadog_api_client/v2/models/retention_filter_attributes.rb +181 -0
  178. data/lib/datadog_api_client/v2/models/retention_filter_create_attributes.rb +183 -0
  179. data/lib/datadog_api_client/v2/models/retention_filter_create_data.rb +119 -0
  180. data/lib/datadog_api_client/v2/models/retention_filter_create_request.rb +98 -0
  181. data/lib/datadog_api_client/v2/models/retention_filter_response.rb +80 -0
  182. data/lib/datadog_api_client/v2/models/retention_filter_type.rb +26 -0
  183. data/lib/datadog_api_client/v2/models/retention_filter_update_data.rb +140 -0
  184. data/lib/datadog_api_client/v2/models/retention_filter_update_request.rb +98 -0
  185. data/lib/datadog_api_client/v2/models/retention_filter_without_attributes.rb +119 -0
  186. data/lib/datadog_api_client/v2/models/retention_filters_response.rb +100 -0
  187. data/lib/datadog_api_client/v2/models/scalar_column_type_group.rb +26 -0
  188. data/lib/datadog_api_client/v2/models/scalar_column_type_number.rb +26 -0
  189. data/lib/datadog_api_client/v2/models/scalar_meta.rb +8 -0
  190. data/lib/datadog_api_client/v2/models/service_definition_schema.rb +2 -1
  191. data/lib/datadog_api_client/v2/models/service_definition_schema_versions.rb +1 -0
  192. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +247 -0
  193. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_contact.rb +129 -0
  194. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_integrations.rb +90 -0
  195. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_link.rb +150 -0
  196. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie.rb +108 -0
  197. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie_region.rb +27 -0
  198. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_pagerduty.rb +80 -0
  199. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_type.rb +32 -0
  200. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_version.rb +26 -0
  201. data/lib/datadog_api_client/v2/models/service_definitions_create_request.rb +1 -0
  202. data/lib/datadog_api_client/v2/models/spans_filter.rb +80 -0
  203. data/lib/datadog_api_client/v2/models/spans_filter_create.rb +98 -0
  204. data/lib/datadog_api_client/version.rb +1 -1
  205. data/run-tests.sh +6 -5
  206. metadata +114 -9
  207. data/examples/v1/usage-metering/GetUsageCIApp_1064440884.rb +0 -8
  208. data/examples/v1/usage-metering/GetUsageCWS_736958514.rb +0 -8
  209. data/examples/v2/service-accounts/CreateServiceAccountApplicationKey_1761876297.rb +0 -17
  210. data/examples/v2/service-accounts/DeleteServiceAccountApplicationKey_992091161.rb +0 -11
  211. data/examples/v2/service-accounts/GetServiceAccountApplicationKey_819075131.rb +0 -11
  212. data/examples/v2/service-accounts/ListServiceAccountApplicationKeys_1268914341.rb +0 -8
  213. data/examples/v2/service-accounts/UpdateServiceAccountApplicationKey_768415790.rb +0 -22
@@ -81,16 +81,16 @@ module DatadogAPIClient::V1
81
81
  # The container usage by tag(s).
82
82
  attr_accessor :container_usage
83
83
 
84
- # The percentage of CSPM container usage by tag(s).
84
+ # The percentage of Cloud Security Management Pro container usage by tag(s).
85
85
  attr_accessor :cspm_containers_percentage
86
86
 
87
- # The CSPM container usage by tag(s).
87
+ # The Cloud Security Management Pro container usage by tag(s).
88
88
  attr_accessor :cspm_containers_usage
89
89
 
90
- # The percentage of CSPM host usage by by tag(s).
90
+ # The percentage of Cloud Security Management Pro host usage by tag(s).
91
91
  attr_accessor :cspm_hosts_percentage
92
92
 
93
- # The CSPM host usage by tag(s).
93
+ # The Cloud Security Management Pro host usage by tag(s).
94
94
  attr_accessor :cspm_hosts_usage
95
95
 
96
96
  # The percentage of ingested custom metrics usage by tag(s).
@@ -183,6 +183,18 @@ module DatadogAPIClient::V1
183
183
  # The Lambda invocation usage by tag(s).
184
184
  attr_accessor :invocations_usage
185
185
 
186
+ # The percentage of Synthetic mobile application test usage by tag(s).
187
+ attr_accessor :mobile_app_testing_percentage
188
+
189
+ # The Synthetic mobile application test usage by tag(s).
190
+ attr_accessor :mobile_app_testing_usage
191
+
192
+ # The percentage of Network Device Monitoring NetFlow usage by tag(s).
193
+ attr_accessor :ndm_netflow_percentage
194
+
195
+ # The Network Device Monitoring NetFlow usage by tag(s).
196
+ attr_accessor :ndm_netflow_usage
197
+
186
198
  # The percentage of network host usage by tag(s).
187
199
  attr_accessor :npm_host_percentage
188
200
 
@@ -219,6 +231,12 @@ module DatadogAPIClient::V1
219
231
  # The total Sensitive Data Scanner usage by tag(s).
220
232
  attr_accessor :sds_scanned_bytes_usage
221
233
 
234
+ # The percentage of Serverless Apps usage by tag(s).
235
+ attr_accessor :serverless_apps_percentage
236
+
237
+ # The total Serverless Apps usage by tag(s).
238
+ attr_accessor :serverless_apps_usage
239
+
222
240
  # The percentage of network device usage by tag(s).
223
241
  attr_accessor :snmp_percentage
224
242
 
@@ -295,6 +313,10 @@ module DatadogAPIClient::V1
295
313
  :'infra_host_usage' => :'infra_host_usage',
296
314
  :'invocations_percentage' => :'invocations_percentage',
297
315
  :'invocations_usage' => :'invocations_usage',
316
+ :'mobile_app_testing_percentage' => :'mobile_app_testing_percentage',
317
+ :'mobile_app_testing_usage' => :'mobile_app_testing_usage',
318
+ :'ndm_netflow_percentage' => :'ndm_netflow_percentage',
319
+ :'ndm_netflow_usage' => :'ndm_netflow_usage',
298
320
  :'npm_host_percentage' => :'npm_host_percentage',
299
321
  :'npm_host_usage' => :'npm_host_usage',
300
322
  :'obs_pipeline_bytes_percentage' => :'obs_pipeline_bytes_percentage',
@@ -307,6 +329,8 @@ module DatadogAPIClient::V1
307
329
  :'profiled_host_usage' => :'profiled_host_usage',
308
330
  :'sds_scanned_bytes_percentage' => :'sds_scanned_bytes_percentage',
309
331
  :'sds_scanned_bytes_usage' => :'sds_scanned_bytes_usage',
332
+ :'serverless_apps_percentage' => :'serverless_apps_percentage',
333
+ :'serverless_apps_usage' => :'serverless_apps_usage',
310
334
  :'snmp_percentage' => :'snmp_percentage',
311
335
  :'snmp_usage' => :'snmp_usage',
312
336
  :'universal_service_monitoring_percentage' => :'universal_service_monitoring_percentage',
@@ -374,6 +398,10 @@ module DatadogAPIClient::V1
374
398
  :'infra_host_usage' => :'Float',
375
399
  :'invocations_percentage' => :'Float',
376
400
  :'invocations_usage' => :'Float',
401
+ :'mobile_app_testing_percentage' => :'Float',
402
+ :'mobile_app_testing_usage' => :'Float',
403
+ :'ndm_netflow_percentage' => :'Float',
404
+ :'ndm_netflow_usage' => :'Float',
377
405
  :'npm_host_percentage' => :'Float',
378
406
  :'npm_host_usage' => :'Float',
379
407
  :'obs_pipeline_bytes_percentage' => :'Float',
@@ -386,6 +414,8 @@ module DatadogAPIClient::V1
386
414
  :'profiled_host_usage' => :'Float',
387
415
  :'sds_scanned_bytes_percentage' => :'Float',
388
416
  :'sds_scanned_bytes_usage' => :'Float',
417
+ :'serverless_apps_percentage' => :'Float',
418
+ :'serverless_apps_usage' => :'Float',
389
419
  :'snmp_percentage' => :'Float',
390
420
  :'snmp_usage' => :'Float',
391
421
  :'universal_service_monitoring_percentage' => :'Float',
@@ -627,6 +657,22 @@ module DatadogAPIClient::V1
627
657
  self.invocations_usage = attributes[:'invocations_usage']
628
658
  end
629
659
 
660
+ if attributes.key?(:'mobile_app_testing_percentage')
661
+ self.mobile_app_testing_percentage = attributes[:'mobile_app_testing_percentage']
662
+ end
663
+
664
+ if attributes.key?(:'mobile_app_testing_usage')
665
+ self.mobile_app_testing_usage = attributes[:'mobile_app_testing_usage']
666
+ end
667
+
668
+ if attributes.key?(:'ndm_netflow_percentage')
669
+ self.ndm_netflow_percentage = attributes[:'ndm_netflow_percentage']
670
+ end
671
+
672
+ if attributes.key?(:'ndm_netflow_usage')
673
+ self.ndm_netflow_usage = attributes[:'ndm_netflow_usage']
674
+ end
675
+
630
676
  if attributes.key?(:'npm_host_percentage')
631
677
  self.npm_host_percentage = attributes[:'npm_host_percentage']
632
678
  end
@@ -675,6 +721,14 @@ module DatadogAPIClient::V1
675
721
  self.sds_scanned_bytes_usage = attributes[:'sds_scanned_bytes_usage']
676
722
  end
677
723
 
724
+ if attributes.key?(:'serverless_apps_percentage')
725
+ self.serverless_apps_percentage = attributes[:'serverless_apps_percentage']
726
+ end
727
+
728
+ if attributes.key?(:'serverless_apps_usage')
729
+ self.serverless_apps_usage = attributes[:'serverless_apps_usage']
730
+ end
731
+
678
732
  if attributes.key?(:'snmp_percentage')
679
733
  self.snmp_percentage = attributes[:'snmp_percentage']
680
734
  end
@@ -760,6 +814,10 @@ module DatadogAPIClient::V1
760
814
  infra_host_usage == o.infra_host_usage &&
761
815
  invocations_percentage == o.invocations_percentage &&
762
816
  invocations_usage == o.invocations_usage &&
817
+ mobile_app_testing_percentage == o.mobile_app_testing_percentage &&
818
+ mobile_app_testing_usage == o.mobile_app_testing_usage &&
819
+ ndm_netflow_percentage == o.ndm_netflow_percentage &&
820
+ ndm_netflow_usage == o.ndm_netflow_usage &&
763
821
  npm_host_percentage == o.npm_host_percentage &&
764
822
  npm_host_usage == o.npm_host_usage &&
765
823
  obs_pipeline_bytes_percentage == o.obs_pipeline_bytes_percentage &&
@@ -772,6 +830,8 @@ module DatadogAPIClient::V1
772
830
  profiled_host_usage == o.profiled_host_usage &&
773
831
  sds_scanned_bytes_percentage == o.sds_scanned_bytes_percentage &&
774
832
  sds_scanned_bytes_usage == o.sds_scanned_bytes_usage &&
833
+ serverless_apps_percentage == o.serverless_apps_percentage &&
834
+ serverless_apps_usage == o.serverless_apps_usage &&
775
835
  snmp_percentage == o.snmp_percentage &&
776
836
  snmp_usage == o.snmp_usage &&
777
837
  universal_service_monitoring_percentage == o.universal_service_monitoring_percentage &&
@@ -784,7 +844,7 @@ module DatadogAPIClient::V1
784
844
  # @return [Integer] Hash code
785
845
  # @!visibility private
786
846
  def hash
787
- [api_percentage, api_usage, apm_fargate_percentage, apm_fargate_usage, apm_host_percentage, apm_host_usage, apm_usm_percentage, apm_usm_usage, appsec_fargate_percentage, appsec_fargate_usage, appsec_percentage, appsec_usage, browser_percentage, browser_usage, ci_visibility_itr_percentage, ci_visibility_itr_usage, container_excl_agent_percentage, container_excl_agent_usage, container_percentage, container_usage, cspm_containers_percentage, cspm_containers_usage, cspm_hosts_percentage, cspm_hosts_usage, custom_ingested_timeseries_percentage, custom_ingested_timeseries_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_containers_percentage, cws_containers_usage, cws_hosts_percentage, cws_hosts_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_logs_percentage, estimated_ingested_logs_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, estimated_rum_sessions_percentage, estimated_rum_sessions_usage, fargate_percentage, fargate_usage, functions_percentage, functions_usage, infra_host_percentage, infra_host_usage, invocations_percentage, invocations_usage, npm_host_percentage, npm_host_usage, obs_pipeline_bytes_percentage, obs_pipeline_bytes_usage, profiled_container_percentage, profiled_container_usage, profiled_fargate_percentage, profiled_fargate_usage, profiled_host_percentage, profiled_host_usage, sds_scanned_bytes_percentage, sds_scanned_bytes_usage, snmp_percentage, snmp_usage, universal_service_monitoring_percentage, universal_service_monitoring_usage, vuln_management_hosts_percentage, vuln_management_hosts_usage].hash
847
+ [api_percentage, api_usage, apm_fargate_percentage, apm_fargate_usage, apm_host_percentage, apm_host_usage, apm_usm_percentage, apm_usm_usage, appsec_fargate_percentage, appsec_fargate_usage, appsec_percentage, appsec_usage, browser_percentage, browser_usage, ci_visibility_itr_percentage, ci_visibility_itr_usage, container_excl_agent_percentage, container_excl_agent_usage, container_percentage, container_usage, cspm_containers_percentage, cspm_containers_usage, cspm_hosts_percentage, cspm_hosts_usage, custom_ingested_timeseries_percentage, custom_ingested_timeseries_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_containers_percentage, cws_containers_usage, cws_hosts_percentage, cws_hosts_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_logs_percentage, estimated_ingested_logs_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, estimated_rum_sessions_percentage, estimated_rum_sessions_usage, fargate_percentage, fargate_usage, functions_percentage, functions_usage, infra_host_percentage, infra_host_usage, invocations_percentage, invocations_usage, mobile_app_testing_percentage, mobile_app_testing_usage, ndm_netflow_percentage, ndm_netflow_usage, npm_host_percentage, npm_host_usage, obs_pipeline_bytes_percentage, obs_pipeline_bytes_usage, profiled_container_percentage, profiled_container_usage, profiled_fargate_percentage, profiled_fargate_usage, profiled_host_percentage, profiled_host_usage, sds_scanned_bytes_percentage, sds_scanned_bytes_usage, serverless_apps_percentage, serverless_apps_usage, snmp_percentage, snmp_usage, universal_service_monitoring_percentage, universal_service_monitoring_usage, vuln_management_hosts_percentage, vuln_management_hosts_usage].hash
788
848
  end
789
849
  end
790
850
  end
@@ -0,0 +1,131 @@
1
+ =begin
2
+ #Datadog API V1 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V1
20
+ # Powerpack template variable contents.
21
+ class PowerpackTemplateVariableContents
22
+ include BaseGenericModel
23
+
24
+ # The name of the variable.
25
+ attr_reader :name
26
+
27
+ # The tag prefix associated with the variable.
28
+ attr_accessor :prefix
29
+
30
+ # One or many template variable values within the saved view, which will be unioned together using `OR` if more than one is specified.
31
+ attr_reader :values
32
+
33
+ # Attribute mapping from ruby-style variable name to JSON key.
34
+ # @!visibility private
35
+ def self.attribute_map
36
+ {
37
+ :'name' => :'name',
38
+ :'prefix' => :'prefix',
39
+ :'values' => :'values'
40
+ }
41
+ end
42
+
43
+ # Attribute type mapping.
44
+ # @!visibility private
45
+ def self.openapi_types
46
+ {
47
+ :'name' => :'String',
48
+ :'prefix' => :'String',
49
+ :'values' => :'Array<String>'
50
+ }
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param attributes [Hash] Model attributes in the form of hash
55
+ # @!visibility private
56
+ def initialize(attributes = {})
57
+ if (!attributes.is_a?(Hash))
58
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::PowerpackTemplateVariableContents` initialize method"
59
+ end
60
+
61
+ # check to see if the attribute exists and convert string to symbol for hash key
62
+ attributes = attributes.each_with_object({}) { |(k, v), h|
63
+ if (!self.class.attribute_map.key?(k.to_sym))
64
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::PowerpackTemplateVariableContents`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
65
+ end
66
+ h[k.to_sym] = v
67
+ }
68
+
69
+ if attributes.key?(:'name')
70
+ self.name = attributes[:'name']
71
+ end
72
+
73
+ if attributes.key?(:'prefix')
74
+ self.prefix = attributes[:'prefix']
75
+ end
76
+
77
+ if attributes.key?(:'values')
78
+ if (value = attributes[:'values']).is_a?(Array)
79
+ self.values = value
80
+ end
81
+ end
82
+ end
83
+
84
+ # Check to see if the all the properties in the model are valid
85
+ # @return true if the model is valid
86
+ # @!visibility private
87
+ def valid?
88
+ return false if @name.nil?
89
+ return false if @values.nil?
90
+ true
91
+ end
92
+
93
+ # Custom attribute writer method with validation
94
+ # @param name [Object] Object to be assigned
95
+ # @!visibility private
96
+ def name=(name)
97
+ if name.nil?
98
+ fail ArgumentError, 'invalid value for "name", name cannot be nil.'
99
+ end
100
+ @name = name
101
+ end
102
+
103
+ # Custom attribute writer method with validation
104
+ # @param values [Object] Object to be assigned
105
+ # @!visibility private
106
+ def values=(values)
107
+ if values.nil?
108
+ fail ArgumentError, 'invalid value for "values", values cannot be nil.'
109
+ end
110
+ @values = values
111
+ end
112
+
113
+ # Checks equality by comparing each attribute.
114
+ # @param o [Object] Object to be compared
115
+ # @!visibility private
116
+ def ==(o)
117
+ return true if self.equal?(o)
118
+ self.class == o.class &&
119
+ name == o.name &&
120
+ prefix == o.prefix &&
121
+ values == o.values
122
+ end
123
+
124
+ # Calculates hash code according to all attributes.
125
+ # @return [Integer] Hash code
126
+ # @!visibility private
127
+ def hash
128
+ [name, prefix, values].hash
129
+ end
130
+ end
131
+ end
@@ -0,0 +1,94 @@
1
+ =begin
2
+ #Datadog API V1 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V1
20
+ # Powerpack template variables.
21
+ class PowerpackTemplateVariables
22
+ include BaseGenericModel
23
+
24
+ # Template variables controlled at the powerpack level.
25
+ attr_accessor :controlled_by_powerpack
26
+
27
+ # Template variables controlled by the external resource, such as the dashboard this powerpack is on.
28
+ attr_accessor :controlled_externally
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ # @!visibility private
32
+ def self.attribute_map
33
+ {
34
+ :'controlled_by_powerpack' => :'controlled_by_powerpack',
35
+ :'controlled_externally' => :'controlled_externally'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ # @!visibility private
41
+ def self.openapi_types
42
+ {
43
+ :'controlled_by_powerpack' => :'Array<PowerpackTemplateVariableContents>',
44
+ :'controlled_externally' => :'Array<PowerpackTemplateVariableContents>'
45
+ }
46
+ end
47
+
48
+ # Initializes the object
49
+ # @param attributes [Hash] Model attributes in the form of hash
50
+ # @!visibility private
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::PowerpackTemplateVariables` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::PowerpackTemplateVariables`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'controlled_by_powerpack')
65
+ if (value = attributes[:'controlled_by_powerpack']).is_a?(Array)
66
+ self.controlled_by_powerpack = value
67
+ end
68
+ end
69
+
70
+ if attributes.key?(:'controlled_externally')
71
+ if (value = attributes[:'controlled_externally']).is_a?(Array)
72
+ self.controlled_externally = value
73
+ end
74
+ end
75
+ end
76
+
77
+ # Checks equality by comparing each attribute.
78
+ # @param o [Object] Object to be compared
79
+ # @!visibility private
80
+ def ==(o)
81
+ return true if self.equal?(o)
82
+ self.class == o.class &&
83
+ controlled_by_powerpack == o.controlled_by_powerpack &&
84
+ controlled_externally == o.controlled_externally
85
+ end
86
+
87
+ # Calculates hash code according to all attributes.
88
+ # @return [Integer] Hash code
89
+ # @!visibility private
90
+ def hash
91
+ [controlled_by_powerpack, controlled_externally].hash
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,169 @@
1
+ =begin
2
+ #Datadog API V1 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V1
20
+ # The powerpack widget allows you to keep similar graphs together on your timeboard. Each group has a custom header, can hold one to many graphs, and is collapsible.
21
+ class PowerpackWidgetDefinition
22
+ include BaseGenericModel
23
+
24
+ # Background color of the powerpack title.
25
+ attr_accessor :background_color
26
+
27
+ # URL of image to display as a banner for the powerpack.
28
+ attr_accessor :banner_img
29
+
30
+ # UUID of the associated powerpack.
31
+ attr_reader :powerpack_id
32
+
33
+ # Whether to show the title or not.
34
+ attr_accessor :show_title
35
+
36
+ # Powerpack template variables.
37
+ attr_accessor :template_variables
38
+
39
+ # Title of the widget.
40
+ attr_accessor :title
41
+
42
+ # Type of the powerpack widget.
43
+ attr_reader :type
44
+
45
+ # Attribute mapping from ruby-style variable name to JSON key.
46
+ # @!visibility private
47
+ def self.attribute_map
48
+ {
49
+ :'background_color' => :'background_color',
50
+ :'banner_img' => :'banner_img',
51
+ :'powerpack_id' => :'powerpack_id',
52
+ :'show_title' => :'show_title',
53
+ :'template_variables' => :'template_variables',
54
+ :'title' => :'title',
55
+ :'type' => :'type'
56
+ }
57
+ end
58
+
59
+ # Attribute type mapping.
60
+ # @!visibility private
61
+ def self.openapi_types
62
+ {
63
+ :'background_color' => :'String',
64
+ :'banner_img' => :'String',
65
+ :'powerpack_id' => :'String',
66
+ :'show_title' => :'Boolean',
67
+ :'template_variables' => :'PowerpackTemplateVariables',
68
+ :'title' => :'String',
69
+ :'type' => :'PowerpackWidgetDefinitionType'
70
+ }
71
+ end
72
+
73
+ # Initializes the object
74
+ # @param attributes [Hash] Model attributes in the form of hash
75
+ # @!visibility private
76
+ def initialize(attributes = {})
77
+ if (!attributes.is_a?(Hash))
78
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::PowerpackWidgetDefinition` initialize method"
79
+ end
80
+
81
+ # check to see if the attribute exists and convert string to symbol for hash key
82
+ attributes = attributes.each_with_object({}) { |(k, v), h|
83
+ if (!self.class.attribute_map.key?(k.to_sym))
84
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::PowerpackWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
85
+ end
86
+ h[k.to_sym] = v
87
+ }
88
+
89
+ if attributes.key?(:'background_color')
90
+ self.background_color = attributes[:'background_color']
91
+ end
92
+
93
+ if attributes.key?(:'banner_img')
94
+ self.banner_img = attributes[:'banner_img']
95
+ end
96
+
97
+ if attributes.key?(:'powerpack_id')
98
+ self.powerpack_id = attributes[:'powerpack_id']
99
+ end
100
+
101
+ if attributes.key?(:'show_title')
102
+ self.show_title = attributes[:'show_title']
103
+ end
104
+
105
+ if attributes.key?(:'template_variables')
106
+ self.template_variables = attributes[:'template_variables']
107
+ end
108
+
109
+ if attributes.key?(:'title')
110
+ self.title = attributes[:'title']
111
+ end
112
+
113
+ if attributes.key?(:'type')
114
+ self.type = attributes[:'type']
115
+ end
116
+ end
117
+
118
+ # Check to see if the all the properties in the model are valid
119
+ # @return true if the model is valid
120
+ # @!visibility private
121
+ def valid?
122
+ return false if @powerpack_id.nil?
123
+ return false if @type.nil?
124
+ true
125
+ end
126
+
127
+ # Custom attribute writer method with validation
128
+ # @param powerpack_id [Object] Object to be assigned
129
+ # @!visibility private
130
+ def powerpack_id=(powerpack_id)
131
+ if powerpack_id.nil?
132
+ fail ArgumentError, 'invalid value for "powerpack_id", powerpack_id cannot be nil.'
133
+ end
134
+ @powerpack_id = powerpack_id
135
+ end
136
+
137
+ # Custom attribute writer method with validation
138
+ # @param type [Object] Object to be assigned
139
+ # @!visibility private
140
+ def type=(type)
141
+ if type.nil?
142
+ fail ArgumentError, 'invalid value for "type", type cannot be nil.'
143
+ end
144
+ @type = type
145
+ end
146
+
147
+ # Checks equality by comparing each attribute.
148
+ # @param o [Object] Object to be compared
149
+ # @!visibility private
150
+ def ==(o)
151
+ return true if self.equal?(o)
152
+ self.class == o.class &&
153
+ background_color == o.background_color &&
154
+ banner_img == o.banner_img &&
155
+ powerpack_id == o.powerpack_id &&
156
+ show_title == o.show_title &&
157
+ template_variables == o.template_variables &&
158
+ title == o.title &&
159
+ type == o.type
160
+ end
161
+
162
+ # Calculates hash code according to all attributes.
163
+ # @return [Integer] Hash code
164
+ # @!visibility private
165
+ def hash
166
+ [background_color, banner_img, powerpack_id, show_title, template_variables, title, type].hash
167
+ end
168
+ end
169
+ end
@@ -0,0 +1,26 @@
1
+ =begin
2
+ #Datadog API V1 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V1
20
+ # Type of the powerpack widget.
21
+ class PowerpackWidgetDefinitionType
22
+ include BaseEnumModel
23
+
24
+ POWERPACK = "powerpack".freeze
25
+ end
26
+ end