How to translate the format from byte to MB/GB in Metricbeat?

Hi, In kibana, we already use the script field to do so. And it works fine. But we hope the same thing in the watcher alert mail. The setting in Kibana can't be shown in Watcher.