Module: SimpleMetrics

Extended by:
SimpleMetrics
Included in:
SimpleMetrics
Defined in:
lib/simple_metrics.rb,
lib/simple_metrics/graph.rb,
lib/simple_metrics/bucket.rb,
lib/simple_metrics/metric.rb,
lib/simple_metrics/version.rb,
lib/simple_metrics/importer.rb,
lib/simple_metrics/dashboard.rb,
lib/simple_metrics/functions.rb,
lib/simple_metrics/data_point.rb,
lib/simple_metrics/instrument.rb,
lib/simple_metrics/repository.rb,
lib/simple_metrics/udp_server.rb,
lib/simple_metrics/configuration.rb,
lib/simple_metrics/data_point/base.rb,
lib/simple_metrics/data_point/event.rb,
lib/simple_metrics/data_point/gauge.rb,
lib/simple_metrics/data_point/timing.rb,
lib/simple_metrics/metric_repository.rb,
lib/simple_metrics/data_point/counter.rb,
lib/simple_metrics/dashboard_repository.rb,
lib/simple_metrics/data_point_repository.rb,
lib/simple_metrics/instrument_repository.rb

Defined Under Namespace

Modules: ClientHandler, DataPoint, Functions, Graph, Importer, Repository Classes: Bucket, Configuration, Dashboard, DashboardRepository, DataPointRepository, Instrument, InstrumentRepository, Metric, MetricRepository, UDPServer

Constant Summary collapse

VERSION =
"0.4.6"

Instance Method Summary collapse

Instance Method Details

#configObject



38
39
40
# File 'lib/simple_metrics.rb', line 38

def config
  @@config ||= Configuration.new
end

#configure(hash = {}, &block) ⇒ Object



42
43
44
# File 'lib/simple_metrics.rb', line 42

def configure(hash = {}, &block)
  config.configure(hash, &block)
end

#loggerObject



30
31
32
# File 'lib/simple_metrics.rb', line 30

def logger
  @@logger ||= Logger.new(STDOUT)
end

#logger=(logger) ⇒ Object



34
35
36
# File 'lib/simple_metrics.rb', line 34

def logger=(logger)
  @@logger = logger
end