lib/onering/plugins/reporter.rb in onering-client-0.0.91 vs lib/onering/plugins/reporter.rb in onering-client-0.0.92

- old
+ new

@@ -105,15 +105,17 @@ instance_eval(&block) end end def property(name, value=nil) - @_report[:properties].set(name.to_s.gsub('.','_'), value) unless value.nil? + Onering::Logger.debug3("-> Set property #{name.to_s}", "Onering::Reporter") + @_report[:properties].set(name.to_s, value) unless value.nil? end def stat(name, value=nil) @_report[:properties][:metrics] ||= {} - @_report[:properties][:metrics].set(name.to_s.gsub('.','_'), value) unless value.nil? + Onering::Logger.debug3("-> Set metric #{name.to_s}", "Onering::Reporter") + @_report[:properties][:metrics].set(name.to_s, value) unless value.nil? end def report() @id = (@options[:id] || Onering::Util.fact('hardwareid', nil))