datadog_api_client 2.48.0 → 2.49.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/.generator/schemas/v1/openapi.yaml +424 -44
- data/.generator/schemas/v2/openapi.yaml +2290 -500
- data/CHANGELOG.md +25 -0
- data/examples/v1/dashboards/CreateDashboard_1093147852.rb +66 -0
- data/examples/v1/dashboards/CreateDashboard_1442588603.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1617893815.rb +61 -0
- data/examples/v1/dashboards/CreateDashboard_1712853070.rb +66 -0
- data/examples/v1/dashboards/CreateDashboard_2345541687.rb +65 -0
- data/examples/v1/dashboards/CreateDashboard_252716965.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2617251399.rb +66 -0
- data/examples/v1/dashboards/CreateDashboard_2823363212.rb +55 -0
- data/examples/v1/dashboards/CreateDashboard_3882428227.rb +1 -1
- data/examples/v1/monitors/CreateMonitor_3626832481.rb +33 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_2106135939.rb +49 -0
- data/examples/v1/tags/GetHostTags.rb +1 -1
- data/examples/v1/tags/ListHostTags.rb +1 -1
- data/examples/v2/aws-integration/CreateAWSAccount.rb +0 -11
- data/examples/v2/aws-integration/CreateAWSAccount_1716720881.rb +0 -11
- data/examples/v2/aws-integration/UpdateAWSAccount.rb +0 -11
- data/examples/v2/observability-pipelines/CreatePipeline.rb +1 -1
- data/examples/v2/observability-pipelines/UpdatePipeline.rb +1 -1
- data/examples/v2/observability-pipelines/ValidatePipeline.rb +1 -1
- data/examples/v2/reference-tables/UpdateReferenceTable.rb +0 -1
- data/examples/v2/reference-tables/UpsertRows.rb +1 -3
- data/examples/v2/security-monitoring/CreateSecurityMonitoringCriticalAsset.rb +20 -0
- data/examples/v2/security-monitoring/DeleteSecurityMonitoringCriticalAsset.rb +8 -0
- data/examples/v2/security-monitoring/GetCriticalAssetsAffectingRule.rb +8 -0
- data/examples/v2/security-monitoring/GetSecurityMonitoringCriticalAsset.rb +8 -0
- data/examples/v2/security-monitoring/ListSecurityFindings.rb +5 -0
- data/examples/v2/security-monitoring/ListSecurityFindings_2925663885.rb +8 -0
- data/examples/v2/security-monitoring/ListSecurityMonitoringCriticalAssets.rb +5 -0
- data/examples/v2/security-monitoring/SearchSecurityFindings.rb +13 -0
- data/examples/v2/security-monitoring/SearchSecurityFindings_3678541639.rb +16 -0
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringCriticalAsset.rb +24 -0
- data/examples/v2/spa/GetSPARecommendations.rb +1 -1
- data/examples/v2/spa/GetSPARecommendationsWithShard.rb +8 -0
- data/lib/datadog_api_client/configuration.rb +7 -6
- data/lib/datadog_api_client/inflector.rb +79 -6
- data/lib/datadog_api_client/v1/api/tags_api.rb +17 -17
- data/lib/datadog_api_client/v1/models/bar_chart_widget_definition.rb +216 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_definition_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_display.rb +63 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_flat.rb +123 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_flat_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_legend.rb +28 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_request.rb +261 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_scaling.rb +27 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_stacked.rb +133 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_stacked_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_style.rb +125 -0
- data/lib/datadog_api_client/v1/models/distribution_widget_request.rb +36 -2
- data/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb +29 -1
- data/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb +23 -1
- data/lib/datadog_api_client/v1/models/heat_map_widget_request.rb +21 -1
- data/lib/datadog_api_client/v1/models/heat_map_widget_x_axis.rb +107 -0
- data/lib/datadog_api_client/v1/models/host_tags.rb +2 -2
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_data_quality_data_source.rb +26 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_data_quality_model_type_override.rb +28 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_data_quality_monitor_options.rb +147 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_data_quality_query_definition.rb +232 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb +2 -1
- data/lib/datadog_api_client/v1/models/monitor_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/split_graph_source_widget_definition.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_api_step.rb +2 -1
- data/lib/datadog_api_client/v1/models/synthetics_api_subtest_step.rb +236 -0
- data/lib/datadog_api_client/v1/models/synthetics_api_subtest_step_subtype.rb +26 -0
- data/lib/datadog_api_client/v1/models/tag_to_hosts.rb +2 -2
- data/lib/datadog_api_client/v1/models/widget_definition.rb +1 -0
- data/lib/datadog_api_client/v1/models/{distribution_widget_histogram_request_type.rb → widget_histogram_request_type.rb} +1 -1
- data/lib/datadog_api_client/v1/models/widget_marker.rb +3 -1
- data/lib/datadog_api_client/v2/api/events_api.rb +0 -2
- data/lib/datadog_api_client/v2/api/fleet_automation_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/observability_pipelines_api.rb +6 -6
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +597 -0
- data/lib/datadog_api_client/v2/api/spa_api.rb +86 -11
- data/lib/datadog_api_client/v2/models/aws_account_create_request_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/aws_account_response_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/aws_account_update_request_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/azure_storage_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes_value.rb +63 -0
- data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +23 -1
- data/lib/datadog_api_client/v2/models/list_security_findings_response.rb +127 -0
- data/lib/datadog_api_client/v2/models/microsoft_sentinel_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor.rb +4 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_hostname_processor.rb +198 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_hostname_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_data_firehose_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_open_search_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_security_lake_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination.rb +169 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config.rb +25 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +17 -13
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_pipeline_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_item.rb +14 -10
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_source_item.rb +11 -10
- data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_agent_source.rb +4 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_logs_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_metrics_destination.rb +169 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_metrics_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor.rb +4 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_elasticsearch_destination.rb +13 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_elasticsearch_destination_data_stream.rb +125 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_processor.rb +15 -3
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_reference_table.rb +156 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor.rb +6 -4
- data/lib/datadog_api_client/v2/models/observability_pipeline_fluent_bit_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_fluentd_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_generate_metrics_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination.rb +220 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_auth_strategy.rb +28 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_compression.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_compression_algorithm.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_encoding.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source_auth_strategy.rb +1 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_server_source.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination.rb +361 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination_compression.rb +30 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination_encoding.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{observability_pipeline_kafka_source_librdkafka_option.rb → observability_pipeline_kafka_librdkafka_option.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{observability_pipeline_kafka_source_sasl.rb → observability_pipeline_kafka_sasl.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{observability_pipeline_pipeline_kafka_source_sasl_mechanism.rb → observability_pipeline_kafka_sasl_mechanism.rb} +1 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_source.rb +5 -3
- data/lib/datadog_api_client/v2/models/observability_pipeline_logstash_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor.rb +229 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor_rule.rb +188 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor_rule_action.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor_rule_mode.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_new_relic_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_open_search_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_opentelemetry_source.rb +176 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_opentelemetry_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_xml_processor.rb +300 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_xml_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +21 -6
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor_overflow_action.rb +1 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor.rb +4 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_rsyslog_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_rsyslog_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sample_processor.rb +35 -20
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor.rb +4 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_custom_pattern_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_library_pattern_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sentinel_one_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_split_array_processor.rb +229 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_split_array_processor_array_config.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_split_array_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_destination.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_tcp_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_throttle_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/recommendation_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_findings_attributes.rb +127 -0
- data/lib/datadog_api_client/v2/models/security_findings_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/security_findings_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_findings_links.rb +105 -0
- data/lib/datadog_api_client/v2/models/{data_export_config.rb → security_findings_meta.rb} +32 -42
- data/lib/datadog_api_client/v2/models/security_findings_page.rb +105 -0
- data/lib/datadog_api_client/v2/models/security_findings_search_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/security_findings_search_request_data.rb +105 -0
- data/lib/datadog_api_client/v2/models/security_findings_search_request_data_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/security_findings_search_request_page.rb +137 -0
- data/lib/datadog_api_client/v2/models/security_findings_sort.rb +27 -0
- data/lib/datadog_api_client/v2/models/security_findings_status.rb +27 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset.rb +125 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_attributes.rb +235 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_create_attributes.rb +187 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_severity.rb +32 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_update_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_update_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/{awsccm_config.rb → security_monitoring_critical_assets_response.rb} +12 -12
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +99 -7
|
@@ -26,20 +26,20 @@ module DatadogAPIClient::V2
|
|
|
26
26
|
# Get SPA Recommendations.
|
|
27
27
|
#
|
|
28
28
|
# @see #get_spa_recommendations_with_http_info
|
|
29
|
-
def get_spa_recommendations(
|
|
30
|
-
data, _status_code, _headers = get_spa_recommendations_with_http_info(
|
|
29
|
+
def get_spa_recommendations(service, opts = {})
|
|
30
|
+
data, _status_code, _headers = get_spa_recommendations_with_http_info(service, opts)
|
|
31
31
|
data
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
# Get SPA Recommendations.
|
|
35
35
|
#
|
|
36
|
-
# Retrieve resource recommendations for a Spark job. The caller (Spark Gateway or DJM UI) provides a service name and
|
|
36
|
+
# This endpoint is currently experimental and restricted to Datadog internal use only. Retrieve resource recommendations for a Spark job. The caller (Spark Gateway or DJM UI) provides a service name and SPA returns structured recommendations for driver and executor resources. The version with a shard should be preferred, where possible, as it gives more accurate results.
|
|
37
37
|
#
|
|
38
|
-
# @param
|
|
39
|
-
# @param service [String] The service name for a spark job
|
|
38
|
+
# @param service [String] The service name for a spark job.
|
|
40
39
|
# @param opts [Hash] the optional parameters
|
|
40
|
+
# @option opts [String] :bypass_cache The recommendation service should not use its metrics cache.
|
|
41
41
|
# @return [Array<(RecommendationDocument, Integer, Hash)>] RecommendationDocument data, response status code and response headers
|
|
42
|
-
def get_spa_recommendations_with_http_info(
|
|
42
|
+
def get_spa_recommendations_with_http_info(service, opts = {})
|
|
43
43
|
unstable_enabled = @api_client.config.unstable_operations["v2.get_spa_recommendations".to_sym]
|
|
44
44
|
if unstable_enabled
|
|
45
45
|
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_spa_recommendations")
|
|
@@ -50,19 +50,94 @@ module DatadogAPIClient::V2
|
|
|
50
50
|
if @api_client.config.debugging
|
|
51
51
|
@api_client.config.logger.debug 'Calling API: SpaAPI.get_spa_recommendations ...'
|
|
52
52
|
end
|
|
53
|
+
# verify the required parameter 'service' is set
|
|
54
|
+
if @api_client.config.client_side_validation && service.nil?
|
|
55
|
+
fail ArgumentError, "Missing the required parameter 'service' when calling SpaAPI.get_spa_recommendations"
|
|
56
|
+
end
|
|
57
|
+
# resource path
|
|
58
|
+
local_var_path = '/api/v2/spa/recommendations/{service}'.sub('{service}', CGI.escape(service.to_s).gsub('%2F', '/'))
|
|
59
|
+
|
|
60
|
+
# query parameters
|
|
61
|
+
query_params = opts[:query_params] || {}
|
|
62
|
+
query_params[:'bypass_cache'] = opts[:'bypass_cache'] if !opts[:'bypass_cache'].nil?
|
|
63
|
+
|
|
64
|
+
# header parameters
|
|
65
|
+
header_params = opts[:header_params] || {}
|
|
66
|
+
# HTTP header 'Accept' (if needed)
|
|
67
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
68
|
+
|
|
69
|
+
# form parameters
|
|
70
|
+
form_params = opts[:form_params] || {}
|
|
71
|
+
|
|
72
|
+
# http body (model)
|
|
73
|
+
post_body = opts[:debug_body]
|
|
74
|
+
|
|
75
|
+
# return_type
|
|
76
|
+
return_type = opts[:debug_return_type] || 'RecommendationDocument'
|
|
77
|
+
|
|
78
|
+
# auth_names
|
|
79
|
+
auth_names = opts[:debug_auth_names] || [:AuthZ]
|
|
80
|
+
|
|
81
|
+
new_options = opts.merge(
|
|
82
|
+
:operation => :get_spa_recommendations,
|
|
83
|
+
:header_params => header_params,
|
|
84
|
+
:query_params => query_params,
|
|
85
|
+
:form_params => form_params,
|
|
86
|
+
:body => post_body,
|
|
87
|
+
:auth_names => auth_names,
|
|
88
|
+
:return_type => return_type,
|
|
89
|
+
:api_version => "V2"
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
93
|
+
if @api_client.config.debugging
|
|
94
|
+
@api_client.config.logger.debug "API called: SpaAPI#get_spa_recommendations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
95
|
+
end
|
|
96
|
+
return data, status_code, headers
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Get SPA Recommendations with a shard parameter.
|
|
100
|
+
#
|
|
101
|
+
# @see #get_spa_recommendations_with_shard_with_http_info
|
|
102
|
+
def get_spa_recommendations_with_shard(shard, service, opts = {})
|
|
103
|
+
data, _status_code, _headers = get_spa_recommendations_with_shard_with_http_info(shard, service, opts)
|
|
104
|
+
data
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Get SPA Recommendations with a shard parameter.
|
|
108
|
+
#
|
|
109
|
+
# This endpoint is currently experimental and restricted to Datadog internal use only. Retrieve resource recommendations for a Spark job. The caller (Spark Gateway or DJM UI) provides a service name and shard identifier, and SPA returns structured recommendations for driver and executor resources.
|
|
110
|
+
#
|
|
111
|
+
# @param shard [String] The shard tag for a spark job, which differentiates jobs within the same service that have different resource needs
|
|
112
|
+
# @param service [String] The service name for a spark job
|
|
113
|
+
# @param opts [Hash] the optional parameters
|
|
114
|
+
# @option opts [String] :bypass_cache The recommendation service should not use its metrics cache.
|
|
115
|
+
# @return [Array<(RecommendationDocument, Integer, Hash)>] RecommendationDocument data, response status code and response headers
|
|
116
|
+
def get_spa_recommendations_with_shard_with_http_info(shard, service, opts = {})
|
|
117
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.get_spa_recommendations_with_shard".to_sym]
|
|
118
|
+
if unstable_enabled
|
|
119
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_spa_recommendations_with_shard")
|
|
120
|
+
else
|
|
121
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_spa_recommendations_with_shard"))
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if @api_client.config.debugging
|
|
125
|
+
@api_client.config.logger.debug 'Calling API: SpaAPI.get_spa_recommendations_with_shard ...'
|
|
126
|
+
end
|
|
53
127
|
# verify the required parameter 'shard' is set
|
|
54
128
|
if @api_client.config.client_side_validation && shard.nil?
|
|
55
|
-
fail ArgumentError, "Missing the required parameter 'shard' when calling SpaAPI.
|
|
129
|
+
fail ArgumentError, "Missing the required parameter 'shard' when calling SpaAPI.get_spa_recommendations_with_shard"
|
|
56
130
|
end
|
|
57
131
|
# verify the required parameter 'service' is set
|
|
58
132
|
if @api_client.config.client_side_validation && service.nil?
|
|
59
|
-
fail ArgumentError, "Missing the required parameter 'service' when calling SpaAPI.
|
|
133
|
+
fail ArgumentError, "Missing the required parameter 'service' when calling SpaAPI.get_spa_recommendations_with_shard"
|
|
60
134
|
end
|
|
61
135
|
# resource path
|
|
62
136
|
local_var_path = '/api/v2/spa/recommendations/{service}/{shard}'.sub('{shard}', CGI.escape(shard.to_s).gsub('%2F', '/')).sub('{service}', CGI.escape(service.to_s).gsub('%2F', '/'))
|
|
63
137
|
|
|
64
138
|
# query parameters
|
|
65
139
|
query_params = opts[:query_params] || {}
|
|
140
|
+
query_params[:'bypass_cache'] = opts[:'bypass_cache'] if !opts[:'bypass_cache'].nil?
|
|
66
141
|
|
|
67
142
|
# header parameters
|
|
68
143
|
header_params = opts[:header_params] || {}
|
|
@@ -79,10 +154,10 @@ module DatadogAPIClient::V2
|
|
|
79
154
|
return_type = opts[:debug_return_type] || 'RecommendationDocument'
|
|
80
155
|
|
|
81
156
|
# auth_names
|
|
82
|
-
auth_names = opts[:debug_auth_names] || [:
|
|
157
|
+
auth_names = opts[:debug_auth_names] || [:AuthZ]
|
|
83
158
|
|
|
84
159
|
new_options = opts.merge(
|
|
85
|
-
:operation => :
|
|
160
|
+
:operation => :get_spa_recommendations_with_shard,
|
|
86
161
|
:header_params => header_params,
|
|
87
162
|
:query_params => query_params,
|
|
88
163
|
:form_params => form_params,
|
|
@@ -94,7 +169,7 @@ module DatadogAPIClient::V2
|
|
|
94
169
|
|
|
95
170
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
96
171
|
if @api_client.config.debugging
|
|
97
|
-
@api_client.config.logger.debug "API called: SpaAPI#
|
|
172
|
+
@api_client.config.logger.debug "API called: SpaAPI#get_spa_recommendations_with_shard\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
98
173
|
end
|
|
99
174
|
return data, status_code, headers
|
|
100
175
|
end
|
|
@@ -38,9 +38,6 @@ module DatadogAPIClient::V2
|
|
|
38
38
|
# AWS Regions to collect data from. Defaults to `include_all`.
|
|
39
39
|
attr_accessor :aws_regions
|
|
40
40
|
|
|
41
|
-
# AWS Cloud Cost Management config.
|
|
42
|
-
attr_accessor :ccm_config
|
|
43
|
-
|
|
44
41
|
# AWS Logs Collection config.
|
|
45
42
|
attr_accessor :logs_config
|
|
46
43
|
|
|
@@ -64,7 +61,6 @@ module DatadogAPIClient::V2
|
|
|
64
61
|
:'aws_account_id' => :'aws_account_id',
|
|
65
62
|
:'aws_partition' => :'aws_partition',
|
|
66
63
|
:'aws_regions' => :'aws_regions',
|
|
67
|
-
:'ccm_config' => :'ccm_config',
|
|
68
64
|
:'logs_config' => :'logs_config',
|
|
69
65
|
:'metrics_config' => :'metrics_config',
|
|
70
66
|
:'resources_config' => :'resources_config',
|
|
@@ -81,7 +77,6 @@ module DatadogAPIClient::V2
|
|
|
81
77
|
:'aws_account_id' => :'String',
|
|
82
78
|
:'aws_partition' => :'AWSAccountPartition',
|
|
83
79
|
:'aws_regions' => :'AWSRegions',
|
|
84
|
-
:'ccm_config' => :'AWSCCMConfig',
|
|
85
80
|
:'logs_config' => :'AWSLogsConfig',
|
|
86
81
|
:'metrics_config' => :'AWSMetricsConfig',
|
|
87
82
|
:'resources_config' => :'AWSResourcesConfig',
|
|
@@ -137,10 +132,6 @@ module DatadogAPIClient::V2
|
|
|
137
132
|
self.aws_regions = attributes[:'aws_regions']
|
|
138
133
|
end
|
|
139
134
|
|
|
140
|
-
if attributes.key?(:'ccm_config')
|
|
141
|
-
self.ccm_config = attributes[:'ccm_config']
|
|
142
|
-
end
|
|
143
|
-
|
|
144
135
|
if attributes.key?(:'logs_config')
|
|
145
136
|
self.logs_config = attributes[:'logs_config']
|
|
146
137
|
end
|
|
@@ -229,7 +220,6 @@ module DatadogAPIClient::V2
|
|
|
229
220
|
aws_account_id == o.aws_account_id &&
|
|
230
221
|
aws_partition == o.aws_partition &&
|
|
231
222
|
aws_regions == o.aws_regions &&
|
|
232
|
-
ccm_config == o.ccm_config &&
|
|
233
223
|
logs_config == o.logs_config &&
|
|
234
224
|
metrics_config == o.metrics_config &&
|
|
235
225
|
resources_config == o.resources_config &&
|
|
@@ -241,7 +231,7 @@ module DatadogAPIClient::V2
|
|
|
241
231
|
# @return [Integer] Hash code
|
|
242
232
|
# @!visibility private
|
|
243
233
|
def hash
|
|
244
|
-
[account_tags, auth_config, aws_account_id, aws_partition, aws_regions,
|
|
234
|
+
[account_tags, auth_config, aws_account_id, aws_partition, aws_regions, logs_config, metrics_config, resources_config, traces_config, additional_properties].hash
|
|
245
235
|
end
|
|
246
236
|
end
|
|
247
237
|
end
|
|
@@ -38,9 +38,6 @@ module DatadogAPIClient::V2
|
|
|
38
38
|
# AWS Regions to collect data from. Defaults to `include_all`.
|
|
39
39
|
attr_accessor :aws_regions
|
|
40
40
|
|
|
41
|
-
# AWS Cloud Cost Management config.
|
|
42
|
-
attr_accessor :ccm_config
|
|
43
|
-
|
|
44
41
|
# Timestamp of when the account integration was created.
|
|
45
42
|
attr_accessor :created_at
|
|
46
43
|
|
|
@@ -70,7 +67,6 @@ module DatadogAPIClient::V2
|
|
|
70
67
|
:'aws_account_id' => :'aws_account_id',
|
|
71
68
|
:'aws_partition' => :'aws_partition',
|
|
72
69
|
:'aws_regions' => :'aws_regions',
|
|
73
|
-
:'ccm_config' => :'ccm_config',
|
|
74
70
|
:'created_at' => :'created_at',
|
|
75
71
|
:'logs_config' => :'logs_config',
|
|
76
72
|
:'metrics_config' => :'metrics_config',
|
|
@@ -89,7 +85,6 @@ module DatadogAPIClient::V2
|
|
|
89
85
|
:'aws_account_id' => :'String',
|
|
90
86
|
:'aws_partition' => :'AWSAccountPartition',
|
|
91
87
|
:'aws_regions' => :'AWSRegions',
|
|
92
|
-
:'ccm_config' => :'AWSCCMConfig',
|
|
93
88
|
:'created_at' => :'Time',
|
|
94
89
|
:'logs_config' => :'AWSLogsConfig',
|
|
95
90
|
:'metrics_config' => :'AWSMetricsConfig',
|
|
@@ -147,10 +142,6 @@ module DatadogAPIClient::V2
|
|
|
147
142
|
self.aws_regions = attributes[:'aws_regions']
|
|
148
143
|
end
|
|
149
144
|
|
|
150
|
-
if attributes.key?(:'ccm_config')
|
|
151
|
-
self.ccm_config = attributes[:'ccm_config']
|
|
152
|
-
end
|
|
153
|
-
|
|
154
145
|
if attributes.key?(:'created_at')
|
|
155
146
|
self.created_at = attributes[:'created_at']
|
|
156
147
|
end
|
|
@@ -225,7 +216,6 @@ module DatadogAPIClient::V2
|
|
|
225
216
|
aws_account_id == o.aws_account_id &&
|
|
226
217
|
aws_partition == o.aws_partition &&
|
|
227
218
|
aws_regions == o.aws_regions &&
|
|
228
|
-
ccm_config == o.ccm_config &&
|
|
229
219
|
created_at == o.created_at &&
|
|
230
220
|
logs_config == o.logs_config &&
|
|
231
221
|
metrics_config == o.metrics_config &&
|
|
@@ -239,7 +229,7 @@ module DatadogAPIClient::V2
|
|
|
239
229
|
# @return [Integer] Hash code
|
|
240
230
|
# @!visibility private
|
|
241
231
|
def hash
|
|
242
|
-
[account_tags, auth_config, aws_account_id, aws_partition, aws_regions,
|
|
232
|
+
[account_tags, auth_config, aws_account_id, aws_partition, aws_regions, created_at, logs_config, metrics_config, modified_at, resources_config, traces_config, additional_properties].hash
|
|
243
233
|
end
|
|
244
234
|
end
|
|
245
235
|
end
|
|
@@ -38,9 +38,6 @@ module DatadogAPIClient::V2
|
|
|
38
38
|
# AWS Regions to collect data from. Defaults to `include_all`.
|
|
39
39
|
attr_accessor :aws_regions
|
|
40
40
|
|
|
41
|
-
# AWS Cloud Cost Management config.
|
|
42
|
-
attr_accessor :ccm_config
|
|
43
|
-
|
|
44
41
|
# AWS Logs Collection config.
|
|
45
42
|
attr_accessor :logs_config
|
|
46
43
|
|
|
@@ -64,7 +61,6 @@ module DatadogAPIClient::V2
|
|
|
64
61
|
:'aws_account_id' => :'aws_account_id',
|
|
65
62
|
:'aws_partition' => :'aws_partition',
|
|
66
63
|
:'aws_regions' => :'aws_regions',
|
|
67
|
-
:'ccm_config' => :'ccm_config',
|
|
68
64
|
:'logs_config' => :'logs_config',
|
|
69
65
|
:'metrics_config' => :'metrics_config',
|
|
70
66
|
:'resources_config' => :'resources_config',
|
|
@@ -81,7 +77,6 @@ module DatadogAPIClient::V2
|
|
|
81
77
|
:'aws_account_id' => :'String',
|
|
82
78
|
:'aws_partition' => :'AWSAccountPartition',
|
|
83
79
|
:'aws_regions' => :'AWSRegions',
|
|
84
|
-
:'ccm_config' => :'AWSCCMConfig',
|
|
85
80
|
:'logs_config' => :'AWSLogsConfig',
|
|
86
81
|
:'metrics_config' => :'AWSMetricsConfig',
|
|
87
82
|
:'resources_config' => :'AWSResourcesConfig',
|
|
@@ -137,10 +132,6 @@ module DatadogAPIClient::V2
|
|
|
137
132
|
self.aws_regions = attributes[:'aws_regions']
|
|
138
133
|
end
|
|
139
134
|
|
|
140
|
-
if attributes.key?(:'ccm_config')
|
|
141
|
-
self.ccm_config = attributes[:'ccm_config']
|
|
142
|
-
end
|
|
143
|
-
|
|
144
135
|
if attributes.key?(:'logs_config')
|
|
145
136
|
self.logs_config = attributes[:'logs_config']
|
|
146
137
|
end
|
|
@@ -207,7 +198,6 @@ module DatadogAPIClient::V2
|
|
|
207
198
|
aws_account_id == o.aws_account_id &&
|
|
208
199
|
aws_partition == o.aws_partition &&
|
|
209
200
|
aws_regions == o.aws_regions &&
|
|
210
|
-
ccm_config == o.ccm_config &&
|
|
211
201
|
logs_config == o.logs_config &&
|
|
212
202
|
metrics_config == o.metrics_config &&
|
|
213
203
|
resources_config == o.resources_config &&
|
|
@@ -219,7 +209,7 @@ module DatadogAPIClient::V2
|
|
|
219
209
|
# @return [Integer] Hash code
|
|
220
210
|
# @!visibility private
|
|
221
211
|
def hash
|
|
222
|
-
[account_tags, auth_config, aws_account_id, aws_partition, aws_regions,
|
|
212
|
+
[account_tags, auth_config, aws_account_id, aws_partition, aws_regions, logs_config, metrics_config, resources_config, traces_config, additional_properties].hash
|
|
223
213
|
end
|
|
224
214
|
end
|
|
225
215
|
end
|
|
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class BatchUpsertRowsRequestDataAttributes
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
# Key-value pairs representing row data, where keys are field names
|
|
24
|
+
# Key-value pairs representing row data, where keys are schema field names and values match the corresponding column types.
|
|
25
25
|
attr_reader :values
|
|
26
26
|
|
|
27
27
|
attr_accessor :additional_properties
|
|
@@ -38,7 +38,7 @@ module DatadogAPIClient::V2
|
|
|
38
38
|
# @!visibility private
|
|
39
39
|
def self.openapi_types
|
|
40
40
|
{
|
|
41
|
-
:'values' => :'Hash<String,
|
|
41
|
+
:'values' => :'Hash<String, BatchUpsertRowsRequestDataAttributesValue>'
|
|
42
42
|
}
|
|
43
43
|
end
|
|
44
44
|
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V2
|
|
20
|
+
# Types allowed for Reference Table row values.
|
|
21
|
+
module BatchUpsertRowsRequestDataAttributesValue
|
|
22
|
+
class << self
|
|
23
|
+
include BaseOneOfModel
|
|
24
|
+
include BaseOneOfModelNoDiscriminator
|
|
25
|
+
|
|
26
|
+
# List of class defined in oneOf (OpenAPI v3)
|
|
27
|
+
def openapi_one_of
|
|
28
|
+
[
|
|
29
|
+
:'String',
|
|
30
|
+
:'Integer'
|
|
31
|
+
]
|
|
32
|
+
end
|
|
33
|
+
# Builds the object
|
|
34
|
+
# @param data [Mixed] Data to be matched against the list of oneOf items
|
|
35
|
+
# @return [Object] Returns the model or the data itself
|
|
36
|
+
def build(data)
|
|
37
|
+
# Go through the list of oneOf items and attempt to identify the appropriate one.
|
|
38
|
+
# Note:
|
|
39
|
+
# - We do not attempt to check whether exactly one item matches.
|
|
40
|
+
# - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
|
|
41
|
+
# due to the way the deserialization is made in the base_object template (it just casts without verifying).
|
|
42
|
+
# - TODO: scalar values are de facto behaving as if they were nullable.
|
|
43
|
+
# - TODO: logging when debugging is set.
|
|
44
|
+
openapi_one_of.each do |klass|
|
|
45
|
+
begin
|
|
46
|
+
next if klass == :AnyType # "nullable: true"
|
|
47
|
+
typed_data = find_and_cast_into_type(klass, data)
|
|
48
|
+
next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
|
|
49
|
+
return typed_data if typed_data
|
|
50
|
+
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
if openapi_one_of.include?(:AnyType)
|
|
55
|
+
data
|
|
56
|
+
else
|
|
57
|
+
self._unparsed = true
|
|
58
|
+
DatadogAPIClient::UnparsedObject.new(data)
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -43,6 +43,9 @@ module DatadogAPIClient::V2
|
|
|
43
43
|
# When enabled, Datadog will activate the Cloud Security Monitoring product for this service account. Note: This requires resource_collection_enabled to be set to true.
|
|
44
44
|
attr_accessor :is_cspm_enabled
|
|
45
45
|
|
|
46
|
+
# When enabled, Datadog collects metrics where location is explicitly stated as "global" or where location information cannot be deduced from GCP labels.
|
|
47
|
+
attr_accessor :is_global_location_enabled
|
|
48
|
+
|
|
46
49
|
# When enabled, Datadog applies the `X-Goog-User-Project` header, attributing Google Cloud billing and quota usage to the project being monitored rather than the default service account project.
|
|
47
50
|
attr_accessor :is_per_project_quota_enabled
|
|
48
51
|
|
|
@@ -58,6 +61,9 @@ module DatadogAPIClient::V2
|
|
|
58
61
|
# Configurations for GCP monitored resources.
|
|
59
62
|
attr_accessor :monitored_resource_configs
|
|
60
63
|
|
|
64
|
+
# Configurations for GCP location filtering, such as region, multi-region, or zone. Only monitored resources that match the specified regions are imported into Datadog. By default, Datadog collects from all locations.
|
|
65
|
+
attr_accessor :region_filter_configs
|
|
66
|
+
|
|
61
67
|
# When enabled, Datadog scans for all resources in your GCP environment.
|
|
62
68
|
attr_accessor :resource_collection_enabled
|
|
63
69
|
|
|
@@ -73,11 +79,13 @@ module DatadogAPIClient::V2
|
|
|
73
79
|
:'cloud_run_revision_filters' => :'cloud_run_revision_filters',
|
|
74
80
|
:'host_filters' => :'host_filters',
|
|
75
81
|
:'is_cspm_enabled' => :'is_cspm_enabled',
|
|
82
|
+
:'is_global_location_enabled' => :'is_global_location_enabled',
|
|
76
83
|
:'is_per_project_quota_enabled' => :'is_per_project_quota_enabled',
|
|
77
84
|
:'is_resource_change_collection_enabled' => :'is_resource_change_collection_enabled',
|
|
78
85
|
:'is_security_command_center_enabled' => :'is_security_command_center_enabled',
|
|
79
86
|
:'metric_namespace_configs' => :'metric_namespace_configs',
|
|
80
87
|
:'monitored_resource_configs' => :'monitored_resource_configs',
|
|
88
|
+
:'region_filter_configs' => :'region_filter_configs',
|
|
81
89
|
:'resource_collection_enabled' => :'resource_collection_enabled'
|
|
82
90
|
}
|
|
83
91
|
end
|
|
@@ -92,11 +100,13 @@ module DatadogAPIClient::V2
|
|
|
92
100
|
:'cloud_run_revision_filters' => :'Array<String>',
|
|
93
101
|
:'host_filters' => :'Array<String>',
|
|
94
102
|
:'is_cspm_enabled' => :'Boolean',
|
|
103
|
+
:'is_global_location_enabled' => :'Boolean',
|
|
95
104
|
:'is_per_project_quota_enabled' => :'Boolean',
|
|
96
105
|
:'is_resource_change_collection_enabled' => :'Boolean',
|
|
97
106
|
:'is_security_command_center_enabled' => :'Boolean',
|
|
98
107
|
:'metric_namespace_configs' => :'Array<GCPMetricNamespaceConfig>',
|
|
99
108
|
:'monitored_resource_configs' => :'Array<GCPMonitoredResourceConfig>',
|
|
109
|
+
:'region_filter_configs' => :'Array<String>',
|
|
100
110
|
:'resource_collection_enabled' => :'Boolean'
|
|
101
111
|
}
|
|
102
112
|
end
|
|
@@ -149,6 +159,10 @@ module DatadogAPIClient::V2
|
|
|
149
159
|
self.is_cspm_enabled = attributes[:'is_cspm_enabled']
|
|
150
160
|
end
|
|
151
161
|
|
|
162
|
+
if attributes.key?(:'is_global_location_enabled')
|
|
163
|
+
self.is_global_location_enabled = attributes[:'is_global_location_enabled']
|
|
164
|
+
end
|
|
165
|
+
|
|
152
166
|
if attributes.key?(:'is_per_project_quota_enabled')
|
|
153
167
|
self.is_per_project_quota_enabled = attributes[:'is_per_project_quota_enabled']
|
|
154
168
|
end
|
|
@@ -173,6 +187,12 @@ module DatadogAPIClient::V2
|
|
|
173
187
|
end
|
|
174
188
|
end
|
|
175
189
|
|
|
190
|
+
if attributes.key?(:'region_filter_configs')
|
|
191
|
+
if (value = attributes[:'region_filter_configs']).is_a?(Array)
|
|
192
|
+
self.region_filter_configs = value
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
|
|
176
196
|
if attributes.key?(:'resource_collection_enabled')
|
|
177
197
|
self.resource_collection_enabled = attributes[:'resource_collection_enabled']
|
|
178
198
|
end
|
|
@@ -210,11 +230,13 @@ module DatadogAPIClient::V2
|
|
|
210
230
|
cloud_run_revision_filters == o.cloud_run_revision_filters &&
|
|
211
231
|
host_filters == o.host_filters &&
|
|
212
232
|
is_cspm_enabled == o.is_cspm_enabled &&
|
|
233
|
+
is_global_location_enabled == o.is_global_location_enabled &&
|
|
213
234
|
is_per_project_quota_enabled == o.is_per_project_quota_enabled &&
|
|
214
235
|
is_resource_change_collection_enabled == o.is_resource_change_collection_enabled &&
|
|
215
236
|
is_security_command_center_enabled == o.is_security_command_center_enabled &&
|
|
216
237
|
metric_namespace_configs == o.metric_namespace_configs &&
|
|
217
238
|
monitored_resource_configs == o.monitored_resource_configs &&
|
|
239
|
+
region_filter_configs == o.region_filter_configs &&
|
|
218
240
|
resource_collection_enabled == o.resource_collection_enabled &&
|
|
219
241
|
additional_properties == o.additional_properties
|
|
220
242
|
end
|
|
@@ -223,7 +245,7 @@ module DatadogAPIClient::V2
|
|
|
223
245
|
# @return [Integer] Hash code
|
|
224
246
|
# @!visibility private
|
|
225
247
|
def hash
|
|
226
|
-
[account_tags, automute, client_email, cloud_run_revision_filters, host_filters, is_cspm_enabled, is_per_project_quota_enabled, is_resource_change_collection_enabled, is_security_command_center_enabled, metric_namespace_configs, monitored_resource_configs, resource_collection_enabled, additional_properties].hash
|
|
248
|
+
[account_tags, automute, client_email, cloud_run_revision_filters, host_filters, is_cspm_enabled, is_global_location_enabled, is_per_project_quota_enabled, is_resource_change_collection_enabled, is_security_command_center_enabled, metric_namespace_configs, monitored_resource_configs, region_filter_configs, resource_collection_enabled, additional_properties].hash
|
|
227
249
|
end
|
|
228
250
|
end
|
|
229
251
|
end
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V2
|
|
20
|
+
# The expected response schema when listing security findings.
|
|
21
|
+
class ListSecurityFindingsResponse
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Array of security findings matching the search query.
|
|
25
|
+
attr_accessor :data
|
|
26
|
+
|
|
27
|
+
# Links for pagination.
|
|
28
|
+
attr_accessor :links
|
|
29
|
+
|
|
30
|
+
# Metadata about the response.
|
|
31
|
+
attr_accessor :meta
|
|
32
|
+
|
|
33
|
+
attr_accessor :additional_properties
|
|
34
|
+
|
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
|
+
# @!visibility private
|
|
37
|
+
def self.attribute_map
|
|
38
|
+
{
|
|
39
|
+
:'data' => :'data',
|
|
40
|
+
:'links' => :'links',
|
|
41
|
+
:'meta' => :'meta'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
# @!visibility private
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'data' => :'Array<SecurityFindingsData>',
|
|
50
|
+
:'links' => :'SecurityFindingsLinks',
|
|
51
|
+
:'meta' => :'SecurityFindingsMeta'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Initializes the object
|
|
56
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
57
|
+
# @!visibility private
|
|
58
|
+
def initialize(attributes = {})
|
|
59
|
+
if (!attributes.is_a?(Hash))
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListSecurityFindingsResponse` initialize method"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
self.additional_properties = {}
|
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
67
|
+
self.additional_properties[k.to_sym] = v
|
|
68
|
+
else
|
|
69
|
+
h[k.to_sym] = v
|
|
70
|
+
end
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'data')
|
|
74
|
+
if (value = attributes[:'data']).is_a?(Array)
|
|
75
|
+
self.data = value
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.key?(:'links')
|
|
80
|
+
self.links = attributes[:'links']
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
if attributes.key?(:'meta')
|
|
84
|
+
self.meta = attributes[:'meta']
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
89
|
+
# @return [Hash] Returns the object in the form of hash
|
|
90
|
+
# @!visibility private
|
|
91
|
+
def to_hash
|
|
92
|
+
hash = {}
|
|
93
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
94
|
+
value = self.send(attr)
|
|
95
|
+
if value.nil?
|
|
96
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
97
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
hash[param] = _to_hash(value)
|
|
101
|
+
end
|
|
102
|
+
self.additional_properties.each_pair do |attr, value|
|
|
103
|
+
hash[attr] = value
|
|
104
|
+
end
|
|
105
|
+
hash
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Checks equality by comparing each attribute.
|
|
109
|
+
# @param o [Object] Object to be compared
|
|
110
|
+
# @!visibility private
|
|
111
|
+
def ==(o)
|
|
112
|
+
return true if self.equal?(o)
|
|
113
|
+
self.class == o.class &&
|
|
114
|
+
data == o.data &&
|
|
115
|
+
links == o.links &&
|
|
116
|
+
meta == o.meta &&
|
|
117
|
+
additional_properties == o.additional_properties
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Calculates hash code according to all attributes.
|
|
121
|
+
# @return [Integer] Hash code
|
|
122
|
+
# @!visibility private
|
|
123
|
+
def hash
|
|
124
|
+
[data, links, meta, additional_properties].hash
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
end
|
|
@@ -18,13 +18,15 @@ require 'time'
|
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
20
|
# The `add_env_vars` processor adds environment variable values to log events.
|
|
21
|
+
#
|
|
22
|
+
# **Supported pipeline types:** logs
|
|
21
23
|
class ObservabilityPipelineAddEnvVarsProcessor
|
|
22
24
|
include BaseGenericModel
|
|
23
25
|
|
|
24
26
|
# The display name for a component.
|
|
25
27
|
attr_accessor :display_name
|
|
26
28
|
|
|
27
|
-
#
|
|
29
|
+
# Indicates whether the processor is enabled.
|
|
28
30
|
attr_reader :enabled
|
|
29
31
|
|
|
30
32
|
# The unique identifier for this component. Used to reference this processor in the pipeline.
|
|
@@ -18,19 +18,21 @@ require 'time'
|
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
20
|
# The `add_fields` processor adds static key-value fields to logs.
|
|
21
|
+
#
|
|
22
|
+
# **Supported pipeline types:** logs
|
|
21
23
|
class ObservabilityPipelineAddFieldsProcessor
|
|
22
24
|
include BaseGenericModel
|
|
23
25
|
|
|
24
26
|
# The display name for a component.
|
|
25
27
|
attr_accessor :display_name
|
|
26
28
|
|
|
27
|
-
#
|
|
29
|
+
# Indicates whether the processor is enabled.
|
|
28
30
|
attr_reader :enabled
|
|
29
31
|
|
|
30
32
|
# A list of static fields (key-value pairs) that is added to each log event processed by this component.
|
|
31
33
|
attr_reader :fields
|
|
32
34
|
|
|
33
|
-
# The unique identifier for this component. Used
|
|
35
|
+
# The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
|
|
34
36
|
attr_reader :id
|
|
35
37
|
|
|
36
38
|
# A Datadog search query used to determine which logs this processor targets.
|