Class: Sensu::Extension::RubyHash

Inherits:
Mutator
  • Object
show all
Defined in:
lib/sensu/extensions/mutators/ruby_hash.rb

Instance Method Summary collapse

Instance Method Details

#descriptionObject



10
11
12
# File 'lib/sensu/extensions/mutators/ruby_hash.rb', line 10

def description
  "returns ruby hash event data"
end

#nameObject



6
7
8
# File 'lib/sensu/extensions/mutators/ruby_hash.rb', line 6

def name
  "ruby_hash"
end

#run(event) {|event, 0| ... } ⇒ Object

Yields:

  • (event, 0)


14
15
16
# File 'lib/sensu/extensions/mutators/ruby_hash.rb', line 14

def run(event)
  yield event, 0
end