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
.config ⇒ Object
16
17
18
|
# File 'lib/aws-embedded-metrics-customink.rb', line 16
def config
Config.config
end
|
20
21
22
|
# File 'lib/aws-embedded-metrics-customink.rb', line 20
def configure
Config.configure { |c| yield(c) }
end
|
.logger ⇒ Object
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
|
24
25
26
|
# File 'lib/aws-embedded-metrics-customink.rb', line 24
def reconfigure
Config.reconfigure { |c| yield(c) if block_given? }
end
|