def adjust_values(act, payload)
      payload.each do |key, value|
        case value
        when Hash
          act[:tags].merge!(value.select { |_, v| v.is_a?(String) })
        when Numeric, Integer
          act[:values][key.to_sym] = value.to_f
        when String, TrueClass, FalseClass
          act[:values][key.to_sym] = value
        when Symbol
          act[:values][key.to_sym] = value.to_s
        else
          next
        end
      end
    end
def adjust_values(act, payload)
      payload.each do |key, value|
        case value
        when Hash
          act[:tags].merge!(value.select { |_, v| v.is_a?(String) })
        when Numeric, Integer
          act[:values][key.to_sym] = value.to_f
        when String, TrueClass, FalseClass
          act[:values][key.to_sym] = value
        when Symbol
          act[:values][key.to_sym] = value.to_s
        else
          next
        end
      end
    end
rubocop:disable Metrics/MethodLength