lib/librato/logreporter.rb
# take key/value pairs and return an array of measure strings
take key/value pairs and return an array of measure strings
take key / value pairs and return an array of measure strings
def add_prefixes(measures)
      type = measures.delete(:l2met_type) || 'measure'
      measure_prefix = type << '#'
      measure_prefix << "#{prefix}." if prefix
      measures.map { |keyval|
        joined = keyval.join('=')
        if keyval[0].to_sym == :source
          joined
        else
          measure_prefix + joined
        end
      }
    end
def add_prefixes ( measures ) type = measures . delete ( :l2met_type ) || 'measure' measure_prefix = type << '#' measure_prefix << "#{prefix}." if prefix measures . map { | keyval | joined = keyval . join ( '=' ) if keyval [ 0 ] . to_sym == :source joined else measure_prefix + joined end } end
take key/value pairs and return an array of measure strings
take key / value pairs and return an array of measure strings
measures
<not_specific>