datadog_api_client 2.15.0 → 2.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +6 -6
  3. data/.generator/schemas/v1/openapi.yaml +643 -123
  4. data/.generator/schemas/v2/openapi.yaml +1815 -195
  5. data/.generator/src/generator/templates/api_client.j2 +19 -1
  6. data/.generator/src/generator/templates/model_base.j2 +1 -0
  7. data/CHANGELOG.md +30 -0
  8. data/examples/v1/dashboards/CreateDashboard_1754992756.rb +44 -0
  9. data/examples/v1/dashboards/CreateDashboard_2278756614.rb +91 -0
  10. data/examples/v1/monitors/CreateMonitor_1539578087.rb +36 -0
  11. data/examples/v1/synthetics/CreateSyntheticsBrowserTest.rb +1 -1
  12. data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +1 -1
  13. data/examples/v1/synthetics/CreateSyntheticsBrowserTest_397420811.rb +1 -1
  14. data/examples/v1/usage-metering/GetUsageCIApp.rb +4 -1
  15. data/examples/v1/usage-metering/GetUsageCWS.rb +4 -1
  16. data/examples/v1/usage-metering/GetUsageCloudSecurityPostureManagement.rb +1 -1
  17. data/examples/v2/apm-retention-filters/CreateApmRetentionFilter.rb +20 -0
  18. data/examples/v2/apm-retention-filters/DeleteApmRetentionFilter.rb +8 -0
  19. data/examples/v2/apm-retention-filters/GetApmRetentionFilter.rb +8 -0
  20. data/examples/v2/apm-retention-filters/ListApmRetentionFilters.rb +5 -0
  21. data/examples/v2/apm-retention-filters/ReorderApmRetentionFilters.rb +18 -0
  22. data/examples/v2/apm-retention-filters/UpdateApmRetentionFilter.rb +24 -0
  23. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +0 -3
  24. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +0 -8
  25. data/examples/v2/container-images/ListContainerImages.rb +8 -0
  26. data/examples/v2/container-images/ListContainerImages_3088586393.rb +11 -0
  27. data/examples/v2/container-images/ListContainerImages_3974828736.rb +11 -0
  28. data/examples/v2/gcp-integration/CreateGCPSTSAccount_109518525.rb +19 -0
  29. data/examples/v2/powerpack/CreatePowerpack.rb +47 -0
  30. data/examples/v2/powerpack/DeletePowerpack.rb +8 -0
  31. data/examples/v2/powerpack/GetPowerpack.rb +8 -0
  32. data/examples/v2/powerpack/ListPowerpacks.rb +8 -0
  33. data/examples/v2/powerpack/ListPowerpacks_1173755071.rb +8 -0
  34. data/examples/v2/powerpack/UpdatePowerpack.rb +50 -0
  35. data/examples/v2/rum/CreateRUMApplication.rb +1 -1
  36. data/examples/v2/service-accounts/CreateServiceAccountApplicationKey.rb +5 -7
  37. data/examples/v2/service-accounts/DeleteServiceAccountApplicationKey.rb +7 -1
  38. data/examples/v2/service-accounts/GetServiceAccountApplicationKey.rb +7 -1
  39. data/examples/v2/service-accounts/ListServiceAccountApplicationKeys.rb +4 -1
  40. data/examples/v2/service-accounts/UpdateServiceAccountApplicationKey.rb +11 -9
  41. data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +23 -12
  42. data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2621709423.rb +53 -0
  43. data/lib/datadog_api_client/api_client.rb +19 -1
  44. data/lib/datadog_api_client/configuration.rb +1 -1
  45. data/lib/datadog_api_client/inflector.rb +80 -0
  46. data/lib/datadog_api_client/v1/api/monitors_api.rb +1 -20
  47. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +6 -6
  48. data/lib/datadog_api_client/v1/api/webhooks_integration_api.rb +1 -1
  49. data/lib/datadog_api_client/v1/model_base.rb +1 -0
  50. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +6 -4
  51. data/lib/datadog_api_client/v1/models/ip_prefixes_global.rb +94 -0
  52. data/lib/datadog_api_client/v1/models/ip_ranges.rb +11 -1
  53. data/lib/datadog_api_client/v1/models/monitor_options_custom_schedule.rb +82 -0
  54. data/lib/datadog_api_client/v1/models/monitor_options_custom_schedule_recurrence.rb +100 -0
  55. data/lib/datadog_api_client/v1/models/monitor_options_scheduling_options.rb +11 -1
  56. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +4 -0
  57. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +45 -5
  58. data/lib/datadog_api_client/v1/models/powerpack_template_variable_contents.rb +131 -0
  59. data/lib/datadog_api_client/v1/models/powerpack_template_variables.rb +94 -0
  60. data/lib/datadog_api_client/v1/models/powerpack_widget_definition.rb +169 -0
  61. data/lib/datadog_api_client/v1/models/powerpack_widget_definition_type.rb +26 -0
  62. data/lib/datadog_api_client/v1/models/split_config.rb +181 -0
  63. data/lib/datadog_api_client/v1/models/split_config_sort_compute.rb +119 -0
  64. data/lib/datadog_api_client/v1/models/split_dimension.rb +98 -0
  65. data/lib/datadog_api_client/v1/models/split_graph_source_widget_definition.rb +70 -0
  66. data/lib/datadog_api_client/v1/models/split_graph_viz_size.rb +29 -0
  67. data/lib/datadog_api_client/v1/models/split_graph_widget_definition.rb +191 -0
  68. data/lib/datadog_api_client/v1/models/split_graph_widget_definition_type.rb +26 -0
  69. data/lib/datadog_api_client/v1/models/split_sort.rb +108 -0
  70. data/lib/datadog_api_client/v1/models/split_vector_entry_item.rb +125 -0
  71. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +4 -4
  72. data/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb +8 -8
  73. data/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_response.rb +2 -2
  74. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +148 -8
  75. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +148 -8
  76. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +148 -8
  77. data/lib/datadog_api_client/v1/models/widget_definition.rb +8 -6
  78. data/lib/datadog_api_client/v2/api/apm_retention_filters_api.rb +423 -0
  79. data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +4 -10
  80. data/lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb +3 -3
  81. data/lib/datadog_api_client/v2/api/container_images_api.rb +129 -0
  82. data/lib/datadog_api_client/v2/api/incidents_api.rb +1 -1
  83. data/lib/datadog_api_client/v2/api/powerpack_api.rb +383 -0
  84. data/lib/datadog_api_client/v2/api/service_definition_api.rb +2 -2
  85. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
  86. data/lib/datadog_api_client/v2/model_base.rb +1 -0
  87. data/lib/datadog_api_client/v2/models/apm_retention_filter_type.rb +26 -0
  88. data/lib/datadog_api_client/v2/models/container_image.rb +100 -0
  89. data/lib/datadog_api_client/v2/models/container_image_attributes.rb +261 -0
  90. data/lib/datadog_api_client/v2/models/container_image_flavor.rb +120 -0
  91. data/lib/datadog_api_client/v2/models/container_image_group.rb +110 -0
  92. data/lib/datadog_api_client/v2/models/container_image_group_attributes.rb +100 -0
  93. data/lib/datadog_api_client/v2/models/container_image_group_images_relationships_link.rb +92 -0
  94. data/lib/datadog_api_client/v2/models/container_image_group_relationships.rb +80 -0
  95. data/lib/datadog_api_client/v2/models/container_image_group_relationships_links.rb +80 -0
  96. data/lib/datadog_api_client/v2/models/container_image_group_type.rb +26 -0
  97. data/lib/datadog_api_client/v2/models/container_image_item.rb +63 -0
  98. data/lib/datadog_api_client/v2/models/container_image_meta.rb +80 -0
  99. data/lib/datadog_api_client/v2/models/container_image_meta_page.rb +160 -0
  100. data/lib/datadog_api_client/v2/models/container_image_meta_page_type.rb +26 -0
  101. data/lib/datadog_api_client/v2/models/container_image_type.rb +26 -0
  102. data/lib/datadog_api_client/v2/models/container_image_vulnerabilities.rb +140 -0
  103. data/lib/datadog_api_client/v2/models/container_images_response.rb +102 -0
  104. data/lib/datadog_api_client/v2/models/container_images_response_links.rb +130 -0
  105. data/lib/datadog_api_client/v2/models/data_scalar_column.rb +2 -2
  106. data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +13 -1
  107. data/lib/datadog_api_client/v2/models/group_scalar_column.rb +2 -2
  108. data/lib/datadog_api_client/v2/models/list_powerpacks_response.rb +114 -0
  109. data/lib/datadog_api_client/v2/models/powerpack.rb +80 -0
  110. data/lib/datadog_api_client/v2/models/powerpack_attributes.rb +164 -0
  111. data/lib/datadog_api_client/v2/models/powerpack_data.rb +110 -0
  112. data/lib/datadog_api_client/v2/models/powerpack_group_widget.rb +108 -0
  113. data/lib/datadog_api_client/v2/models/powerpack_group_widget_definition.rb +162 -0
  114. data/lib/datadog_api_client/v2/models/powerpack_group_widget_layout.rb +177 -0
  115. data/lib/datadog_api_client/v2/models/powerpack_inner_widget_layout.rb +177 -0
  116. data/lib/datadog_api_client/v2/models/powerpack_inner_widgets.rb +108 -0
  117. data/lib/datadog_api_client/v2/models/powerpack_relationships.rb +80 -0
  118. data/lib/datadog_api_client/v2/models/powerpack_response.rb +92 -0
  119. data/lib/datadog_api_client/v2/models/powerpack_response_links.rb +129 -0
  120. data/lib/datadog_api_client/v2/models/powerpack_template_variable.rb +110 -0
  121. data/lib/datadog_api_client/v2/models/powerpacks_response_meta.rb +80 -0
  122. data/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb +150 -0
  123. data/lib/datadog_api_client/v2/models/reorder_retention_filters_request.rb +100 -0
  124. data/lib/datadog_api_client/v2/models/restriction_policy_binding.rb +1 -1
  125. data/lib/datadog_api_client/v2/models/retention_filter.rb +140 -0
  126. data/lib/datadog_api_client/v2/models/retention_filter_all.rb +140 -0
  127. data/lib/datadog_api_client/v2/models/retention_filter_all_attributes.rb +181 -0
  128. data/lib/datadog_api_client/v2/models/retention_filter_all_type.rb +28 -0
  129. data/lib/datadog_api_client/v2/models/retention_filter_attributes.rb +181 -0
  130. data/lib/datadog_api_client/v2/models/retention_filter_create_attributes.rb +183 -0
  131. data/lib/datadog_api_client/v2/models/retention_filter_create_data.rb +119 -0
  132. data/lib/datadog_api_client/v2/models/retention_filter_create_request.rb +98 -0
  133. data/lib/datadog_api_client/v2/models/retention_filter_response.rb +80 -0
  134. data/lib/datadog_api_client/v2/models/retention_filter_type.rb +26 -0
  135. data/lib/datadog_api_client/v2/models/retention_filter_update_data.rb +140 -0
  136. data/lib/datadog_api_client/v2/models/retention_filter_update_request.rb +98 -0
  137. data/lib/datadog_api_client/v2/models/retention_filter_without_attributes.rb +119 -0
  138. data/lib/datadog_api_client/v2/models/retention_filters_response.rb +100 -0
  139. data/lib/datadog_api_client/v2/models/scalar_column_type_group.rb +26 -0
  140. data/lib/datadog_api_client/v2/models/scalar_column_type_number.rb +26 -0
  141. data/lib/datadog_api_client/v2/models/scalar_meta.rb +8 -0
  142. data/lib/datadog_api_client/v2/models/service_definition_schema.rb +2 -1
  143. data/lib/datadog_api_client/v2/models/service_definition_schema_versions.rb +1 -0
  144. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +247 -0
  145. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_contact.rb +129 -0
  146. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_integrations.rb +90 -0
  147. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_link.rb +150 -0
  148. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie.rb +108 -0
  149. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie_region.rb +27 -0
  150. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_pagerduty.rb +80 -0
  151. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_type.rb +32 -0
  152. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_version.rb +26 -0
  153. data/lib/datadog_api_client/v2/models/service_definitions_create_request.rb +1 -0
  154. data/lib/datadog_api_client/v2/models/spans_filter.rb +80 -0
  155. data/lib/datadog_api_client/v2/models/spans_filter_create.rb +98 -0
  156. data/lib/datadog_api_client/version.rb +1 -1
  157. data/run-tests.sh +6 -5
  158. metadata +102 -9
  159. data/examples/v1/usage-metering/GetUsageCIApp_1064440884.rb +0 -8
  160. data/examples/v1/usage-metering/GetUsageCWS_736958514.rb +0 -8
  161. data/examples/v2/service-accounts/CreateServiceAccountApplicationKey_1761876297.rb +0 -17
  162. data/examples/v2/service-accounts/DeleteServiceAccountApplicationKey_992091161.rb +0 -11
  163. data/examples/v2/service-accounts/GetServiceAccountApplicationKey_819075131.rb +0 -11
  164. data/examples/v2/service-accounts/ListServiceAccountApplicationKeys_1268914341.rb +0 -8
  165. data/examples/v2/service-accounts/UpdateServiceAccountApplicationKey_768415790.rb +0 -22
