How long do you wait when your child can't even keep fluids down before you call the pediatrician?

M has been throwing up anything she eats or drinks since yesterday. She keeps wanting to drink, though because she is terribly thirsty. That water just keeps coming up. 24 hours? 48?