code: func exportMetricValue(value *core.MetricValue) *types.MetricValue {
  	if value == nil {
  		return nil
  	}
  
  	if value.ValueType == core.ValueInt64 {
  		return &types.MetricValue{
  			IntValue: &value.IntValue,
  		}
  	} else {
  		floatVal := float64(value.FloatValue)
  		return &types.MetricValue{
  			FloatValue: &floatVal,
  		}
  	}
  }
docs: // exportMetricValue converts a core.MetricValue into an API MetricValue