Extracting information from the gravitational redshift of compact rotating objects