Module: Aws::Embedded::Metrics

Defined in:
lib/aws-embedded-metrics-customink.rb,
lib/aws-embedded-metrics-customink/units.rb,
lib/aws-embedded-metrics-customink/config.rb,
lib/aws-embedded-metrics-customink/logger.rb,
lib/aws-embedded-metrics-customink/version.rb,
lib/aws-embedded-metrics-customink/instance.rb,
lib/aws-embedded-metrics-customink/sinks/tcp.rb,
lib/aws-embedded-metrics-customink/sinks/logger.rb,
lib/aws-embedded-metrics-customink/sinks/stdout.rb,
lib/aws-embedded-metrics-customink/sinks/sink_error.rb

Defined Under Namespace

Modules: Config, Sinks Classes: Instance, Logger, Units

Constant Summary collapse

VERSION =
'0.8.0'.freeze

Class Method Summary collapse

Class Method Details

.configObject



16
17
18
# File 'lib/aws-embedded-metrics-customink.rb', line 16

def config
  Config.config
end

.configureObject



20
21
22
# File 'lib/aws-embedded-metrics-customink.rb', line 20

def configure
  Config.configure { |c| yield(c) }
end

.loggerObject



28
29
30
31
32
# File 'lib/aws-embedded-metrics-customink.rb', line 28

def logger
  Logger.new.tap do |l|
    l.metrics { |m| yield(m) } if block_given?
  end
end

.reconfigureObject



24
25
26
# File 'lib/aws-embedded-metrics-customink.rb', line 24

def reconfigure
  Config.reconfigure { |c| yield(c) if block_given? }
end