datadog_api_client 2.0.2 → 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.
- checksums.yaml +4 -4
- data/.apigentools-info +6 -6
- data/.generator/poetry.lock +21 -14
- data/.generator/pyproject.toml +1 -1
- data/.generator/schemas/v1/openapi.yaml +840 -908
- data/.generator/schemas/v2/openapi.yaml +1304 -913
- data/.generator/src/generator/formatter.py +1 -1
- data/.generator/src/generator/templates/api_client.j2 +5 -1
- data/.generator/src/generator/templates/configuration.j2 +17 -0
- data/.github/workflows/test.yml +4 -1
- data/.github/workflows/test_integration.yml +5 -0
- data/.pre-commit-config.yaml +1 -1
- data/CHANGELOG.md +49 -0
- data/README.md +11 -0
- data/examples/v1/dashboards/CreateDashboard_1094917386.rb +37 -0
- data/examples/v1/dashboards/CreateDashboard_1307120899.rb +61 -0
- data/examples/v1/dashboards/CreateDashboard_1423904722.rb +38 -0
- data/examples/v1/dashboards/CreateDashboard_2652180930.rb +43 -0
- data/examples/v1/dashboards/CreateDashboard_2850365602.rb +55 -0
- data/examples/v1/dashboards/CreateDashboard_3117424216.rb +33 -0
- data/examples/v1/dashboards/CreateDashboard_3669695268.rb +50 -0
- data/examples/v1/dashboards/CreateDashboard_858397694.rb +41 -0
- data/examples/v1/monitors/ValidateExistingMonitor.rb +1 -0
- data/examples/v1/monitors/ValidateMonitor.rb +1 -0
- data/examples/v1/monitors/ValidateMonitor_4247196452.rb +38 -0
- data/examples/v1/synthetics/CreateGlobalVariable.rb +1 -0
- data/examples/v1/synthetics/CreateGlobalVariable_1068962881.rb +23 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +10 -0
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +6 -0
- data/examples/v1/synthetics/EditGlobalVariable.rb +1 -0
- data/examples/v1/synthetics/UpdateBrowserTest.rb +1 -0
- data/examples/v1/usage-metering/GetDailyCustomReports.rb +0 -3
- data/examples/v1/usage-metering/GetMonthlyCustomReports.rb +0 -3
- data/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.rb +0 -3
- data/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb +0 -3
- data/examples/v1/usage-metering/GetUsageAttribution.rb +0 -3
- data/examples/v2/incidents/ListIncidentAttachments.rb +8 -0
- data/examples/v2/incidents/ListIncidentAttachments_2457735435.rb +11 -0
- data/examples/v2/incidents/UpdateIncidentAttachments.rb +38 -0
- data/examples/v2/incidents/UpdateIncidentAttachments_3881702075.rb +26 -0
- data/examples/v2/metrics/ListActiveMetricConfigurations.rb +5 -0
- data/examples/v2/metrics/ListTagConfigurations.rb +1 -1
- data/examples/v2/metrics/ListTagConfigurations_265033704.rb +8 -0
- data/examples/v2/metrics/{ListTagConfigurations_103226315.rb → ListTagConfigurations_2739018321.rb} +1 -1
- data/examples/v2/metrics/SubmitMetrics_1762007427.rb +23 -0
- data/examples/v2/roles/UpdateRole.rb +13 -0
- data/examples/v2/rum/CreateRUMApplication.rb +15 -0
- data/examples/v2/rum/DeleteRUMApplication.rb +8 -0
- data/examples/v2/rum/GetRUMApplication.rb +8 -0
- data/examples/v2/rum/GetRUMApplications.rb +5 -0
- data/examples/v2/rum/UpdateRUMApplication.rb +16 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule.rb +3 -2
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_461183901.rb +2 -2
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_498211763.rb +2 -2
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_914562040.rb +50 -0
- data/examples/v2/security-monitoring/GetSecurityMonitoringSignal.rb +5 -0
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +2 -1
- data/examples/v2/usage-metering/GetEstimatedCostByOrg.rb +1 -4
- data/examples/v2/usage-metering/GetEstimatedCostByOrg_2734954020.rb +2 -4
- data/examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb +2 -4
- data/examples/v2/usage-metering/GetHistoricalCostByOrg.rb +8 -0
- data/examples/v2/usage-metering/GetHourlyUsage.rb +5 -0
- data/generate.sh +30 -0
- data/lib/datadog_api_client/api_client.rb +5 -1
- data/lib/datadog_api_client/configuration.rb +20 -6
- data/lib/datadog_api_client/inflector.rb +67 -1
- data/lib/datadog_api_client/v1/api/metrics_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +3 -1
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +42 -62
- data/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +14 -2
- data/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb +28 -5
- data/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb +14 -4
- data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +2 -0
- data/lib/datadog_api_client/v1/models/list_stream_query.rb +14 -4
- data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/metric_content_encoding.rb +1 -0
- data/lib/datadog_api_client/v1/models/monitor_options.rb +28 -1
- data/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb +13 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +4 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +41 -1
- data/lib/datadog_api_client/v1/models/on_missing_data_option.rb +33 -0
- data/lib/datadog_api_client/v1/models/search_service_level_objective.rb +111 -0
- data/lib/datadog_api_client/v1/models/search_service_level_objective_attributes.rb +286 -0
- data/lib/datadog_api_client/v1/models/search_service_level_objective_data.rb +134 -0
- data/lib/datadog_api_client/v1/models/search_slo_query.rb +137 -0
- data/lib/datadog_api_client/v1/models/search_slo_response_data_attributes.rb +8 -8
- data/lib/datadog_api_client/v1/models/search_slo_response_links.rb +2 -0
- data/lib/datadog_api_client/v1/models/search_slo_threshold.rb +184 -0
- data/lib/datadog_api_client/v1/models/search_slo_timeframe.rb +28 -0
- data/lib/datadog_api_client/v1/models/slo_creator.rb +131 -0
- data/lib/datadog_api_client/v1/models/slo_list_widget_definition.rb +185 -0
- data/lib/datadog_api_client/v1/models/slo_list_widget_definition_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/slo_list_widget_query.rb +149 -0
- data/lib/datadog_api_client/v1/models/slo_list_widget_request.rb +143 -0
- data/lib/datadog_api_client/v1/models/slo_list_widget_request_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/slo_overall_statuses.rb +174 -0
- data/lib/datadog_api_client/v1/models/slo_raw_error_budget_remaining.rb +121 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_operator.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb +2 -1
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb +155 -0
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb +11 -12
- data/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +31 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_process_status.rb +0 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +15 -1
- data/lib/datadog_api_client/v1/models/topology_map_widget_definition.rb +193 -0
- data/lib/datadog_api_client/v1/models/topology_map_widget_definition_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/topology_query.rb +144 -0
- data/lib/datadog_api_client/v1/models/topology_query_data_source.rb +27 -0
- data/lib/datadog_api_client/v1/models/topology_request.rb +121 -0
- data/lib/datadog_api_client/v1/models/topology_request_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +4 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +4 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb +12 -1
- data/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +31 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +21 -1
- data/lib/datadog_api_client/v1/models/widget_definition.rb +3 -1
- data/lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb +2 -0
- data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/incident_services_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/incident_teams_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/incidents_api.rb +155 -0
- data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/metrics_api.rb +77 -9
- data/lib/datadog_api_client/v2/api/rum_api.rb +329 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +68 -3
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +83 -17
- data/lib/datadog_api_client/v2/models/content_encoding.rb +1 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_attachment_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_attributes.rb +63 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_data.rb +187 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_link_attachment_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb +145 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_link_attributes_attachment_object.rb +143 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attachment_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attributes.rb +145 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_related_object.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_relationships.rb +111 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_update_attributes.rb +63 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_update_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_update_request.rb +127 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_update_response.rb +137 -0
- data/lib/datadog_api_client/v2/models/incident_attachments_postmortem_attributes_attachment_object.rb +143 -0
- data/lib/datadog_api_client/v2/models/incident_attachments_response.rb +136 -0
- data/lib/datadog_api_client/v2/models/incident_attachments_response_included_item.rb +62 -0
- data/lib/datadog_api_client/v2/models/incident_related_object.rb +1 -0
- data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +2 -1
- data/lib/datadog_api_client/v2/models/incident_response_relationships.rb +14 -14
- data/lib/datadog_api_client/v2/models/metric_active_configuration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/metric_content_encoding.rb +2 -0
- data/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations.rb +133 -0
- data/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations_response.rb +111 -0
- data/lib/datadog_api_client/v2/models/metric_suggested_tags_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_attachment.rb +124 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_attachment_data.rb +145 -0
- data/lib/datadog_api_client/v2/models/role_update_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/rum_application.rb +166 -0
- data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +279 -0
- data/lib/datadog_api_client/v2/models/rum_application_create.rb +145 -0
- data/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb +132 -0
- data/lib/datadog_api_client/v2/models/rum_application_create_request.rb +122 -0
- data/lib/datadog_api_client/v2/models/rum_application_create_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_application_response.rb +111 -0
- data/lib/datadog_api_client/v2/models/rum_application_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_application_update.rb +155 -0
- data/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb +121 -0
- data/lib/datadog_api_client/v2/models/rum_application_update_request.rb +122 -0
- data/lib/datadog_api_client/v2/models/rum_application_update_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_applications_response.rb +113 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +36 -248
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +36 -151
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_query_aggregation.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb +37 -253
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +275 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_query.rb +187 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +279 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +275 -0
- data/lib/datadog_api_client/v2/models/{security_monitoring_rule_query_create.rb → security_monitoring_standard_rule_query.rb} +3 -3
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +279 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +97 -6
- data/Makefile +0 -7
- data/examples/v2/metrics/ListTagConfigurations_1799362914.rb +0 -8
|
@@ -34,6 +34,8 @@ module DatadogAPIClient::V1
|
|
|
34
34
|
# Get the list of available daily custom reports.
|
|
35
35
|
#
|
|
36
36
|
# Get daily custom reports.
|
|
37
|
+
# **Note:** This endpoint will be fully deprecated on December 1, 2022.
|
|
38
|
+
# Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
|
|
37
39
|
#
|
|
38
40
|
# @param opts [Hash] the optional parameters
|
|
39
41
|
# @option opts [Integer] :page_size The number of files to return in the response. `[default=60]`.
|
|
@@ -42,12 +44,6 @@ module DatadogAPIClient::V1
|
|
|
42
44
|
# @option opts [UsageSort] :sort The field to sort by: `[computed_on, size, start_date, end_date]`.
|
|
43
45
|
# @return [Array<(UsageCustomReportsResponse, Integer, Hash)>] UsageCustomReportsResponse data, response status code and response headers
|
|
44
46
|
def get_daily_custom_reports_with_http_info(opts = {})
|
|
45
|
-
unstable_enabled = @api_client.config.unstable_operations["v1.get_daily_custom_reports".to_sym]
|
|
46
|
-
if unstable_enabled
|
|
47
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v1.get_daily_custom_reports")
|
|
48
|
-
else
|
|
49
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v1.get_daily_custom_reports"))
|
|
50
|
-
end
|
|
51
47
|
|
|
52
48
|
if @api_client.config.debugging
|
|
53
49
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_daily_custom_reports ...'
|
|
@@ -153,7 +149,7 @@ module DatadogAPIClient::V1
|
|
|
153
149
|
fail ArgumentError, "Missing the required parameter 'usage_type' when calling UsageMeteringAPI.get_hourly_usage_attribution"
|
|
154
150
|
end
|
|
155
151
|
# verify enum value
|
|
156
|
-
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_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']
|
|
157
153
|
if @api_client.config.client_side_validation && !allowable_values.include?(usage_type)
|
|
158
154
|
fail ArgumentError, "invalid value for \"usage_type\", must be one of #{allowable_values}"
|
|
159
155
|
end
|
|
@@ -215,7 +211,7 @@ module DatadogAPIClient::V1
|
|
|
215
211
|
# Get hourly usage for incident management.
|
|
216
212
|
#
|
|
217
213
|
# Get hourly usage for incident management.
|
|
218
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
214
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
219
215
|
#
|
|
220
216
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
221
217
|
# @param opts [Hash] the optional parameters
|
|
@@ -284,7 +280,7 @@ module DatadogAPIClient::V1
|
|
|
284
280
|
# Get hourly usage for ingested spans.
|
|
285
281
|
#
|
|
286
282
|
# Get hourly usage for ingested spans.
|
|
287
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
283
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
288
284
|
#
|
|
289
285
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
290
286
|
# @param opts [Hash] the optional parameters
|
|
@@ -353,6 +349,8 @@ module DatadogAPIClient::V1
|
|
|
353
349
|
# Get the list of available monthly custom reports.
|
|
354
350
|
#
|
|
355
351
|
# Get monthly custom reports.
|
|
352
|
+
# **Note:** This endpoint will be fully deprecated on December 1, 2022.
|
|
353
|
+
# Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
|
|
356
354
|
#
|
|
357
355
|
# @param opts [Hash] the optional parameters
|
|
358
356
|
# @option opts [Integer] :page_size The number of files to return in the response `[default=60].`
|
|
@@ -361,12 +359,6 @@ module DatadogAPIClient::V1
|
|
|
361
359
|
# @option opts [UsageSort] :sort The field to sort by: `[computed_on, size, start_date, end_date]`.
|
|
362
360
|
# @return [Array<(UsageCustomReportsResponse, Integer, Hash)>] UsageCustomReportsResponse data, response status code and response headers
|
|
363
361
|
def get_monthly_custom_reports_with_http_info(opts = {})
|
|
364
|
-
unstable_enabled = @api_client.config.unstable_operations["v1.get_monthly_custom_reports".to_sym]
|
|
365
|
-
if unstable_enabled
|
|
366
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v1.get_monthly_custom_reports")
|
|
367
|
-
else
|
|
368
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v1.get_monthly_custom_reports"))
|
|
369
|
-
end
|
|
370
362
|
|
|
371
363
|
if @api_client.config.debugging
|
|
372
364
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_monthly_custom_reports ...'
|
|
@@ -474,7 +466,7 @@ module DatadogAPIClient::V1
|
|
|
474
466
|
fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_monthly_usage_attribution"
|
|
475
467
|
end
|
|
476
468
|
# verify enum value
|
|
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_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', '*']
|
|
478
470
|
if @api_client.config.client_side_validation && !allowable_values.include?(fields)
|
|
479
471
|
fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}"
|
|
480
472
|
end
|
|
@@ -482,7 +474,7 @@ module DatadogAPIClient::V1
|
|
|
482
474
|
if @api_client.config.client_side_validation && opts[:'sort_direction'] && !allowable_values.include?(opts[:'sort_direction'])
|
|
483
475
|
fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{allowable_values}"
|
|
484
476
|
end
|
|
485
|
-
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_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', '*']
|
|
486
478
|
if @api_client.config.client_side_validation && opts[:'sort_name'] && !allowable_values.include?(opts[:'sort_name'])
|
|
487
479
|
fail ArgumentError, "invalid value for \"sort_name\", must be one of #{allowable_values}"
|
|
488
480
|
end
|
|
@@ -546,17 +538,13 @@ module DatadogAPIClient::V1
|
|
|
546
538
|
# Get specified daily custom reports.
|
|
547
539
|
#
|
|
548
540
|
# Get specified daily custom reports.
|
|
541
|
+
# **Note:** This endpoint will be fully deprecated on December 1, 2022.
|
|
542
|
+
# Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
|
|
549
543
|
#
|
|
550
544
|
# @param report_id [String] Date of the report in the format `YYYY-MM-DD`.
|
|
551
545
|
# @param opts [Hash] the optional parameters
|
|
552
546
|
# @return [Array<(UsageSpecifiedCustomReportsResponse, Integer, Hash)>] UsageSpecifiedCustomReportsResponse data, response status code and response headers
|
|
553
547
|
def get_specified_daily_custom_reports_with_http_info(report_id, opts = {})
|
|
554
|
-
unstable_enabled = @api_client.config.unstable_operations["v1.get_specified_daily_custom_reports".to_sym]
|
|
555
|
-
if unstable_enabled
|
|
556
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v1.get_specified_daily_custom_reports")
|
|
557
|
-
else
|
|
558
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v1.get_specified_daily_custom_reports"))
|
|
559
|
-
end
|
|
560
548
|
|
|
561
549
|
if @api_client.config.debugging
|
|
562
550
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_specified_daily_custom_reports ...'
|
|
@@ -617,17 +605,13 @@ module DatadogAPIClient::V1
|
|
|
617
605
|
# Get specified monthly custom reports.
|
|
618
606
|
#
|
|
619
607
|
# Get specified monthly custom reports.
|
|
608
|
+
# **Note:** This endpoint will be fully deprecated on December 1, 2022.
|
|
609
|
+
# Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
|
|
620
610
|
#
|
|
621
611
|
# @param report_id [String] Date of the report in the format `YYYY-MM-DD`.
|
|
622
612
|
# @param opts [Hash] the optional parameters
|
|
623
613
|
# @return [Array<(UsageSpecifiedCustomReportsResponse, Integer, Hash)>] UsageSpecifiedCustomReportsResponse data, response status code and response headers
|
|
624
614
|
def get_specified_monthly_custom_reports_with_http_info(report_id, opts = {})
|
|
625
|
-
unstable_enabled = @api_client.config.unstable_operations["v1.get_specified_monthly_custom_reports".to_sym]
|
|
626
|
-
if unstable_enabled
|
|
627
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v1.get_specified_monthly_custom_reports")
|
|
628
|
-
else
|
|
629
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v1.get_specified_monthly_custom_reports"))
|
|
630
|
-
end
|
|
631
615
|
|
|
632
616
|
if @api_client.config.debugging
|
|
633
617
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_specified_monthly_custom_reports ...'
|
|
@@ -688,7 +672,7 @@ module DatadogAPIClient::V1
|
|
|
688
672
|
# Get hourly usage for analyzed logs.
|
|
689
673
|
#
|
|
690
674
|
# Get hourly usage for analyzed logs (Security Monitoring).
|
|
691
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
675
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
692
676
|
#
|
|
693
677
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
694
678
|
# @param opts [Hash] the optional parameters
|
|
@@ -757,6 +741,8 @@ module DatadogAPIClient::V1
|
|
|
757
741
|
# Get usage attribution.
|
|
758
742
|
#
|
|
759
743
|
# Get usage attribution.
|
|
744
|
+
# **Note:** This endpoint will be fully deprecated on December 1, 2022.
|
|
745
|
+
# Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
|
|
760
746
|
#
|
|
761
747
|
# @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago.
|
|
762
748
|
# @param fields [UsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types.
|
|
@@ -769,12 +755,6 @@ module DatadogAPIClient::V1
|
|
|
769
755
|
# @option opts [Integer] :limit Maximum number of records to be returned.
|
|
770
756
|
# @return [Array<(UsageAttributionResponse, Integer, Hash)>] UsageAttributionResponse data, response status code and response headers
|
|
771
757
|
def get_usage_attribution_with_http_info(start_month, fields, opts = {})
|
|
772
|
-
unstable_enabled = @api_client.config.unstable_operations["v1.get_usage_attribution".to_sym]
|
|
773
|
-
if unstable_enabled
|
|
774
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v1.get_usage_attribution")
|
|
775
|
-
else
|
|
776
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v1.get_usage_attribution"))
|
|
777
|
-
end
|
|
778
758
|
|
|
779
759
|
if @api_client.config.debugging
|
|
780
760
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_attribution ...'
|
|
@@ -788,7 +768,7 @@ module DatadogAPIClient::V1
|
|
|
788
768
|
fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_usage_attribution"
|
|
789
769
|
end
|
|
790
770
|
# verify enum value
|
|
791
|
-
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', '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', '*']
|
|
792
772
|
if @api_client.config.client_side_validation && !allowable_values.include?(fields)
|
|
793
773
|
fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}"
|
|
794
774
|
end
|
|
@@ -796,7 +776,7 @@ module DatadogAPIClient::V1
|
|
|
796
776
|
if @api_client.config.client_side_validation && opts[:'sort_direction'] && !allowable_values.include?(opts[:'sort_direction'])
|
|
797
777
|
fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{allowable_values}"
|
|
798
778
|
end
|
|
799
|
-
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_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']
|
|
800
780
|
if @api_client.config.client_side_validation && opts[:'sort_name'] && !allowable_values.include?(opts[:'sort_name'])
|
|
801
781
|
fail ArgumentError, "invalid value for \"sort_name\", must be one of #{allowable_values}"
|
|
802
782
|
end
|
|
@@ -860,7 +840,7 @@ module DatadogAPIClient::V1
|
|
|
860
840
|
# Get hourly usage for audit logs.
|
|
861
841
|
#
|
|
862
842
|
# Get hourly usage for audit logs.
|
|
863
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
843
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
864
844
|
#
|
|
865
845
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
866
846
|
# @param opts [Hash] the optional parameters
|
|
@@ -991,7 +971,7 @@ module DatadogAPIClient::V1
|
|
|
991
971
|
# Get hourly usage for CI visibility.
|
|
992
972
|
#
|
|
993
973
|
# Get hourly usage for CI visibility (tests, pipeline, and spans).
|
|
994
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
974
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
995
975
|
#
|
|
996
976
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
997
977
|
# @param opts [Hash] the optional parameters
|
|
@@ -1060,7 +1040,7 @@ module DatadogAPIClient::V1
|
|
|
1060
1040
|
# Get hourly usage for CSPM.
|
|
1061
1041
|
#
|
|
1062
1042
|
# Get hourly usage for cloud security posture management (CSPM).
|
|
1063
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
1043
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1064
1044
|
#
|
|
1065
1045
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
1066
1046
|
# @param opts [Hash] the optional parameters
|
|
@@ -1129,7 +1109,7 @@ module DatadogAPIClient::V1
|
|
|
1129
1109
|
# Get hourly usage for cloud workload security.
|
|
1130
1110
|
#
|
|
1131
1111
|
# Get hourly usage for cloud workload security.
|
|
1132
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
1112
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1133
1113
|
#
|
|
1134
1114
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
1135
1115
|
# @param opts [Hash] the optional parameters
|
|
@@ -1198,7 +1178,7 @@ module DatadogAPIClient::V1
|
|
|
1198
1178
|
# Get hourly usage for database monitoring.
|
|
1199
1179
|
#
|
|
1200
1180
|
# Get hourly usage for database monitoring
|
|
1201
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
1181
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1202
1182
|
#
|
|
1203
1183
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
1204
1184
|
# @param opts [Hash] the optional parameters
|
|
@@ -1267,7 +1247,7 @@ module DatadogAPIClient::V1
|
|
|
1267
1247
|
# Get hourly usage for Fargate.
|
|
1268
1248
|
#
|
|
1269
1249
|
# Get hourly usage for [Fargate](https://docs.datadoghq.com/integrations/ecs_fargate/).
|
|
1270
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
1250
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1271
1251
|
#
|
|
1272
1252
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
1273
1253
|
# @param opts [Hash] the optional parameters
|
|
@@ -1336,7 +1316,7 @@ module DatadogAPIClient::V1
|
|
|
1336
1316
|
# Get hourly usage for hosts and containers.
|
|
1337
1317
|
#
|
|
1338
1318
|
# Get hourly usage for hosts and containers.
|
|
1339
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
1319
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1340
1320
|
#
|
|
1341
1321
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
1342
1322
|
# @param opts [Hash] the optional parameters
|
|
@@ -1405,7 +1385,7 @@ module DatadogAPIClient::V1
|
|
|
1405
1385
|
# Get hourly usage for indexed spans.
|
|
1406
1386
|
#
|
|
1407
1387
|
# Get hourly usage for indexed spans.
|
|
1408
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
1388
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1409
1389
|
#
|
|
1410
1390
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
1411
1391
|
# @param opts [Hash] the optional parameters
|
|
@@ -1474,7 +1454,7 @@ module DatadogAPIClient::V1
|
|
|
1474
1454
|
# Get hourly usage for IoT.
|
|
1475
1455
|
#
|
|
1476
1456
|
# Get hourly usage for IoT.
|
|
1477
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
1457
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1478
1458
|
#
|
|
1479
1459
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
1480
1460
|
# @param opts [Hash] the optional parameters
|
|
@@ -1543,7 +1523,7 @@ module DatadogAPIClient::V1
|
|
|
1543
1523
|
# Get hourly usage for lambda.
|
|
1544
1524
|
#
|
|
1545
1525
|
# Get hourly usage for lambda.
|
|
1546
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
1526
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1547
1527
|
#
|
|
1548
1528
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
1549
1529
|
# @param opts [Hash] the optional parameters
|
|
@@ -1612,7 +1592,7 @@ module DatadogAPIClient::V1
|
|
|
1612
1592
|
# Get hourly usage for logs.
|
|
1613
1593
|
#
|
|
1614
1594
|
# Get hourly usage for logs.
|
|
1615
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
1595
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1616
1596
|
#
|
|
1617
1597
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
1618
1598
|
# @param opts [Hash] the optional parameters
|
|
@@ -1751,7 +1731,7 @@ module DatadogAPIClient::V1
|
|
|
1751
1731
|
# Get hourly logs usage by retention.
|
|
1752
1732
|
#
|
|
1753
1733
|
# Get hourly usage for indexed logs by retention period.
|
|
1754
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
1734
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1755
1735
|
#
|
|
1756
1736
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
1757
1737
|
# @param opts [Hash] the optional parameters
|
|
@@ -1820,7 +1800,7 @@ module DatadogAPIClient::V1
|
|
|
1820
1800
|
# get hourly usage for network flows.
|
|
1821
1801
|
#
|
|
1822
1802
|
# Get hourly usage for network flows.
|
|
1823
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
1803
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1824
1804
|
#
|
|
1825
1805
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
1826
1806
|
# @param opts [Hash] the optional parameters
|
|
@@ -1889,7 +1869,7 @@ module DatadogAPIClient::V1
|
|
|
1889
1869
|
# Get hourly usage for network hosts.
|
|
1890
1870
|
#
|
|
1891
1871
|
# Get hourly usage for network hosts.
|
|
1892
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
1872
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1893
1873
|
#
|
|
1894
1874
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
1895
1875
|
# @param opts [Hash] the optional parameters
|
|
@@ -1958,7 +1938,7 @@ module DatadogAPIClient::V1
|
|
|
1958
1938
|
# Get hourly usage for online archive.
|
|
1959
1939
|
#
|
|
1960
1940
|
# Get hourly usage for online archive.
|
|
1961
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
1941
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1962
1942
|
#
|
|
1963
1943
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
1964
1944
|
# @param opts [Hash] the optional parameters
|
|
@@ -2027,7 +2007,7 @@ module DatadogAPIClient::V1
|
|
|
2027
2007
|
# Get hourly usage for profiled hosts.
|
|
2028
2008
|
#
|
|
2029
2009
|
# Get hourly usage for profiled hosts.
|
|
2030
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
2010
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
2031
2011
|
#
|
|
2032
2012
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
2033
2013
|
# @param opts [Hash] the optional parameters
|
|
@@ -2096,7 +2076,7 @@ module DatadogAPIClient::V1
|
|
|
2096
2076
|
# Get hourly usage for RUM sessions.
|
|
2097
2077
|
#
|
|
2098
2078
|
# Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) Sessions.
|
|
2099
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
2079
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
2100
2080
|
#
|
|
2101
2081
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
2102
2082
|
# @param opts [Hash] the optional parameters
|
|
@@ -2167,7 +2147,7 @@ module DatadogAPIClient::V1
|
|
|
2167
2147
|
# Get hourly usage for RUM units.
|
|
2168
2148
|
#
|
|
2169
2149
|
# Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) Units.
|
|
2170
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
2150
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
2171
2151
|
#
|
|
2172
2152
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
2173
2153
|
# @param opts [Hash] the optional parameters
|
|
@@ -2236,7 +2216,7 @@ module DatadogAPIClient::V1
|
|
|
2236
2216
|
# Get hourly usage for sensitive data scanner.
|
|
2237
2217
|
#
|
|
2238
2218
|
# Get hourly usage for sensitive data scanner.
|
|
2239
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
2219
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
2240
2220
|
#
|
|
2241
2221
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
2242
2222
|
# @param opts [Hash] the optional parameters
|
|
@@ -2305,7 +2285,7 @@ module DatadogAPIClient::V1
|
|
|
2305
2285
|
# Get hourly usage for SNMP devices.
|
|
2306
2286
|
#
|
|
2307
2287
|
# Get hourly usage for SNMP devices.
|
|
2308
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
2288
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
2309
2289
|
#
|
|
2310
2290
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
2311
2291
|
# @param opts [Hash] the optional parameters
|
|
@@ -2444,7 +2424,7 @@ module DatadogAPIClient::V1
|
|
|
2444
2424
|
# Get hourly usage for synthetics checks.
|
|
2445
2425
|
#
|
|
2446
2426
|
# Get hourly usage for [synthetics checks](https://docs.datadoghq.com/synthetics/).
|
|
2447
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
2427
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
2448
2428
|
#
|
|
2449
2429
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
2450
2430
|
# @param opts [Hash] the optional parameters
|
|
@@ -2513,7 +2493,7 @@ module DatadogAPIClient::V1
|
|
|
2513
2493
|
# Get hourly usage for synthetics API checks.
|
|
2514
2494
|
#
|
|
2515
2495
|
# Get hourly usage for [synthetics API checks](https://docs.datadoghq.com/synthetics/).
|
|
2516
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
2496
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
2517
2497
|
#
|
|
2518
2498
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
2519
2499
|
# @param opts [Hash] the optional parameters
|
|
@@ -2582,7 +2562,7 @@ module DatadogAPIClient::V1
|
|
|
2582
2562
|
# Get hourly usage for synthetics browser checks.
|
|
2583
2563
|
#
|
|
2584
2564
|
# Get hourly usage for synthetics browser checks.
|
|
2585
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
2565
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
2586
2566
|
#
|
|
2587
2567
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
2588
2568
|
# @param opts [Hash] the optional parameters
|
|
@@ -2651,7 +2631,7 @@ module DatadogAPIClient::V1
|
|
|
2651
2631
|
# Get hourly usage for custom metrics.
|
|
2652
2632
|
#
|
|
2653
2633
|
# Get hourly usage for [custom metrics](https://docs.datadoghq.com/developers/metrics/custom_metrics/).
|
|
2654
|
-
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
2634
|
+
# **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
2655
2635
|
#
|
|
2656
2636
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
2657
2637
|
# @param opts [Hash] the optional parameters
|
|
@@ -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
|