Sha256: 4b686a9897ec2cf520c4943cc7ba10c7c5a0e053990cca97f36a656086e620be

Contents?: true

Size: 908 Bytes

Versions: 8

Compression:

Stored size: 908 Bytes

Contents

require 'hallmonitor/configuration'
require 'hallmonitor/dispatcher'
require 'hallmonitor/monitored'
require 'hallmonitor/event'
require 'hallmonitor/timed_event'
require 'hallmonitor/gauge_event'
require 'hallmonitor/outputter'
require 'hallmonitor/middleware'

module Hallmonitor
  class << self
    attr_accessor :config
  end

  # Method to configure Hallmonitor, takes a block and passes a
  # {Hallmonitor::Configuration} object in, which can be used to
  # set configuration options.
  def self.configure
    self.config ||= Hallmonitor::Configuration.new
    yield(config)
  end

  # Adds an outputter to Hallmonitor.  Whenever events are emitted
  # they will be sent to all registered outputters
  # @param outputter [Outputter] An instance of an outputter
  # @note This delegates to {Dispatcher.add_outputter}
  def self.add_outputter(outputter)
    Dispatcher.add_outputter(outputter)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hallmonitor-5.0.0 lib/hallmonitor.rb
hallmonitor-4.2.0 lib/hallmonitor.rb
hallmonitor-4.1.0 lib/hallmonitor.rb
hallmonitor-4.0.0 lib/hallmonitor.rb
hallmonitor-3.0.0 lib/hallmonitor.rb
hallmonitor-2.0.0 lib/hallmonitor.rb
hallmonitor-1.1.0 lib/hallmonitor.rb
hallmonitor-1.0.0 lib/hallmonitor.rb