addmetric

addmetric is a deprecated alias of set_metric.