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
@@ -27,6 +27,9 @@ module DatadogAPIClient::V1
27
27
  # The event query.
28
28
  attr_accessor :event_query
29
29
 
30
+ # List of formulas that operate on queries.
31
+ attr_accessor :formulas
32
+
30
33
  # The log query.
31
34
  attr_accessor :log_query
32
35
 
@@ -42,6 +45,12 @@ module DatadogAPIClient::V1
42
45
  # Widget query.
43
46
  attr_accessor :q
44
47
 
48
+ # List of queries that can be returned directly or used in formulas.
49
+ attr_accessor :queries
50
+
51
+ # Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets.
52
+ attr_accessor :response_format
53
+
45
54
  # The log query.
46
55
  attr_accessor :rum_query
47
56
 
@@ -57,11 +66,14 @@ module DatadogAPIClient::V1
57
66
  {
58
67
  :'apm_query' => :'apm_query',
59
68
  :'event_query' => :'event_query',
69
+ :'formulas' => :'formulas',
60
70
  :'log_query' => :'log_query',
61
71
  :'network_query' => :'network_query',
62
72
  :'process_query' => :'process_query',
63
73
  :'profile_metrics_query' => :'profile_metrics_query',
64
74
  :'q' => :'q',
75
+ :'queries' => :'queries',
76
+ :'response_format' => :'response_format',
65
77
  :'rum_query' => :'rum_query',
66
78
  :'security_query' => :'security_query',
67
79
  :'style' => :'style'
@@ -74,11 +86,14 @@ module DatadogAPIClient::V1
74
86
  {
75
87
  :'apm_query' => :'LogQueryDefinition',
76
88
  :'event_query' => :'EventQueryDefinition',
89
+ :'formulas' => :'Array<WidgetFormula>',
77
90
  :'log_query' => :'LogQueryDefinition',
78
91
  :'network_query' => :'LogQueryDefinition',
79
92
  :'process_query' => :'ProcessQueryDefinition',
80
93
  :'profile_metrics_query' => :'LogQueryDefinition',
81
94
  :'q' => :'String',
95
+ :'queries' => :'Array<FormulaAndFunctionQueryDefinition>',
96
+ :'response_format' => :'FormulaAndFunctionResponseFormat',
82
97
  :'rum_query' => :'LogQueryDefinition',
83
98
  :'security_query' => :'LogQueryDefinition',
84
99
  :'style' => :'WidgetStyle'
@@ -109,6 +124,12 @@ module DatadogAPIClient::V1
109
124
  self.event_query = attributes[:'event_query']
110
125
  end
111
126
 
127
+ if attributes.key?(:'formulas')
128
+ if (value = attributes[:'formulas']).is_a?(Array)
129
+ self.formulas = value
130
+ end
131
+ end
132
+
112
133
  if attributes.key?(:'log_query')
113
134
  self.log_query = attributes[:'log_query']
114
135
  end
@@ -129,6 +150,16 @@ module DatadogAPIClient::V1
129
150
  self.q = attributes[:'q']
130
151
  end
131
152
 
153
+ if attributes.key?(:'queries')
154
+ if (value = attributes[:'queries']).is_a?(Array)
155
+ self.queries = value
156
+ end
157
+ end
158
+
159
+ if attributes.key?(:'response_format')
160
+ self.response_format = attributes[:'response_format']
161
+ end
162
+
132
163
  if attributes.key?(:'rum_query')
133
164
  self.rum_query = attributes[:'rum_query']
134
165
  end
@@ -150,11 +181,14 @@ module DatadogAPIClient::V1
150
181
  self.class == o.class &&
151
182
  apm_query == o.apm_query &&
152
183
  event_query == o.event_query &&
184
+ formulas == o.formulas &&
153
185
  log_query == o.log_query &&
154
186
  network_query == o.network_query &&
155
187
  process_query == o.process_query &&
156
188
  profile_metrics_query == o.profile_metrics_query &&
157
189
  q == o.q &&
190
+ queries == o.queries &&
191
+ response_format == o.response_format &&
158
192
  rum_query == o.rum_query &&
159
193
  security_query == o.security_query &&
160
194
  style == o.style
@@ -164,7 +198,7 @@ module DatadogAPIClient::V1
164
198
  # @return [Integer] Hash code
165
199
  # @!visibility private
166
200
  def hash
167
- [apm_query, event_query, log_query, network_query, process_query, profile_metrics_query, q, rum_query, security_query, style].hash
201
+ [apm_query, event_query, formulas, log_query, network_query, process_query, profile_metrics_query, q, queries, response_format, rum_query, security_query, style].hash
168
202
  end
169
203
  end
170
204
  end
@@ -28,8 +28,8 @@ module DatadogAPIClient::V1
28
28
  APPSEC_FARGATE_USAGE = "appsec_fargate_usage".freeze
29
29
  APPSEC_USAGE = "appsec_usage".freeze
30
30
  BROWSER_USAGE = "browser_usage".freeze
31
- CONTAINER_EXCL_AGENT_USAGE = "container_excl_agent_usage".freeze
32
31
  CI_VISIBILITY_ITR_USAGE = "ci_visibility_itr_usage".freeze
32
+ CONTAINER_EXCL_AGENT_USAGE = "container_excl_agent_usage".freeze
33
33
  CONTAINER_USAGE = "container_usage".freeze
34
34
  CSPM_CONTAINERS_USAGE = "cspm_containers_usage".freeze
35
35
  CSPM_HOSTS_USAGE = "cspm_hosts_usage".freeze
@@ -40,22 +40,25 @@ module DatadogAPIClient::V1
40
40
  DBM_HOSTS_USAGE = "dbm_hosts_usage".freeze
41
41
  DBM_QUERIES_USAGE = "dbm_queries_usage".freeze
42
42
  ESTIMATED_INDEXED_LOGS_USAGE = "estimated_indexed_logs_usage".freeze
43
- ESTIMATED_INGESTED_LOGS_USAGE = "estimated_ingested_logs_usage".freeze
44
43
  ESTIMATED_INDEXED_SPANS_USAGE = "estimated_indexed_spans_usage".freeze
44
+ ESTIMATED_INGESTED_LOGS_USAGE = "estimated_ingested_logs_usage".freeze
45
45
  ESTIMATED_INGESTED_SPANS_USAGE = "estimated_ingested_spans_usage".freeze
46
+ ESTIMATED_RUM_SESSIONS_USAGE = "estimated_rum_sessions_usage".freeze
46
47
  FARGATE_USAGE = "fargate_usage".freeze
47
48
  FUNCTIONS_USAGE = "functions_usage".freeze
48
49
  INFRA_HOST_USAGE = "infra_host_usage".freeze
49
50
  INVOCATIONS_USAGE = "invocations_usage".freeze
51
+ MOBILE_APP_TESTING_USAGE = "mobile_app_testing_usage".freeze
52
+ NDM_NETFLOW_USAGE = "ndm_netflow_usage".freeze
50
53
  NPM_HOST_USAGE = "npm_host_usage".freeze
51
54
  OBS_PIPELINE_BYTES_USAGE = "obs_pipeline_bytes_usage".freeze
52
55
  PROFILED_CONTAINER_USAGE = "profiled_container_usage".freeze
53
56
  PROFILED_FARGATE_USAGE = "profiled_fargate_usage".freeze
54
57
  PROFILED_HOST_USAGE = "profiled_host_usage".freeze
58
+ SDS_SCANNED_BYTES_USAGE = "sds_scanned_bytes_usage".freeze
59
+ SERVERLESS_APPS_USAGE = "serverless_apps_usage".freeze
55
60
  SNMP_USAGE = "snmp_usage".freeze
56
- ESTIMATED_RUM_SESSIONS_USAGE = "estimated_rum_sessions_usage".freeze
57
61
  UNIVERSAL_SERVICE_MONITORING_USAGE = "universal_service_monitoring_usage".freeze
58
62
  VULN_MANAGEMENT_HOSTS_USAGE = "vuln_management_hosts_usage".freeze
59
- SDS_SCANNED_BYTES_USAGE = "sds_scanned_bytes_usage".freeze
60
63
  end
61
64
  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
+ # Available prefix information for all Datadog endpoints.
21
+ class IPPrefixesGlobal
22
+ include BaseGenericModel
23
+
24
+ # List of IPv4 prefixes.
25
+ attr_accessor :prefixes_ipv4
26
+
27
+ # List of IPv6 prefixes.
28
+ attr_accessor :prefixes_ipv6
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ # @!visibility private
32
+ def self.attribute_map
33
+ {
34
+ :'prefixes_ipv4' => :'prefixes_ipv4',
35
+ :'prefixes_ipv6' => :'prefixes_ipv6'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ # @!visibility private
41
+ def self.openapi_types
42
+ {
43
+ :'prefixes_ipv4' => :'Array<String>',
44
+ :'prefixes_ipv6' => :'Array<String>'
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::IPPrefixesGlobal` 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::IPPrefixesGlobal`. 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?(:'prefixes_ipv4')
65
+ if (value = attributes[:'prefixes_ipv4']).is_a?(Array)
66
+ self.prefixes_ipv4 = value
67
+ end
68
+ end
69
+
70
+ if attributes.key?(:'prefixes_ipv6')
71
+ if (value = attributes[:'prefixes_ipv6']).is_a?(Array)
72
+ self.prefixes_ipv6 = 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
+ prefixes_ipv4 == o.prefixes_ipv4 &&
84
+ prefixes_ipv6 == o.prefixes_ipv6
85
+ end
86
+
87
+ # Calculates hash code according to all attributes.
88
+ # @return [Integer] Hash code
89
+ # @!visibility private
90
+ def hash
91
+ [prefixes_ipv4, prefixes_ipv6].hash
92
+ end
93
+ end
94
+ end
@@ -30,6 +30,9 @@ module DatadogAPIClient::V1
30
30
  # Available prefix information for the APM endpoints.
31
31
  attr_accessor :apm
32
32
 
33
+ # Available prefix information for all Datadog endpoints.
34
+ attr_accessor :global
35
+
33
36
  # Available prefix information for the Logs endpoints.
34
37
  attr_accessor :logs
35
38
 
@@ -64,6 +67,7 @@ module DatadogAPIClient::V1
64
67
  :'agents' => :'agents',
65
68
  :'api' => :'api',
66
69
  :'apm' => :'apm',
70
+ :'global' => :'global',
67
71
  :'logs' => :'logs',
68
72
  :'modified' => :'modified',
69
73
  :'orchestrator' => :'orchestrator',
@@ -83,6 +87,7 @@ module DatadogAPIClient::V1
83
87
  :'agents' => :'IPPrefixesAgents',
84
88
  :'api' => :'IPPrefixesAPI',
85
89
  :'apm' => :'IPPrefixesAPM',
90
+ :'global' => :'IPPrefixesGlobal',
86
91
  :'logs' => :'IPPrefixesLogs',
87
92
  :'modified' => :'String',
88
93
  :'orchestrator' => :'IPPrefixesOrchestrator',
@@ -123,6 +128,10 @@ module DatadogAPIClient::V1
123
128
  self.apm = attributes[:'apm']
124
129
  end
125
130
 
131
+ if attributes.key?(:'global')
132
+ self.global = attributes[:'global']
133
+ end
134
+
126
135
  if attributes.key?(:'logs')
127
136
  self.logs = attributes[:'logs']
128
137
  end
@@ -169,6 +178,7 @@ module DatadogAPIClient::V1
169
178
  agents == o.agents &&
170
179
  api == o.api &&
171
180
  apm == o.apm &&
181
+ global == o.global &&
172
182
  logs == o.logs &&
173
183
  modified == o.modified &&
174
184
  orchestrator == o.orchestrator &&
@@ -184,7 +194,7 @@ module DatadogAPIClient::V1
184
194
  # @return [Integer] Hash code
185
195
  # @!visibility private
186
196
  def hash
187
- [agents, api, apm, logs, modified, orchestrator, process, remote_configuration, synthetics, synthetics_private_locations, version, webhooks].hash
197
+ [agents, api, apm, global, logs, modified, orchestrator, process, remote_configuration, synthetics, synthetics_private_locations, version, webhooks].hash
188
198
  end
189
199
  end
190
200
  end
@@ -27,6 +27,7 @@ module DatadogAPIClient::V1
27
27
  CI_TEST_STREAM = "ci_test_stream".freeze
28
28
  RUM_ISSUE_STREAM = "rum_issue_stream".freeze
29
29
  APM_ISSUE_STREAM = "apm_issue_stream".freeze
30
+ TRACE_STREAM = "trace_stream".freeze
30
31
  LOGS_ISSUE_STREAM = "logs_issue_stream".freeze
31
32
  LOGS_PATTERN_STREAM = "logs_pattern_stream".freeze
32
33
  LOGS_TRANSACTION_STREAM = "logs_transaction_stream".freeze
@@ -33,7 +33,7 @@ module DatadogAPIClient::V1
33
33
  # ID of this monitor.
34
34
  attr_accessor :id
35
35
 
36
- # A list of active downtimes that match this monitor.
36
+ # A list of active v1 downtimes that match this monitor.
37
37
  attr_accessor :matching_downtimes
38
38
 
39
39
  # A message to include with notifications for this monitor.
@@ -132,7 +132,7 @@ module DatadogAPIClient::V1
132
132
  # Configuration options for scheduling.
133
133
  attr_accessor :scheduling_options
134
134
 
135
- # Information about the downtime applied to the monitor.
135
+ # Information about the downtime applied to the monitor. Only shows v1 downtimes.
136
136
  attr_accessor :silenced
137
137
 
138
138
  # ID of the corresponding Synthetic check.
@@ -0,0 +1,82 @@
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
+ # Configuration options for the custom schedule. **This feature is in private beta.**
21
+ class MonitorOptionsCustomSchedule
22
+ include BaseGenericModel
23
+
24
+ # Array of custom schedule recurrences.
25
+ attr_accessor :recurrences
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ # @!visibility private
29
+ def self.attribute_map
30
+ {
31
+ :'recurrences' => :'recurrences'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ # @!visibility private
37
+ def self.openapi_types
38
+ {
39
+ :'recurrences' => :'Array<MonitorOptionsCustomScheduleRecurrence>'
40
+ }
41
+ end
42
+
43
+ # Initializes the object
44
+ # @param attributes [Hash] Model attributes in the form of hash
45
+ # @!visibility private
46
+ def initialize(attributes = {})
47
+ if (!attributes.is_a?(Hash))
48
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorOptionsCustomSchedule` initialize method"
49
+ end
50
+
51
+ # check to see if the attribute exists and convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}) { |(k, v), h|
53
+ if (!self.class.attribute_map.key?(k.to_sym))
54
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorOptionsCustomSchedule`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ end
56
+ h[k.to_sym] = v
57
+ }
58
+
59
+ if attributes.key?(:'recurrences')
60
+ if (value = attributes[:'recurrences']).is_a?(Array)
61
+ self.recurrences = value
62
+ end
63
+ end
64
+ end
65
+
66
+ # Checks equality by comparing each attribute.
67
+ # @param o [Object] Object to be compared
68
+ # @!visibility private
69
+ def ==(o)
70
+ return true if self.equal?(o)
71
+ self.class == o.class &&
72
+ recurrences == o.recurrences
73
+ end
74
+
75
+ # Calculates hash code according to all attributes.
76
+ # @return [Integer] Hash code
77
+ # @!visibility private
78
+ def hash
79
+ [recurrences].hash
80
+ end
81
+ end
82
+ end
@@ -0,0 +1,100 @@
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
+ # Configuration for a recurrence set on the monitor options for custom schedule.
21
+ class MonitorOptionsCustomScheduleRecurrence
22
+ include BaseGenericModel
23
+
24
+ # Defines the recurrence rule (RRULE) for a given schedule.
25
+ attr_accessor :rrule
26
+
27
+ # Defines the start date and time of the recurring schedule.
28
+ attr_accessor :start
29
+
30
+ # Defines the timezone the schedule runs on.
31
+ attr_accessor :timezone
32
+
33
+ # Attribute mapping from ruby-style variable name to JSON key.
34
+ # @!visibility private
35
+ def self.attribute_map
36
+ {
37
+ :'rrule' => :'rrule',
38
+ :'start' => :'start',
39
+ :'timezone' => :'timezone'
40
+ }
41
+ end
42
+
43
+ # Attribute type mapping.
44
+ # @!visibility private
45
+ def self.openapi_types
46
+ {
47
+ :'rrule' => :'String',
48
+ :'start' => :'String',
49
+ :'timezone' => :'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::MonitorOptionsCustomScheduleRecurrence` 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::MonitorOptionsCustomScheduleRecurrence`. 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?(:'rrule')
70
+ self.rrule = attributes[:'rrule']
71
+ end
72
+
73
+ if attributes.key?(:'start')
74
+ self.start = attributes[:'start']
75
+ end
76
+
77
+ if attributes.key?(:'timezone')
78
+ self.timezone = attributes[:'timezone']
79
+ end
80
+ end
81
+
82
+ # Checks equality by comparing each attribute.
83
+ # @param o [Object] Object to be compared
84
+ # @!visibility private
85
+ def ==(o)
86
+ return true if self.equal?(o)
87
+ self.class == o.class &&
88
+ rrule == o.rrule &&
89
+ start == o.start &&
90
+ timezone == o.timezone
91
+ end
92
+
93
+ # Calculates hash code according to all attributes.
94
+ # @return [Integer] Hash code
95
+ # @!visibility private
96
+ def hash
97
+ [rrule, start, timezone].hash
98
+ end
99
+ end
100
+ end
@@ -21,6 +21,9 @@ module DatadogAPIClient::V1
21
21
  class MonitorOptionsSchedulingOptions
22
22
  include BaseGenericModel
23
23
 
24
+ # Configuration options for the custom schedule. **This feature is in private beta.**
25
+ attr_accessor :custom_schedule
26
+
24
27
  # Configuration options for the evaluation window. If `hour_starts` is set, no other fields may be set. Otherwise, `day_starts` and `month_starts` must be set together.
25
28
  attr_accessor :evaluation_window
26
29
 
@@ -28,6 +31,7 @@ module DatadogAPIClient::V1
28
31
  # @!visibility private
29
32
  def self.attribute_map
30
33
  {
34
+ :'custom_schedule' => :'custom_schedule',
31
35
  :'evaluation_window' => :'evaluation_window'
32
36
  }
33
37
  end
@@ -36,6 +40,7 @@ module DatadogAPIClient::V1
36
40
  # @!visibility private
37
41
  def self.openapi_types
38
42
  {
43
+ :'custom_schedule' => :'MonitorOptionsCustomSchedule',
39
44
  :'evaluation_window' => :'MonitorOptionsSchedulingOptionsEvaluationWindow'
40
45
  }
41
46
  end
@@ -56,6 +61,10 @@ module DatadogAPIClient::V1
56
61
  h[k.to_sym] = v
57
62
  }
58
63
 
64
+ if attributes.key?(:'custom_schedule')
65
+ self.custom_schedule = attributes[:'custom_schedule']
66
+ end
67
+
59
68
  if attributes.key?(:'evaluation_window')
60
69
  self.evaluation_window = attributes[:'evaluation_window']
61
70
  end
@@ -67,6 +76,7 @@ module DatadogAPIClient::V1
67
76
  def ==(o)
68
77
  return true if self.equal?(o)
69
78
  self.class == o.class &&
79
+ custom_schedule == o.custom_schedule &&
70
80
  evaluation_window == o.evaluation_window
71
81
  end
72
82
 
@@ -74,7 +84,7 @@ module DatadogAPIClient::V1
74
84
  # @return [Integer] Hash code
75
85
  # @!visibility private
76
86
  def hash
77
- [evaluation_window].hash
87
+ [custom_schedule, evaluation_window].hash
78
88
  end
79
89
  end
80
90
  end
@@ -73,6 +73,10 @@ module DatadogAPIClient::V1
73
73
  INFRA_HOST_PERCENTAGE = "infra_host_percentage".freeze
74
74
  INVOCATIONS_USAGE = "invocations_usage".freeze
75
75
  INVOCATIONS_PERCENTAGE = "invocations_percentage".freeze
76
+ MOBILE_APP_TESTING_USAGE = "mobile_app_testing_percentage".freeze
77
+ MOBILE_APP_TESTING_PERCENTAGE = "mobile_app_testing_usage".freeze
78
+ NDM_NETFLOW_USAGE = "ndm_netflow_usage".freeze
79
+ NDM_NETFLOW_PERCENTAGE = "ndm_netflow_percentage".freeze
76
80
  NPM_HOST_USAGE = "npm_host_usage".freeze
77
81
  NPM_HOST_PERCENTAGE = "npm_host_percentage".freeze
78
82
  OBS_PIPELINE_BYTES_USAGE = "obs_pipeline_bytes_usage".freeze
@@ -83,6 +87,8 @@ module DatadogAPIClient::V1
83
87
  PROFILED_FARGATE_PERCENTAGE = "profiled_fargate_percentage".freeze
84
88
  PROFILED_HOST_USAGE = "profiled_host_usage".freeze
85
89
  PROFILED_HOST_PERCENTAGE = "profiled_host_percentage".freeze
90
+ SERVERLESS_APPS_USAGE = "serverless_apps_usage".freeze
91
+ SERVERLESS_APPS_PERCENTAGE = "serverless_apps_percentage".freeze
86
92
  SNMP_USAGE = "snmp_usage".freeze
87
93
  SNMP_PERCENTAGE = "snmp_percentage".freeze
88
94
  ESTIMATED_RUM_SESSIONS_USAGE = "estimated_rum_sessions_usage".freeze