class Leafy::Metrics::GraphiteReporter::Builder
Public Class Methods
new( metrics )
click to toggle source
Calls superclass method
# File lib/leafy/metrics/graphite/graphite_reporter.rb, line 11 def initialize( metrics ) super( ::GraphiteReporter, metrics ) end
Public Instance Methods
build( graphite )
click to toggle source
# File lib/leafy/metrics/graphite/graphite_reporter.rb, line 20 def build( graphite ) Reporter.new( @builder.build( graphite.sender ) ) end
build_pickled( host, port )
click to toggle source
# File lib/leafy/metrics/graphite/graphite_reporter.rb, line 32 def build_pickled( host, port ) build( Leafy::Metrics::Graphite.new_pickled( host, port ) ) end
build_tcp( host, port )
click to toggle source
# File lib/leafy/metrics/graphite/graphite_reporter.rb, line 24 def build_tcp( host, port ) build( Leafy::Metrics::Graphite.new_tcp( host, port ) ) end
build_udp( host, port )
click to toggle source
# File lib/leafy/metrics/graphite/graphite_reporter.rb, line 28 def build_udp( host, port ) build( Leafy::Metrics::Graphite.new_udp( host, port ) ) end
prefixed_with( prefix )
click to toggle source
# File lib/leafy/metrics/graphite/graphite_reporter.rb, line 15 def prefixed_with( prefix ) @builder.prefixed_with( prefix ) self end