lib/deputy.rb in deputy-0.1.26 vs lib/deputy.rb in deputy-0.1.27
- old
+ new
@@ -111,12 +111,12 @@
rescue Exception => e
send_report "Deputies.Error", e.message
raise e
end
- def self.send_report(metric, value)
- raise "separate #{metric} with a ." unless metric.split('.',2).size == 2
- get "/report/#{CGI.escape metric}?value=#{CGI.escape value.to_s}"
+ def self.send_report(group, value)
+ raise "separate #{group} with a ." unless group.split('.',2).size == 2
+ get "/report?group=#{CGI.escape group}&value=#{CGI.escape value.to_s}"
end
def self.get(path)
url = "#{sheriff_url}#{path}"
Timeout.timeout(1) do
\ No newline at end of file