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