You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Plugins::ClientMetricsPlugin

Inherits:
Seahorse::Client::Plugin show all
Defined in:
gems/aws-sdk-core/lib/aws-sdk-core/plugins/client_metrics_plugin.rb

Defined Under Namespace

Classes: Handler

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Plugin

#add_options, #after_initialize, after_initialize, #before_initialize, before_initialize, option

Methods included from Seahorse::Client::HandlerBuilder

#handle, #handle_request, #handle_response

Instance Method Details

#add_handlers(handlers, config) ⇒ Object



57
58
59
60
61
62
63
64
# File 'gems/aws-sdk-core/lib/aws-sdk-core/plugins/client_metrics_plugin.rb', line 57

def add_handlers(handlers, config)
  if config.client_side_monitoring && config.client_side_monitoring_port
    handlers.add(Handler, step: :initialize)
    publisher = config.client_side_monitoring_publisher
    publisher.agent_port = config.client_side_monitoring_port
    publisher.agent_host = config.client_side_monitoring_host
  end
end