The spectrum of light that comes from a single source (see idealized spectrum illustration top-right) can be measured.
After is measured, the distinction between redshift and blueshift is simply a matter of whether is positive or negative.