@@ -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,23 +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
50
51
  MOBILE_APP_TESTING_USAGE = "mobile_app_testing_usage".freeze
52
+ NDM_NETFLOW_USAGE = "ndm_netflow_usage".freeze
51
53
  NPM_HOST_USAGE = "npm_host_usage".freeze
52
54
  OBS_PIPELINE_BYTES_USAGE = "obs_pipeline_bytes_usage".freeze
53
55
  PROFILED_CONTAINER_USAGE = "profiled_container_usage".freeze
54
56
  PROFILED_FARGATE_USAGE = "profiled_fargate_usage".freeze
55
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
56
60
  SNMP_USAGE = "snmp_usage".freeze
57
- ESTIMATED_RUM_SESSIONS_USAGE = "estimated_rum_sessions_usage".freeze
58
61
  UNIVERSAL_SERVICE_MONITORING_USAGE = "universal_service_monitoring_usage".freeze
59
62
  VULN_MANAGEMENT_HOSTS_USAGE = "vuln_management_hosts_usage".freeze
60
- SDS_SCANNED_BYTES_USAGE = "sds_scanned_bytes_usage".freeze
61
63
  end
62
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
@@ -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
@@ -75,6 +75,8 @@ module DatadogAPIClient::V1
75
75
  INVOCATIONS_PERCENTAGE = "invocations_percentage".freeze
