Class: Metrux::Commands::Base

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Loggable
Defined in:
lib/metrux/commands/base.rb

Direct Known Subclasses

Gauge, Meter, NoticeError, Timer, Write

Constant Summary collapse

DEFAULT_TAGS =
{
  hostname: Metrux::HOST, program_name: Metrux::PROGRAM_NAME
}.freeze

Instance Method Summary collapse

Constructor Details

#initialize(config, connection) ⇒ Base

Returns a new instance of Base.



11
12
13
14
15
16
# File 'lib/metrux/commands/base.rb', line 11

def initialize(config, connection)
  @config = config
  @connection = connection
  @logger = config.logger
  @prefix = config.prefix
end