Top Level Namespace

Defined Under Namespace

Classes: Mettric

Instance Method Summary collapse

Instance Method Details

#(payload, &block) ⇒ Object

A duration



17
18
19
20
21
22
23
# File 'lib/mettric/scnr.rb', line 17

def  (payload, &block)
  Mettric.time(payload) do
    block.call
  end
rescue Mettric::CouldNotStartWorkerThread
  puts "***WARNING***  Mettric::CouldNotStartWorkerThread raised"
end

#🌡(payload) ⇒ Object

A meter reading



10
11
12
13
14
# File 'lib/mettric/scnr.rb', line 10

def 🌡 (payload)
  Mettric.meter(payload)
rescue Mettric::CouldNotStartWorkerThread
  puts "***WARNING***  Mettric::CouldNotStartWorkerThread raised"
end

#🛎(payload) ⇒ Object

An event (to become a rate) youtu.be/pWso-qRaIlM?t=48



3
4
5
6
7
# File 'lib/mettric/scnr.rb', line 3

def 🛎 (payload)
  Mettric.event(payload)
rescue Mettric::CouldNotStartWorkerThread
  puts "***WARNING***  Mettric::CouldNotStartWorkerThread raised"
end