76
76
  MOBILE_APP_TESTING_USAGE = "mobile_app_testing_percentage".freeze
77
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
78
80
  NPM_HOST_USAGE = "npm_host_usage".freeze
79
81
  NPM_HOST_PERCENTAGE = "npm_host_percentage".freeze
80
82
  OBS_PIPELINE_BYTES_USAGE = "obs_pipeline_bytes_usage".freeze
@@ -85,6 +87,8 @@ module DatadogAPIClient::V1
85
87
  PROFILED_FARGATE_PERCENTAGE = "profiled_fargate_percentage".freeze
86
88
  PROFILED_HOST_USAGE = "profiled_host_usage".freeze
87
89
  PROFILED_HOST_PERCENTAGE = "profiled_host_percentage".freeze
90
+ SERVERLESS_APPS_USAGE = "serverless_apps_usage".freeze
91
+ SERVERLESS_APPS_PERCENTAGE = "serverless_apps_percentage".freeze
88
92
  SNMP_USAGE = "snmp_usage".freeze
89
93
  SNMP_PERCENTAGE = "snmp_percentage".freeze
90
94
  ESTIMATED_RUM_SESSIONS_USAGE = "estimated_rum_sessions_usage".freeze
@@ -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).
@@ -189,6 +189,12 @@ module DatadogAPIClient::V1
189
189
  # The Synthetic mobile application test usage by tag(s).
