datadog_api_client 2.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/poetry.lock +21 -14
  4. data/.generator/pyproject.toml +1 -1
  5. data/.generator/schemas/v1/openapi.yaml +558 -8
  6. data/.generator/schemas/v2/openapi.yaml +973 -253
  7. data/.generator/src/generator/templates/api_client.j2 +5 -1
  8. data/.generator/src/generator/templates/configuration.j2 +17 -0
  9. data/.github/workflows/test.yml +3 -0
  10. data/.pre-commit-config.yaml +1 -1
  11. data/CHANGELOG.md +26 -0
  12. data/README.md +11 -0
  13. data/examples/v1/dashboards/CreateDashboard_1423904722.rb +38 -0
  14. data/examples/v1/dashboards/CreateDashboard_2652180930.rb +43 -0
  15. data/examples/v1/dashboards/CreateDashboard_2850365602.rb +55 -0
  16. data/examples/v1/dashboards/CreateDashboard_3117424216.rb +33 -0
  17. data/examples/v1/dashboards/CreateDashboard_3669695268.rb +50 -0
  18. data/examples/v1/dashboards/CreateDashboard_858397694.rb +41 -0
  19. data/examples/v1/synthetics/CreateGlobalVariable_1068962881.rb +1 -1
  20. data/examples/v2/incidents/ListIncidentAttachments.rb +8 -0
  21. data/examples/v2/incidents/ListIncidentAttachments_2457735435.rb +11 -0
  22. data/examples/v2/incidents/UpdateIncidentAttachments.rb +38 -0
  23. data/examples/v2/incidents/UpdateIncidentAttachments_3881702075.rb +26 -0
  24. data/examples/v2/metrics/ListActiveMetricConfigurations.rb +5 -0
  25. data/examples/v2/metrics/ListTagConfigurations.rb +1 -1
  26. data/examples/v2/metrics/ListTagConfigurations_265033704.rb +8 -0
  27. data/examples/v2/metrics/{ListTagConfigurations_103226315.rb → ListTagConfigurations_2739018321.rb} +1 -1
  28. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule.rb +3 -2
  29. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_461183901.rb +2 -2
  30. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_498211763.rb +2 -2
  31. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_914562040.rb +50 -0
  32. data/examples/v2/security-monitoring/GetSecurityMonitoringSignal.rb +5 -0
  33. data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +2 -1
  34. data/examples/v2/usage-metering/GetEstimatedCostByOrg.rb +1 -4
  35. data/examples/v2/usage-metering/GetEstimatedCostByOrg_2734954020.rb +2 -4
  36. data/examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb +2 -4
  37. data/examples/v2/usage-metering/GetHistoricalCostByOrg.rb +8 -0
  38. data/generate.sh +30 -0
  39. data/lib/datadog_api_client/api_client.rb +5 -1
  40. data/lib/datadog_api_client/configuration.rb +20 -1
  41. data/lib/datadog_api_client/inflector.rb +51 -1
  42. data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +3 -1
  43. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +5 -5
  44. data/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +14 -2
  45. data/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb +28 -5
  46. data/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb +14 -4
  47. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -0
  48. data/lib/datadog_api_client/v1/models/list_stream_query.rb +14 -4
  49. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -0
  50. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +21 -1
  51. data/lib/datadog_api_client/v1/models/search_service_level_objective.rb +111 -0
  52. data/lib/datadog_api_client/v1/models/search_service_level_objective_attributes.rb +286 -0
  53. data/lib/datadog_api_client/v1/models/search_service_level_objective_data.rb +134 -0
  54. data/lib/datadog_api_client/v1/models/search_slo_query.rb +137 -0
  55. data/lib/datadog_api_client/v1/models/search_slo_response_data_attributes.rb +8 -8
  56. data/lib/datadog_api_client/v1/models/search_slo_response_links.rb +2 -0
  57. data/lib/datadog_api_client/v1/models/search_slo_threshold.rb +184 -0
  58. data/lib/datadog_api_client/v1/models/search_slo_timeframe.rb +28 -0
  59. data/lib/datadog_api_client/v1/models/slo_creator.rb +131 -0
  60. data/lib/datadog_api_client/v1/models/slo_list_widget_definition.rb +185 -0
  61. data/lib/datadog_api_client/v1/models/slo_list_widget_definition_type.rb +26 -0
  62. data/lib/datadog_api_client/v1/models/slo_list_widget_query.rb +149 -0
  63. data/lib/datadog_api_client/v1/models/slo_list_widget_request.rb +143 -0
  64. data/lib/datadog_api_client/v1/models/slo_list_widget_request_type.rb +26 -0
  65. data/lib/datadog_api_client/v1/models/slo_overall_statuses.rb +174 -0
  66. data/lib/datadog_api_client/v1/models/slo_raw_error_budget_remaining.rb +121 -0
  67. data/lib/datadog_api_client/v1/models/synthetics_assertion_operator.rb +1 -0
  68. data/lib/datadog_api_client/v1/models/topology_map_widget_definition.rb +193 -0
  69. data/lib/datadog_api_client/v1/models/topology_map_widget_definition_type.rb +26 -0
  70. data/lib/datadog_api_client/v1/models/topology_query.rb +144 -0
  71. data/lib/datadog_api_client/v1/models/topology_query_data_source.rb +27 -0
  72. data/lib/datadog_api_client/v1/models/topology_request.rb +121 -0
  73. data/lib/datadog_api_client/v1/models/topology_request_type.rb +26 -0
  74. data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +2 -0
  75. data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +2 -0
  76. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +21 -1
  77. data/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +11 -1
  78. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +11 -1
  79. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +11 -1
  80. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +11 -1
  81. data/lib/datadog_api_client/v1/models/widget_definition.rb +3 -1
  82. data/lib/datadog_api_client/v2/api/incident_services_api.rb +2 -2
  83. data/lib/datadog_api_client/v2/api/incident_teams_api.rb +2 -2
  84. data/lib/datadog_api_client/v2/api/incidents_api.rb +155 -0
  85. data/lib/datadog_api_client/v2/api/metrics_api.rb +76 -8
  86. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +65 -0
  87. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +83 -17
  88. data/lib/datadog_api_client/v2/models/incident_attachment_attachment_type.rb +27 -0
  89. data/lib/datadog_api_client/v2/models/incident_attachment_attributes.rb +63 -0
  90. data/lib/datadog_api_client/v2/models/incident_attachment_data.rb +187 -0
  91. data/lib/datadog_api_client/v2/models/incident_attachment_link_attachment_type.rb +26 -0
  92. data/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb +145 -0
  93. data/lib/datadog_api_client/v2/models/incident_attachment_link_attributes_attachment_object.rb +143 -0
  94. data/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attachment_type.rb +26 -0
  95. data/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attributes.rb +145 -0
  96. data/lib/datadog_api_client/v2/models/incident_attachment_related_object.rb +26 -0
  97. data/lib/datadog_api_client/v2/models/incident_attachment_relationships.rb +111 -0
  98. data/lib/datadog_api_client/v2/models/incident_attachment_type.rb +26 -0
  99. data/lib/datadog_api_client/v2/models/incident_attachment_update_attributes.rb +63 -0
  100. data/lib/datadog_api_client/v2/models/incident_attachment_update_data.rb +144 -0
  101. data/lib/datadog_api_client/v2/models/incident_attachment_update_request.rb +127 -0
  102. data/lib/datadog_api_client/v2/models/incident_attachment_update_response.rb +137 -0
  103. data/lib/datadog_api_client/v2/models/incident_attachments_postmortem_attributes_attachment_object.rb +143 -0
  104. data/lib/datadog_api_client/v2/models/incident_attachments_response.rb +136 -0
  105. data/lib/datadog_api_client/v2/models/incident_attachments_response_included_item.rb +62 -0
  106. data/lib/datadog_api_client/v2/models/incident_related_object.rb +1 -0
  107. data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +1 -11
  108. data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +2 -1
  109. data/lib/datadog_api_client/v2/models/incident_response_relationships.rb +14 -14
  110. data/lib/datadog_api_client/v2/models/metric_active_configuration_type.rb +26 -0
  111. data/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations.rb +133 -0
  112. data/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations_response.rb +111 -0
  113. data/lib/datadog_api_client/v2/models/metric_suggested_tags_attributes.rb +125 -0
  114. data/lib/datadog_api_client/v2/models/relationship_to_incident_attachment.rb +124 -0
  115. data/lib/datadog_api_client/v2/models/relationship_to_incident_attachment_data.rb +145 -0
  116. data/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +36 -248
  117. data/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +36 -151
  118. data/lib/datadog_api_client/v2/models/security_monitoring_rule_query_aggregation.rb +1 -0
  119. data/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb +37 -253
  120. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +275 -0
  121. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_query.rb +187 -0
  122. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +279 -0
  123. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_type.rb +26 -0
  124. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +275 -0
  125. data/lib/datadog_api_client/v2/models/{security_monitoring_rule_query_create.rb → security_monitoring_standard_rule_query.rb} +3 -3
  126. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +279 -0
  127. data/lib/datadog_api_client/version.rb +1 -1
  128. metadata +70 -6
  129. data/Makefile +0 -7
  130. data/examples/v2/metrics/ListTagConfigurations_1799362914.rb +0 -8
