lib/deputy.rb in deputy-0.1.15 vs lib/deputy.rb in deputy-0.1.16
- old
+ new
@@ -95,16 +95,17 @@
plugin.new.build_report
else
puts "#{plugin.clean_class_name}: waiting another #{minutes_to_wait} minutes"
end
end
- send_report 'Deputies', 'finished'
+ send_report 'Deputies.finished', 1
rescue Exception => e
send_report "Deputies.Error", e.message
raise e
end
def self.send_report(metric, value)
+ raise "Use with dot e.g. Mysql.status" if metric.split('.',2).size != 2
get "/report/#{CGI.escape metric}?value=#{CGI.escape value.to_s}"
end
def self.get(path)
url = "#{sheriff_url}#{path}"
\ No newline at end of file