Module: Vitals
- Defined in:
- lib/vitals.rb,
lib/vitals.rb,
lib/vitals/utils.rb,
lib/vitals/version.rb,
lib/vitals/configuration.rb
Defined Under Namespace
Modules: Formats, Integrations, Reporters, Utils
Classes: Configuration
Constant Summary
collapse
- VERSION =
"0.4.0"
Class Method Summary
collapse
Class Method Details
24
25
26
27
28
29
|
# File 'lib/vitals.rb', line 24
def self.configure!
@config = Configuration.new
yield(@config) if block_given?
@reporter = @config.reporter
@reporter.format = @config.build_format
end
|
.gauge(m, val) ⇒ Object
53
54
55
|
# File 'lib/vitals.rb', line 53
def self.gauge(m, val)
reporter.gauge(m, val)
end
|
.inc(m) ⇒ Object
reporter delegators
hardwired for performance
TODO timing
45
46
47
|
# File 'lib/vitals.rb', line 45
def self.inc(m)
reporter.inc(m)
end
|
.reporter ⇒ Object
35
36
37
|
# File 'lib/vitals.rb', line 35
def self.reporter
@reporter
end
|
.reporter=(r) ⇒ Object
31
32
33
|
# File 'lib/vitals.rb', line 31
def self.reporter=(r)
@reporter = r
end
|
.timing(m, val) ⇒ Object
49
50
51
|
# File 'lib/vitals.rb', line 49
def self.timing(m, val)
reporter.timing(m, val)
end
|