lib/aws-sdk-lookoutmetrics/client.rb in aws-sdk-lookoutmetrics-1.10.0 vs lib/aws-sdk-lookoutmetrics/client.rb in aws-sdk-lookoutmetrics-1.11.0

- old
+ new

@@ -25,10 +25,11 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb' require 'aws-sdk-core/plugins/client_metrics_plugin.rb' require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb' require 'aws-sdk-core/plugins/transfer_encoding.rb' require 'aws-sdk-core/plugins/http_checksum.rb' +require 'aws-sdk-core/plugins/defaults_mode.rb' require 'aws-sdk-core/plugins/signature_v4.rb' require 'aws-sdk-core/plugins/protocols/rest_json.rb' Aws::Plugins::GlobalConfiguration.add_identifier(:lookoutmetrics) @@ -71,10 +72,11 @@ add_plugin(Aws::Plugins::JsonvalueConverter) add_plugin(Aws::Plugins::ClientMetricsPlugin) add_plugin(Aws::Plugins::ClientMetricsSendPlugin) add_plugin(Aws::Plugins::TransferEncoding) add_plugin(Aws::Plugins::HttpChecksum) + add_plugin(Aws::Plugins::DefaultsMode) add_plugin(Aws::Plugins::SignatureV4) add_plugin(Aws::Plugins::Protocols::RestJson) # @overload initialize(options) # @param [Hash] options @@ -173,10 +175,14 @@ # # @option options [Boolean] :correct_clock_skew (true) # Used only in `standard` and adaptive retry modes. Specifies whether to apply # a clock skew correction and retry requests with skewed client clocks. # + # @option options [String] :defaults_mode ("legacy") + # See {Aws::DefaultsModeConfiguration} for a list of the + # accepted modes and the configuration defaults that are included. + # # @option options [Boolean] :disable_host_prefix_injection (false) # Set to true to disable SDK automatically adding host prefix # to default service endpoint when available. # # @option options [String] :endpoint @@ -295,11 +301,11 @@ # # @option options [Float] :http_open_timeout (15) The number of # seconds to wait when opening a HTTP session before raising a # `Timeout::Error`. # - # @option options [Integer] :http_read_timeout (60) The default + # @option options [Float] :http_read_timeout (60) The default # number of seconds to wait for response data. This value can # safely be set per-request on the session. # # @option options [Float] :http_idle_timeout (5) The number of # seconds a connection is allowed to sit idle before it is @@ -311,10 +317,13 @@ # request body. This option has no effect unless the request has # "Expect" header set to "100-continue". Defaults to `nil` which # disables this behaviour. This value can safely be set per # request on the session. # + # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout + # in seconds. + # # @option options [Boolean] :http_wire_trace (false) When `true`, # HTTP debug output will be sent to the `:logger`. # # @option options [Boolean] :ssl_verify_peer (true) When `true`, # SSL peer certificates are verified when establishing a @@ -1177,10 +1186,66 @@ def list_anomaly_detectors(params = {}, options = {}) req = build_request(:list_anomaly_detectors, params) req.send_request(options) end + # Returns a list of measures that are potential causes or effects of an + # anomaly group. + # + # @option params [required, String] :anomaly_detector_arn + # The Amazon Resource Name (ARN) of the anomaly detector. + # + # @option params [required, String] :anomaly_group_id + # The ID of the anomaly group. + # + # @option params [String] :relationship_type_filter + # Filter for potential causes (`CAUSE_OF_INPUT_ANOMALY_GROUP`) or + # downstream effects (`EFFECT_OF_INPUT_ANOMALY_GROUP`) of the anomaly + # group. + # + # @option params [Integer] :max_results + # The maximum number of results to return. + # + # @option params [String] :next_token + # Specify the pagination token that's returned by a previous request to + # retrieve the next page of results. + # + # @return [Types::ListAnomalyGroupRelatedMetricsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::ListAnomalyGroupRelatedMetricsResponse#inter_metric_impact_list #inter_metric_impact_list} => Array<Types::InterMetricImpactDetails> + # * {Types::ListAnomalyGroupRelatedMetricsResponse#next_token #next_token} => String + # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # + # @example Request syntax with placeholder values + # + # resp = client.list_anomaly_group_related_metrics({ + # anomaly_detector_arn: "Arn", # required + # anomaly_group_id: "UUID", # required + # relationship_type_filter: "CAUSE_OF_INPUT_ANOMALY_GROUP", # accepts CAUSE_OF_INPUT_ANOMALY_GROUP, EFFECT_OF_INPUT_ANOMALY_GROUP + # max_results: 1, + # next_token: "NextToken", + # }) + # + # @example Response structure + # + # resp.inter_metric_impact_list #=> Array + # resp.inter_metric_impact_list[0].metric_name #=> String + # resp.inter_metric_impact_list[0].anomaly_group_id #=> String + # resp.inter_metric_impact_list[0].relationship_type #=> String, one of "CAUSE_OF_INPUT_ANOMALY_GROUP", "EFFECT_OF_INPUT_ANOMALY_GROUP" + # resp.inter_metric_impact_list[0].contribution_percentage #=> Float + # resp.next_token #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/ListAnomalyGroupRelatedMetrics AWS API Documentation + # + # @overload list_anomaly_group_related_metrics(params = {}) + # @param [Hash] params ({}) + def list_anomaly_group_related_metrics(params = {}, options = {}) + req = build_request(:list_anomaly_group_related_metrics, params) + req.send_request(options) + end + # Returns a list of anomaly groups. # # @option params [required, String] :anomaly_detector_arn # The Amazon Resource Name (ARN) of the anomaly detector. # @@ -1653,10 +1718,10 @@ operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-lookoutmetrics' - context[:gem_version] = '1.10.0' + context[:gem_version] = '1.11.0' Seahorse::Client::Request.new(handlers, context) end # @api private # @deprecated