Skip to content

Commit

Permalink
Merge pull request #77 from kashif/patch-1
Browse files Browse the repository at this point in the history
Add gauges method to ruby example.
  • Loading branch information
mrtazz committed Apr 28, 2012
2 parents 8e10bc3 + 66f9d25 commit 576f977
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/ruby_example2.rb
Expand Up @@ -36,7 +36,11 @@ def self.increment(stats, sample_rate=1)
def self.decrement(stats, sample_rate=1)
Statsd.update_stats(stats, -1, sample_rate)
end


def self.gauges(stats, value, sample_rate=1)
Statsd.update_stats(stats, value, sample_rate, 'g')
end

def self.update_stats(stats, delta=1, sample_rate=1, metric='c')
stats = [stats].flatten

Expand Down

0 comments on commit 576f977

Please sign in to comment.