pub fn metric_value_to_int(metric_value: MetricValue) -> Result<i64, Error>