190
190
  attr_accessor :mobile_app_testing_usage
191
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
+
192
198
  # The percentage of network host usage by tag(s).
193
199
  attr_accessor :npm_host_percentage
194
200
 
@@ -225,6 +231,12 @@ module DatadogAPIClient::V1
225
231
  # The total Sensitive Data Scanner usage by tag(s).
226
232
  attr_accessor :sds_scanned_bytes_usage
227
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
+
228
240
  # The percentage of network device usage by tag(s).
229
241
  attr_accessor :snmp_percentage
230
242
 
@@ -303,6 +315,8 @@ module DatadogAPIClient::V1
303
315
  :'invocations_usage' => :'invocations_usage',
304
316
  :'mobile_app_testing_percentage' => :'mobile_app_testing_percentage',
305
317
  :'mobile_app_testing_usage' => :'mobile_app_testing_usage',
318
+ :'ndm_netflow_percentage' => :'ndm_netflow_percentage',
319
+ :'ndm_netflow_usage' => :'ndm_netflow_usage',
306
320
  :'npm_host_percentage' => :'npm_host_percentage',
307
321
  :'npm_host_usage' => :'npm_host_usage',
308
322
  :'obs_pipeline_bytes_percentage' => :'obs_pipeline_bytes_percentage',
@@ -315,6 +329,8 @@ module DatadogAPIClient::V1
315
329
  :'profiled_host_usage' => :'profiled_host_usage',