@@ -1,11 +1,9 @@
1
1
  # GetEstimatedCostByOrg with start_month returns "OK" response
2
2
 
3
3
  require "datadog_api_client"
4
- DatadogAPIClient::V2.configure do |config|
5
- config.unstable_operations["v2.get_estimated_cost_by_org".to_sym] = true
6
- end
7
4
  api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new
8
5
  opts = {
6
+ view: "sub-org",
9
7
  start_month: (Time.now + -5 * 86400),
10
8
  }
11
- p api_instance.get_estimated_cost_by_org("sub-org", opts)
9
+ p api_instance.get_estimated_cost_by_org(opts)
@@ -0,0 +1,8 @@
1
+ # Get historical cost across your account returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new
5
+ opts = {
6
+ view: "sub-org",
7
+ }
8
+ p api_instance.get_historical_cost_by_org((Time.now + -1 * 60), opts)
data/generate.sh ADDED
@@ -0,0 +1,30 @@
1
+ #!/bin/bash
2
+
3
+ DEFAULT_ERROR_CODES="0"
4
+
5
+ # First arg is the command
6
+ # Second arg is the string of acceptable error codes seperated by space. E.g. "0 1"
7
+ pre_commit_wrapper () {
8
+ echo "running pre-commit run --all-files --hook-stage=manual ${1}"
9
+
10
+ exec 5>&1
11
+ acceptable_errors=${2:-$DEFAULT_ERROR_CODES}
12
+ out=$(pre-commit run --all-files --hook-stage=manual "${1}" | tee >(cat - >&5))
13
+ exit_code=$( echo "$out" | grep -- "- exit code:" | cut -d":" -f2 | sed 's/[^0-9]*//g' )
14
+
15
+ if [[ -n $exit_code ]]; then
16
+ re="([^0-9]|^)$exit_code([^0-9]|$)"
17
+ if ! grep -qE "$re" <<< "$acceptable_errors" ; then
18
+ echo "pre-commit subcommand failed with error_code: $exit_code. See output above"
19
+ exit "$exit_code";
20
+ fi
21
+ fi
22
+
23
+ echo "command 'pre-commit run --all-files --hook-stage=manual ${1}' success"
24
+ }
25
+
26
+ rm -rf ./lib/datadog_api_client/v1 ./lib/datadog_api_client/v2 examples/*
27
+ pre_commit_wrapper generator
28
+ pre_commit_wrapper examples
29
+ pre_commit_wrapper format-examples 3
30
+ pre_commit_wrapper docs
@@ -149,7 +149,11 @@ module DatadogAPIClient
149
149
  :timeout => @config.timeout,
150
150
  :verify_peer => @config.verify_ssl,
151
151
  :verify => _verify_ssl_host,
152
- :verbose => @config.debugging
152
+ :verbose => @config.debugging,
153
+ :http_proxyaddr => @config.http_proxyaddr,
154
+ :http_proxyport => @config.http_proxyport,
155
+ :http_proxyuser => @config.http_proxyuser,
156
+ :http_proxypass => @config.http_proxypass
153
157
  }
154
158
 
155
159
  req_opts[:pem] = File.read(@config.cert_file) if @config.cert_file
@@ -136,6 +136,19 @@ module DatadogAPIClient
136
136
  # Set this to add accept encoding header for compression
137
137
  attr_accessor :compress
138
138
 
139
+ ### Proxy settings
140
+ # Address of proxy server to use
141
+ attr_accessor :http_proxyaddr
142
+
143
+ # Port of proxy server to use
144
+ attr_accessor :http_proxyport
145
+
146
+ # User for proxy server authentication
147
+ attr_accessor :http_proxyuser
148
+
149
+ # Password for proxy server authentication
150
+ attr_accessor :http_proxypass
151
+
139
152
  def initialize
140
153
  @scheme = 'https'
141
154
  @host = 'api.datadoghq.com'
@@ -156,6 +169,10 @@ module DatadogAPIClient
156
169
  @inject_format = false
157
170
  @force_ending_format = false
158
171
  @compress = true
172
+ @http_proxyaddr = nil
173
+ @http_proxyport = nil
174
+ @http_proxyuser = nil
175
+ @http_proxypass = nil
159
176
  @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
160
177
  @unstable_operations = {
161
178
  "v1.get_slo_history": false,
@@ -165,8 +182,10 @@ module DatadogAPIClient
165
182
  "v2.create_incident": false,
166
183
  "v2.delete_incident": false,
167
184
  "v2.get_incident": false,
185
+ "v2.list_incident_attachments": false,
168
186
  "v2.list_incidents": false,
169
187
  "v2.update_incident": false,
188
+ "v2.update_incident_attachments": false,
170
189
  "v2.create_incident_service": false,
171
190
  "v2.delete_incident_service": false,
172
191
  "v2.get_incident_service": false,
@@ -177,7 +196,6 @@ module DatadogAPIClient
177
196
  "v2.get_incident_team": false,
178
197
  "v2.list_incident_teams": false,
179
198
  "v2.update_incident_team": false,
180
- "v2.get_estimated_cost_by_org": false,
181
199
  }
182
200
  @server_variables[:site] = ENV['DD_SITE'] if ENV.key? 'DD_SITE'
183
201
  @api_key['apiKeyAuth'] = ENV['DD_API_KEY'] if ENV.key? 'DD_API_KEY'
@@ -377,6 +395,7 @@ module DatadogAPIClient
377
395
  default_value: "datadoghq.com",
378
396
  enum_values: [
379
397
  "datadoghq.com",
398
+ "datadoghq.eu",
380
399
  "us3.datadoghq.com",
381
400
  "us5.datadoghq.com",
382
401
  "ddog-gov.com"
@@ -372,6 +372,10 @@ module DatadogAPIClient
372
372
  "v1.scatter_plot_widget_definition_requests" => "ScatterPlotWidgetDefinitionRequests",
373
373
  "v1.scatter_plot_widget_definition_type" => "ScatterPlotWidgetDefinitionType",
374
374
  "v1.scatterplot_widget_formula" => "ScatterplotWidgetFormula",
375
+ "v1.search_service_level_objective" => "SearchServiceLevelObjective",
376
+ "v1.search_service_level_objective_attributes" => "SearchServiceLevelObjectiveAttributes",
377
+ "v1.search_service_level_objective_data" => "SearchServiceLevelObjectiveData",
378
+ "v1.search_slo_query" => "SearchSLOQuery",
375
379
  "v1.search_slo_response" => "SearchSLOResponse",
376
380
  "v1.search_slo_response_data" => "SearchSLOResponseData",
377
381
  "v1.search_slo_response_data_attributes" => "SearchSLOResponseDataAttributes",
@@ -381,6 +385,8 @@ module DatadogAPIClient
381
385
  "v1.search_slo_response_links" => "SearchSLOResponseLinks",
382
386
  "v1.search_slo_response_meta" => "SearchSLOResponseMeta",
383
387
  "v1.search_slo_response_meta_page" => "SearchSLOResponseMetaPage",
388
+ "v1.search_slo_threshold" => "SearchSLOThreshold",
389
+ "v1.search_slo_timeframe" => "SearchSLOTimeframe",
384
390
  "v1.series" => "Series",
385
391
  "v1.service_check" => "ServiceCheck",
386
392
  "v1.service_check_status" => "ServiceCheckStatus",
@@ -413,6 +419,7 @@ module DatadogAPIClient
413
419
  "v1.slo_correction_update_data" => "SLOCorrectionUpdateData",
414
420
  "v1.slo_correction_update_request" => "SLOCorrectionUpdateRequest",
415
421
  "v1.slo_correction_update_request_attributes" => "SLOCorrectionUpdateRequestAttributes",
422
+ "v1.slo_creator" => "SLOCreator",
416
423
  "v1.slo_delete_response" => "SLODeleteResponse",
417
424
  "v1.slo_error_timeframe" => "SLOErrorTimeframe",
418
425
  "v1.slo_history_metrics" => "SLOHistoryMetrics",
@@ -428,6 +435,13 @@ module DatadogAPIClient
428
435
  "v1.slo_list_response" => "SLOListResponse",
429
436
  "v1.slo_list_response_metadata" => "SLOListResponseMetadata",
430
437
  "v1.slo_list_response_metadata_page" => "SLOListResponseMetadataPage",
438
+ "v1.slo_list_widget_definition" => "SLOListWidgetDefinition",
439
+ "v1.slo_list_widget_definition_type" => "SLOListWidgetDefinitionType",
440
+ "v1.slo_list_widget_query" => "SLOListWidgetQuery",
441
+ "v1.slo_list_widget_request" => "SLOListWidgetRequest",
442
+ "v1.slo_list_widget_request_type" => "SLOListWidgetRequestType",
443
+ "v1.slo_overall_statuses" => "SLOOverallStatuses",
444
+ "v1.slo_raw_error_budget_remaining" => "SLORawErrorBudgetRemaining",
431
445
  "v1.slo_response" => "SLOResponse",
432
446
  "v1.slo_response_data" => "SLOResponseData",
433
447
  "v1.slo_threshold" => "SLOThreshold",
@@ -579,6 +593,12 @@ module DatadogAPIClient
579
593
  "v1.toplist_widget_definition" => "ToplistWidgetDefinition",
580
594
  "v1.toplist_widget_definition_type" => "ToplistWidgetDefinitionType",
581
595
  "v1.toplist_widget_request" => "ToplistWidgetRequest",
596
+ "v1.topology_map_widget_definition" => "TopologyMapWidgetDefinition",
597
+ "v1.topology_map_widget_definition_type" => "TopologyMapWidgetDefinitionType",
598
+ "v1.topology_query" => "TopologyQuery",
599
+ "v1.topology_query_data_source" => "TopologyQueryDataSource",
600
+ "v1.topology_request" => "TopologyRequest",
601
+ "v1.topology_request_type" => "TopologyRequestType",
582
602
  "v1.tree_map_color_by" => "TreeMapColorBy",
583
603
  "v1.tree_map_group_by" => "TreeMapGroupBy",
584
604
  "v1.tree_map_size_by" => "TreeMapSizeBy",
@@ -846,6 +866,24 @@ module DatadogAPIClient
846
866
  "v2.http_log_errors" => "HTTPLogErrors",
847
867
  "v2.http_log_item" => "HTTPLogItem",
848
868
  "v2.idp_metadata_form_data" => "IdPMetadataFormData",
869
+ "v2.incident_attachment_attachment_type" => "IncidentAttachmentAttachmentType",
870
+ "v2.incident_attachment_attributes" => "IncidentAttachmentAttributes",
871
+ "v2.incident_attachment_data" => "IncidentAttachmentData",
872
+ "v2.incident_attachment_link_attachment_type" => "IncidentAttachmentLinkAttachmentType",
873
+ "v2.incident_attachment_link_attributes" => "IncidentAttachmentLinkAttributes",
874
+ "v2.incident_attachment_link_attributes_attachment_object" => "IncidentAttachmentLinkAttributesAttachmentObject",
875
+ "v2.incident_attachment_postmortem_attachment_type" => "IncidentAttachmentPostmortemAttachmentType",
876
+ "v2.incident_attachment_postmortem_attributes" => "IncidentAttachmentPostmortemAttributes",
877
+ "v2.incident_attachment_related_object" => "IncidentAttachmentRelatedObject",
878
+ "v2.incident_attachment_relationships" => "IncidentAttachmentRelationships",
879
+ "v2.incident_attachments_postmortem_attributes_attachment_object" => "IncidentAttachmentsPostmortemAttributesAttachmentObject",
880
+ "v2.incident_attachments_response" => "IncidentAttachmentsResponse",
881
+ "v2.incident_attachments_response_included_item" => "IncidentAttachmentsResponseIncludedItem",
882
+ "v2.incident_attachment_type" => "IncidentAttachmentType",
883
+ "v2.incident_attachment_update_attributes" => "IncidentAttachmentUpdateAttributes",
884
+ "v2.incident_attachment_update_data" => "IncidentAttachmentUpdateData",
885
+ "v2.incident_attachment_update_request" => "IncidentAttachmentUpdateRequest",
886
+ "v2.incident_attachment_update_response" => "IncidentAttachmentUpdateResponse",
849
887
  "v2.incident_create_attributes" => "IncidentCreateAttributes",
850
888
  "v2.incident_create_data" => "IncidentCreateData",
851
889
  "v2.incident_create_relationships" => "IncidentCreateRelationships",
@@ -978,6 +1016,7 @@ module DatadogAPIClient
978
1016
  "v2.logs_warning" => "LogsWarning",
979
1017
  "v2.log_type" => "LogType",
980
1018
  "v2.metric" => "Metric",
1019
+ "v2.metric_active_configuration_type" => "MetricActiveConfigurationType",
981
1020
  "v2.metric_all_tags" => "MetricAllTags",
982
1021
  "v2.metric_all_tags_attributes" => "MetricAllTagsAttributes",
983
1022
  "v2.metric_all_tags_response" => "MetricAllTagsResponse",
@@ -1015,6 +1054,9 @@ module DatadogAPIClient
1015
1054
  "v2.metrics_and_metric_tag_configurations" => "MetricsAndMetricTagConfigurations",
1016
1055
  "v2.metrics_and_metric_tag_configurations_response" => "MetricsAndMetricTagConfigurationsResponse",
1017
1056
  "v2.metric_series" => "MetricSeries",
1057
+ "v2.metric_suggested_tags_and_aggregations" => "MetricSuggestedTagsAndAggregations",
1058
+ "v2.metric_suggested_tags_and_aggregations_response" => "MetricSuggestedTagsAndAggregationsResponse",
1059
+ "v2.metric_suggested_tags_attributes" => "MetricSuggestedTagsAttributes",
1018
1060
  "v2.metric_tag_configuration" => "MetricTagConfiguration",
1019
1061
  "v2.metric_tag_configuration_attributes" => "MetricTagConfigurationAttributes",
1020
1062
  "v2.metric_tag_configuration_create_attributes" => "MetricTagConfigurationCreateAttributes",
@@ -1064,6 +1106,8 @@ module DatadogAPIClient
1064
1106
  "v2.process_summary_attributes" => "ProcessSummaryAttributes",
1065
1107
  "v2.process_summary_type" => "ProcessSummaryType",
1066
1108
  "v2.query_sort_order" => "QuerySortOrder",
1109
+ "v2.relationship_to_incident_attachment" => "RelationshipToIncidentAttachment",
1110
+ "v2.relationship_to_incident_attachment_data" => "RelationshipToIncidentAttachmentData",
1067
1111
  "v2.relationship_to_incident_integration_metadata_data" => "RelationshipToIncidentIntegrationMetadataData",
1068
1112
  "v2.relationship_to_incident_integration_metadatas" => "RelationshipToIncidentIntegrationMetadatas",
1069
1113
  "v2.relationship_to_incident_postmortem" => "RelationshipToIncidentPostmortem",
@@ -1185,7 +1229,6 @@ module DatadogAPIClient
1185
1229
  "v2.security_monitoring_rule_options" => "SecurityMonitoringRuleOptions",
1186
1230
  "v2.security_monitoring_rule_query" => "SecurityMonitoringRuleQuery",
1187
1231
  "v2.security_monitoring_rule_query_aggregation" => "SecurityMonitoringRuleQueryAggregation",
1188
- "v2.security_monitoring_rule_query_create" => "SecurityMonitoringRuleQueryCreate",
1189
1232
  "v2.security_monitoring_rule_response" => "SecurityMonitoringRuleResponse",
1190
1233
  "v2.security_monitoring_rule_severity" => "SecurityMonitoringRuleSeverity",
1191
1234
  "v2.security_monitoring_rule_type_create" => "SecurityMonitoringRuleTypeCreate",
@@ -1203,6 +1246,10 @@ module DatadogAPIClient
1203
1246
  "v2.security_monitoring_signal_list_request" => "SecurityMonitoringSignalListRequest",
1204
1247
  "v2.security_monitoring_signal_list_request_filter" => "SecurityMonitoringSignalListRequestFilter",
1205
1248
  "v2.security_monitoring_signal_list_request_page" => "SecurityMonitoringSignalListRequestPage",
1249
+ "v2.security_monitoring_signal_rule_create_payload" => "SecurityMonitoringSignalRuleCreatePayload",
1250
+ "v2.security_monitoring_signal_rule_query" => "SecurityMonitoringSignalRuleQuery",
1251
+ "v2.security_monitoring_signal_rule_response" => "SecurityMonitoringSignalRuleResponse",
1252
+ "v2.security_monitoring_signal_rule_type" => "SecurityMonitoringSignalRuleType",
1206
1253
  "v2.security_monitoring_signals_list_response" => "SecurityMonitoringSignalsListResponse",
1207
1254
  "v2.security_monitoring_signals_list_response_links" => "SecurityMonitoringSignalsListResponseLinks",
1208
1255
  "v2.security_monitoring_signals_list_response_meta" => "SecurityMonitoringSignalsListResponseMeta",
@@ -1216,6 +1263,9 @@ module DatadogAPIClient
1216
1263
  "v2.security_monitoring_signal_triage_update_data" => "SecurityMonitoringSignalTriageUpdateData",
1217
1264
  "v2.security_monitoring_signal_triage_update_response" => "SecurityMonitoringSignalTriageUpdateResponse",
1218
1265
  "v2.security_monitoring_signal_type" => "SecurityMonitoringSignalType",
1266
+ "v2.security_monitoring_standard_rule_create_payload" => "SecurityMonitoringStandardRuleCreatePayload",
1267
+ "v2.security_monitoring_standard_rule_query" => "SecurityMonitoringStandardRuleQuery",
1268
+ "v2.security_monitoring_standard_rule_response" => "SecurityMonitoringStandardRuleResponse",
1219
1269
  "v2.security_monitoring_triage_user" => "SecurityMonitoringTriageUser",
1220
1270
  "v2.service_account_create_attributes" => "ServiceAccountCreateAttributes",
1221
1271
  "v2.service_account_create_data" => "ServiceAccountCreateData",
@@ -615,9 +615,10 @@ module DatadogAPIClient::V1
615
615
  # Get a list of service level objective objects for your organization.
616
616
  #
617
617
  # @param opts [Hash] the optional parameters
618
- # @option opts [String] :query The query string to filter results based on SLO names.
618
+ # @option opts [String] :query The query string to filter results based on SLO names. Some examples of queries include `service:<service-name>` and `<slo-name>`.
619
619
  # @option opts [Integer] :page_size The number of files to return in the response `[default=10]`.
620
620
  # @option opts [Integer] :page_number The identifier of the first page to return. This parameter is used for the pagination feature `[default=0]`.
621
+ # @option opts [Boolean] :include_facets Whether or not to return facet information in the response `[default=false]`.
621
622
  # @return [Array<(SearchSLOResponse, Integer, Hash)>] SearchSLOResponse data, response status code and response headers
622
623
  def search_slo_with_http_info(opts = {})
623
624
  unstable_enabled = @api_client.config.unstable_operations["v1.search_slo".to_sym]
@@ -638,6 +639,7 @@ module DatadogAPIClient::V1
638
639
  query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
639
640
  query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
640
641
  query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
642
+ query_params[:'include_facets'] = opts[:'include_facets'] if !opts[:'include_facets'].nil?
641
643
 
642
644
  # header parameters
643
645
  header_params = opts[:header_params] || {}
@@ -149,7 +149,7 @@ module DatadogAPIClient::V1
149
149
  fail ArgumentError, "Missing the required parameter 'usage_type' when calling UsageMeteringAPI.get_hourly_usage_attribution"
150
150
  end
151
151
  # verify enum value
152
- allowable_values = ['api_usage', 'apm_host_usage', 'appsec_usage', 'browser_usage', 'container_usage', 'cspm_containers_usage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'cws_containers_usage', 'cws_hosts_usage', 'dbm_hosts_usage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_ingested_logs_usage', 'estimated_indexed_spans_usage', 'estimated_ingested_spans_usage', 'fargate_usage', 'functions_usage', 'indexed_logs_usage', 'infra_host_usage', 'invocations_usage', 'npm_host_usage', 'profiled_container_usage', 'profiled_host_usage', 'snmp_usage']
152
+ allowable_values = ['api_usage', 'apm_fargate_usage', 'apm_host_usage', 'appsec_usage', 'browser_usage', 'container_usage', 'cspm_containers_usage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'cws_containers_usage', 'cws_hosts_usage', 'dbm_hosts_usage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_ingested_logs_usage', 'estimated_indexed_spans_usage', 'estimated_ingested_spans_usage', 'fargate_usage', 'functions_usage', 'indexed_logs_usage', 'infra_host_usage', 'invocations_usage', 'npm_host_usage', 'profiled_container_usage', 'profiled_host_usage', 'snmp_usage']
153
153
  if @api_client.config.client_side_validation && !allowable_values.include?(usage_type)
154
154
  fail ArgumentError, "invalid value for \"usage_type\", must be one of #{allowable_values}"
155
155
  end
@@ -466,7 +466,7 @@ module DatadogAPIClient::V1
466
466
  fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_monthly_usage_attribution"
467
467
  end
468
468
  # verify enum value
469
- allowable_values = ['api_usage', 'api_percentage', 'apm_host_usage', 'apm_host_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', '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_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'indexed_logs_usage', 'indexed_logs_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', '*']
469
+ allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', '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_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'indexed_logs_usage', 'indexed_logs_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', '*']
470
470
  if @api_client.config.client_side_validation && !allowable_values.include?(fields)
471
471
  fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}"
472
472
  end
@@ -474,7 +474,7 @@ module DatadogAPIClient::V1
474
474
  if @api_client.config.client_side_validation && opts[:'sort_direction'] && !allowable_values.include?(opts[:'sort_direction'])
475
475
  fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{allowable_values}"
476
476
  end
477
- allowable_values = ['api_usage', 'api_percentage', 'apm_host_usage', 'apm_host_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', '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_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'indexed_logs_usage', 'indexed_logs_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', '*']
477
+ allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', '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_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'indexed_logs_usage', 'indexed_logs_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', '*']
478
478
  if @api_client.config.client_side_validation && opts[:'sort_name'] && !allowable_values.include?(opts[:'sort_name'])
479
479
  fail ArgumentError, "invalid value for \"sort_name\", must be one of #{allowable_values}"
480
480
  end
@@ -768,7 +768,7 @@ module DatadogAPIClient::V1
768
768
  fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_usage_attribution"
769
769
  end
770
770
  # verify enum value
771
- allowable_values = ['custom_timeseries_usage', 'container_usage', 'snmp_percentage', 'apm_host_usage', 'browser_usage', 'npm_host_percentage', 'infra_host_usage', 'custom_timeseries_percentage', 'container_percentage', 'api_usage', 'apm_host_percentage', 'infra_host_percentage', 'snmp_usage', 'browser_percentage', 'api_percentage', 'npm_host_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', 'fargate_usage', 'fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'dbm_hosts_usage', 'dbm_hosts_percentage', 'dbm_queries_usage', 'dbm_queries_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'appsec_usage', 'appsec_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', '*']
771
+ allowable_values = ['custom_timeseries_usage', 'container_usage', 'snmp_percentage', 'apm_host_usage', 'browser_usage', 'npm_host_percentage', 'infra_host_usage', 'custom_timeseries_percentage', 'container_percentage', 'api_usage', 'apm_host_percentage', 'infra_host_percentage', 'snmp_usage', 'browser_percentage', 'api_percentage', 'npm_host_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', 'fargate_usage', 'fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'dbm_hosts_usage', 'dbm_hosts_percentage', 'dbm_queries_usage', 'dbm_queries_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'appsec_usage', 'appsec_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', '*']
772
772
  if @api_client.config.client_side_validation && !allowable_values.include?(fields)
773
773
  fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}"
774
774
  end
@@ -776,7 +776,7 @@ module DatadogAPIClient::V1
776
776
  if @api_client.config.client_side_validation && opts[:'sort_direction'] && !allowable_values.include?(opts[:'sort_direction'])
777
777
  fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{allowable_values}"
778
778
  end
779
- allowable_values = ['api_percentage', 'snmp_usage', 'apm_host_usage', 'api_usage', 'appsec_usage', 'appsec_percentage', 'container_usage', 'custom_timeseries_percentage', 'container_percentage', 'apm_host_percentage', 'npm_host_percentage', 'browser_percentage', 'browser_usage', 'infra_host_percentage', 'snmp_percentage', 'npm_host_usage', 'infra_host_usage', 'custom_timeseries_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage']
779
+ allowable_values = ['api_percentage', 'snmp_usage', 'apm_host_usage', 'api_usage', 'appsec_usage', 'appsec_percentage', 'container_usage', 'custom_timeseries_percentage', 'container_percentage', 'apm_host_percentage', 'npm_host_percentage', 'browser_percentage', 'browser_usage', 'infra_host_percentage', 'snmp_percentage', 'npm_host_usage', 'infra_host_usage', 'custom_timeseries_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'apm_fargate_usage', 'apm_fargate_percentage']
780
780
  if @api_client.config.client_side_validation && opts[:'sort_name'] && !allowable_values.include?(opts[:'sort_name'])
781
781
  fail ArgumentError, "invalid value for \"sort_name\", must be one of #{allowable_values}"
782
782
  end
@@ -28,9 +28,12 @@ module DatadogAPIClient::V1
28
28
  # The list of values that the template variable drop-down is limited to.
29
29
  attr_accessor :available_values
30
30
 
31
- # The default value for the template variable on dashboard load.
31
+ # (deprecated) The default value for the template variable on dashboard load. Cannot be used in conjunction with `defaults`.
32
32
  attr_accessor :default
33
33
 
34
+ # One or many default values for template variables on load. If more than one default is specified, they will be unioned together with `OR`. Cannot be used in conjunction with `default`.
35
+ attr_accessor :defaults
36
+
34
37
  # The name of the variable.
35
38
  attr_accessor :name
36
39
 
@@ -43,6 +46,7 @@ module DatadogAPIClient::V1
43
46
  {
44
47
  :'available_values' => :'available_values',
45
48
  :'default' => :'default',
49
+ :'defaults' => :'defaults',
46
50
  :'name' => :'name',
47
51
  :'prefix' => :'prefix'
48
52
  }
@@ -60,6 +64,7 @@ module DatadogAPIClient::V1
60
64
  {
61
65
  :'available_values' => :'Array<String>',
62
66
  :'default' => :'String',
67
+ :'defaults' => :'Array<String>',
63
68
  :'name' => :'String',
64
69
  :'prefix' => :'String'
65
70
  }
@@ -101,6 +106,12 @@ module DatadogAPIClient::V1
101
106
  self.default = attributes[:'default']
102
107
  end
103
108
 
109
+ if attributes.key?(:'defaults')
110
+ if (value = attributes[:'defaults']).is_a?(Array)
111
+ self.defaults = value
112
+ end
113
+ end
114
+
104
115
  if attributes.key?(:'name')
105
116
  self.name = attributes[:'name']
106
117
  end
@@ -136,6 +147,7 @@ module DatadogAPIClient::V1
136
147
  self.class == o.class &&
137
148
  available_values == o.available_values &&
138
149
  default == o.default &&
150
+ defaults == o.defaults &&
139
151
  name == o.name &&
140
152
  prefix == o.prefix
141
153
  end
@@ -151,7 +163,7 @@ module DatadogAPIClient::V1
151
163
  # @return [Integer] Hash code
152
164
  # @!visibility private
153
165
  def hash
154
- [available_values, default, name, prefix].hash
166
+ [available_values, default, defaults, name, prefix].hash
155
167
  end
156
168
  end
157
169
  end
@@ -28,15 +28,19 @@ module DatadogAPIClient::V1
28
28
  # The name of the variable.
29
29
  attr_accessor :name
30
30
 
31
- # The value of the template variable within the saved view.
31
+ # (deprecated) The value of the template variable within the saved view. Cannot be used in conjunction with `values`.
32
32
  attr_accessor :value
33
33
 
34
+ # One or many template variable values within the saved view, which will be unioned together using `OR` if more than one is specified. Cannot be used in conjunction with `value`.
35
+ attr_accessor :values
36
+
34
37
  # Attribute mapping from ruby-style variable name to JSON key.
35
38
  # @!visibility private
36
39
  def self.attribute_map
37
40
  {
38
41
  :'name' => :'name',
39
- :'value' => :'value'
42
+ :'value' => :'value',
43
+ :'values' => :'values'
40
44
  }
41
45
  end
42
46
 
@@ -51,7 +55,8 @@ module DatadogAPIClient::V1
51
55
  def self.openapi_types
52
56
  {
53
57
  :'name' => :'String',
54
- :'value' => :'String'
58
+ :'value' => :'String',
59
+ :'values' => :'Array<String>'
55
60
  }
56
61
  end
57
62
 
@@ -85,15 +90,32 @@ module DatadogAPIClient::V1
85
90
  if attributes.key?(:'value')
86
91
  self.value = attributes[:'value']
87
92
  end
93
+
94
+ if attributes.key?(:'values')
95
+ if (value = attributes[:'values']).is_a?(Array)
96
+ self.values = value
97
+ end
98
+ end
88
99
  end
89
100
 
90
101
  # Check to see if the all the properties in the model are valid
91
102
  # @return true if the model is valid
92
103
  # @!visibility private
93
104
  def valid?
105
+ return false if !@values.nil? && @values.length < 1
94
106
  true
95
107
  end
96
108
 
109
+ # Custom attribute writer method with validation
110
+ # @param values [Object] Object to be assigned
111
+ # @!visibility private
112
+ def values=(values)
113
+ if !values.nil? && values.length < 1
114
+ fail ArgumentError, 'invalid value for "values", number of items must be greater than or equal to 1.'
115
+ end
116
+ @values = values
117
+ end
118
+
97
119
  # Checks equality by comparing each attribute.
98
120
  # @param o [Object] Object to be compared
99
121
  # @!visibility private
@@ -101,7 +123,8 @@ module DatadogAPIClient::V1
101
123
  return true if self.equal?(o)
102
124
  self.class == o.class &&
103
125
  name == o.name &&
104
- value == o.value
126
+ value == o.value &&
127
+ values == o.values
105
128
  end
106
129
 
107
130
  # @see the `==` method
@@ -115,7 +138,7 @@ module DatadogAPIClient::V1
115
138
  # @return [Integer] Hash code
116
139
  # @!visibility private
117
140
  def hash
118
- [name, value].hash
141
+ [name, value, values].hash
119
142
  end
120
143
  end
121
144
  end
@@ -43,6 +43,9 @@ module DatadogAPIClient::V1
43
43
  # Search options.
44
44
  attr_accessor :search
45
45
 
46
+ # Option for storage location. Feature in Private Beta.
47
+ attr_accessor :storage
48
+
46
49
  # Attribute mapping from ruby-style variable name to JSON key.
47
50
  # @!visibility private
48
51
  def self.attribute_map
@@ -52,7 +55,8 @@ module DatadogAPIClient::V1
52
55
  :'group_by' => :'group_by',
53
56
  :'indexes' => :'indexes',
54
57
  :'name' => :'name',
55
- :'search' => :'search'
58
+ :'search' => :'search',
59
+ :'storage' => :'storage'
56
60
  }
57
61
  end
58
62
 
@@ -71,7 +75,8 @@ module DatadogAPIClient::V1
71
75
  :'group_by' => :'Array<FormulaAndFunctionEventQueryGroupBy>',
72
76
  :'indexes' => :'Array<String>',
73
77
  :'name' => :'String',
74
- :'search' => :'FormulaAndFunctionEventQueryDefinitionSearch'
78
+ :'search' => :'FormulaAndFunctionEventQueryDefinitionSearch',
79
+ :'storage' => :'String'
75
80
  }
76
81
  end
77
82
 
@@ -125,6 +130,10 @@ module DatadogAPIClient::V1
125
130
  if attributes.key?(:'search')
126
131
  self.search = attributes[:'search']
127
132
  end
133
+
134
+ if attributes.key?(:'storage')
135
+ self.storage = attributes[:'storage']
136
+ end
128
137
  end
129
138
 
130
139
  # Check to see if the all the properties in the model are valid
@@ -178,7 +187,8 @@ module DatadogAPIClient::V1
178
187
  group_by == o.group_by &&
179
188
  indexes == o.indexes &&
180
189
  name == o.name &&
181
- search == o.search
190
+ search == o.search &&
191
+ storage == o.storage
182
192
  end
183
193
 
184
194
  # @see the `==` method
@@ -192,7 +202,7 @@ module DatadogAPIClient::V1
192
202
  # @return [Integer] Hash code
193
203
  # @!visibility private
194
204
  def hash
195
- [compute, data_source, group_by, indexes, name, search].hash
205
+ [compute, data_source, group_by, indexes, name, search, storage].hash
196
206
  end
197
207
  end
198
208
  end
@@ -22,6 +22,7 @@ module DatadogAPIClient::V1
22
22
  include BaseEnumModel
23
23
 
24
24
  API_USAGE = "api_usage".freeze
25
+ APM_FARGATE_USAGE = "apm_fargate_usage".freeze
25
26
  APM_HOST_USAGE = "apm_host_usage".freeze
26
27
  APPSEC_USAGE = "appsec_usage".freeze
27
28
  BROWSER_USAGE = "browser_usage".freeze
@@ -34,13 +34,17 @@ module DatadogAPIClient::V1
34
34
  # Widget query.
35
35
  attr_accessor :query_string
36
36
 
37
+ # Option for storage location. Feature in Private Beta.
38
+ attr_accessor :storage
39
+
37
40
  # Attribute mapping from ruby-style variable name to JSON key.
38
41
  # @!visibility private
39
42
  def self.attribute_map
40
43
  {
41
44
  :'data_source' => :'data_source',
42
45
  :'indexes' => :'indexes',
43
- :'query_string' => :'query_string'
46
+ :'query_string' => :'query_string',
47
+ :'storage' => :'storage'
44
48
  }
45
49
  end
46
50
 
@@ -56,7 +60,8 @@ module DatadogAPIClient::V1
56
60
  {
57
61
  :'data_source' => :'ListStreamSource',
58
62
  :'indexes' => :'Array<String>',
59
- :'query_string' => :'String'
63
+ :'query_string' => :'String',
64
+ :'storage' => :'String'
60
65
  }
61
66
  end
62
67
 
@@ -98,6 +103,10 @@ module DatadogAPIClient::V1
98
103
  if attributes.key?(:'query_string')
99
104
  self.query_string = attributes[:'query_string']
100
105
  end
106
+
107
+ if attributes.key?(:'storage')
108
+ self.storage = attributes[:'storage']
109
+ end
101
110
  end
102
111
 
103
112
  # Check to see if the all the properties in the model are valid
@@ -137,7 +146,8 @@ module DatadogAPIClient::V1
137
146
  self.class == o.class &&
138
147
  data_source == o.data_source &&
139
148
  indexes == o.indexes &&
140
- query_string == o.query_string
149
+ query_string == o.query_string &&
150
+ storage == o.storage
141
151
  end
142
152
 
143
153
  # @see the `==` method
@@ -151,7 +161,7 @@ module DatadogAPIClient::V1
151
161
  # @return [Integer] Hash code
152
162
  # @!visibility private
153
163
  def hash
154
- [data_source, indexes, query_string].hash
164
+ [data_source, indexes, query_string, storage].hash
155
165
  end
156
166
  end
157
167
  end
@@ -23,6 +23,8 @@ module DatadogAPIClient::V1
23
23
 
24
24
  API_USAGE = "api_usage".freeze
25
25
  API_PERCENTAGE = "api_percentage".freeze
26
+ APM_FARGATE_USAGE = "apm_fargate_usage".freeze
27
+ APM_FARGATE_PERCENTAGE = "apm_fargate_percentage".freeze
26
28
  APM_HOST_USAGE = "apm_host_usage".freeze
27
29
  APM_HOST_PERCENTAGE = "apm_host_percentage".freeze
28
30
  APPSEC_USAGE = "appsec_usage".freeze