Sha256: 529b12c31d505b1e9a2b930f8301f5ccd8982b2b95d19fab98453326bba2e66e
Contents?: true
Size: 1 KB
Versions: 2
Compression:
Stored size: 1 KB
Contents
require "vitals/version" module Vitals module Formats;end module Reporters;end module Integrations module Notifications;end end end require 'vitals/configuration' require 'vitals/utils' require 'vitals/reporters/base_reporter' require 'vitals/reporters/inmem_reporter' require 'vitals/reporters/console_reporter' require 'vitals/reporters/multi_reporter' require 'vitals/reporters/statsd_reporter' require 'vitals/formats/production_format' require 'vitals/formats/host_last_format' module Vitals def self.configure! @config = Configuration.new yield(@config) if block_given? @reporter = @config.reporter @reporter.format = @config.build_format end def self.reporter=(r) @reporter = r end def self.reporter @reporter end # # reporter delegators # # hardwired for performance # # TODO timing def self.inc(m) reporter.inc(m) end def self.timing(m, val) reporter.timing(m, val) end def self.gauge(m, val) reporter.gauge(m, val) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vitals-0.4.0 | lib/vitals.rb |
vitals-0.3.0 | lib/vitals.rb |