Module: DogWatch

Defined in:
lib/dogwatch.rb,
lib/dogwatch/dogfile.rb,
lib/dogwatch/monitor.rb,
lib/dogwatch/version.rb,
lib/dogwatch/model/client.rb,
lib/dogwatch/model/config.rb,
lib/dogwatch/model/monitor.rb,
lib/dogwatch/model/options.rb,
lib/dogwatch/model/response.rb,
lib/dogwatch/model/mixin/colorize.rb

Overview

nodoc

Defined Under Namespace

Modules: Model Classes: DogFile, Monitor

Constant Summary collapse

VERSION =
IO.read(File.expand_path('../../../VERSION', __FILE__)) rescue '0.0.1'
SUMMARY =
'A DSL to create DataDog Monitors'.freeze
DESCRIPTION =
'DogWatch provides a simple method for creating DataDog monitors in Ruby.'
.freeze

Class Method Summary collapse

Class Method Details

.monitor(*args, &block) ⇒ DogWatch::Monitor

Parameters:

  • args (Hash)
  • block (Proc)

Returns:



9
10
11
# File 'lib/dogwatch.rb', line 9

def monitor(*args, &block)
  DogWatch::Monitor.new(*args, &block)
end