import { TRACE_ID , TRANSACTION_ID , } from '../../../common/elasticsearch_fieldnames' ; export function getApmDataViewAttributes ( title ) { return { title , fieldAttrs : '{}' , fields : '[]' , runtimeFieldMap : '{}' , timeFieldName : '@timestamp' , typeMeta : '{}' , fieldFormatMap : JSON . stringify ( { [ TRACE_ID ] : { id : 'url' , params : { urlTemplate : 'apm/link-to/trace/{{value}}' , labelTemplate : '{{value}}' , } , } , [ TRANSACTION_ID ] : { id : 'url' , params : { urlTemplate : 'apm/link-to/transaction/{{value}}' , labelTemplate : '{{value}}' , } , } , } ) , } ; }