Module: Updawg

Defined in:
lib/updawg.rb,
lib/updawg/monitor.rb,
lib/updawg/results.rb,
lib/updawg/checks/check.rb,
lib/updawg/checks/deviation_check.rb,
lib/updawg/checks/threshold_check.rb

Defined Under Namespace

Classes: Check, Configuration, DeviationCheck, Monitor, Result, ResultException, ResultSet, ThresholdCheck

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



19
20
21
# File 'lib/updawg.rb', line 19

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



24
25
26
27
28
# File 'lib/updawg.rb', line 24

def configure
  self.configuration ||= Configuration.new
  yield(configuration) if block_given?
  configuration
end

.monitor(&block) ⇒ Object



30
31
32
33
34
# File 'lib/updawg.rb', line 30

def monitor(&block)
  monitor = Updawg::Monitor.new
  monitor.instance_eval(&block)
  monitor
end