import { FieldFormat } from '../../types' ; import { METRIC_SYSTEM_CPU_USAGE , METRIC_SYSTEM_MEMORY_USAGE , TRANSACTION_DURATION , } from '../constants/elasticsearch_fieldnames' ; export const apmFieldFormats = [ { field : TRANSACTION_DURATION , format : { id : 'duration' , params : { inputFormat : 'microseconds' , outputFormat : 'asMilliseconds' , outputPrecision : 0 , showSuffix : true , useShortSuffix : true , } , } , } , { field : METRIC_SYSTEM_MEMORY_USAGE , format : { id : 'bytes' , params : { } } , } , { field : METRIC_SYSTEM_CPU_USAGE , format : { id : 'percent' , params : { } } , } , ] ;