316
330
  :'sds_scanned_bytes_percentage' => :'sds_scanned_bytes_percentage',
317
331
  :'sds_scanned_bytes_usage' => :'sds_scanned_bytes_usage',
332
+ :'serverless_apps_percentage' => :'serverless_apps_percentage',
333
+ :'serverless_apps_usage' => :'serverless_apps_usage',
318
334
  :'snmp_percentage' => :'snmp_percentage',
319
335
  :'snmp_usage' => :'snmp_usage',
320
336
  :'universal_service_monitoring_percentage' => :'universal_service_monitoring_percentage',
@@ -384,6 +400,8 @@ module DatadogAPIClient::V1
384
400
  :'invocations_usage' => :'Float',
385
401
  :'mobile_app_testing_percentage' => :'Float',
386
402
  :'mobile_app_testing_usage' => :'Float',
403
+ :'ndm_netflow_percentage' => :'Float',
404
+ :'ndm_netflow_usage' => :'Float',
387
405
  :'npm_host_percentage' => :'Float',
388
406
  :'npm_host_usage' => :'Float',
389
407
  :'obs_pipeline_bytes_percentage' => :'Float',
@@ -396,6 +414,8 @@ module DatadogAPIClient::V1
396
414
  :'profiled_host_usage' => :'Float',
397
415
  :'sds_scanned_bytes_percentage' => :'Float',
398
416
  :'sds_scanned_bytes_usage' => :'Float',
417
+ :'serverless_apps_percentage' => :'Float',
418
+ :'serverless_apps_usage' => :'Float',
399
419
  :'snmp_percentage' => :'Float',
400
420
  :'snmp_usage' => :'Float',
401
421
  :'universal_service_monitoring_percentage' => :'Float',
@@ -645,6 +665,14 @@ module DatadogAPIClient::V1
645
665
  self.mobile_app_testing_usage = attributes[:'mobile_app_testing_usage']
646
666
  end
647
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
+
648
676
  if attributes.key?(:'npm_host_percentage')
649
677
  self.npm_host_percentage = attributes[:'npm_host_percentage']
650
678
  end
@@ -693,6 +721,14 @@ module DatadogAPIClient::V1
693
721
  self.sds_scanned_bytes_usage = attributes[:'sds_scanned_bytes_usage']
694
722
  end
695
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
+
696
732
  if attributes.key?(:'snmp_percentage')
697
733
  self.snmp_percentage = attributes[:'snmp_percentage']
698
734
  end
@@ -780,6 +816,8 @@ module DatadogAPIClient::V1
780
816
  invocations_usage == o.invocations_usage &&
781
817
  mobile_app_testing_percentage == o.mobile_app_testing_percentage &&
782
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 &&
783
821
  npm_host_percentage == o.npm_host_percentage &&
784
822
  npm_host_usage == o.npm_host_usage &&
785
823
  obs_pipeline_bytes_percentage == o.obs_pipeline_bytes_percentage &&
@@ -792,6 +830,8 @@ module DatadogAPIClient::V1
792
830
  profiled_host_usage == o.profiled_host_usage &&
793
831
  sds_scanned_bytes_percentage == o.sds_scanned_bytes_percentage &&
794
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 &&
795
835
  snmp_percentage == o.snmp_percentage &&
796
836
  snmp_usage == o.snmp_usage &&
797
837
  universal_service_monitoring_percentage == o.universal_service_monitoring_percentage &&
@@ -804,7 +844,7 @@ module DatadogAPIClient::V1
804
844
  # @return [Integer] Hash code
805
845
  # @!visibility private
806
846
  def hash
807
- [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, 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
808
848
  end
809
849
  end
810
850
  end