XGBoost.Hyperparameters

How is the objective hyperparameter related to eval_metric in XGBoost?