export interface Usage { collectorName : string ; } export function getUsageCollector ( collectorName ) { return { type : 'externally_defined_usage_collector' , isReady : ( ) => true , schema : { collectorName : { type : 'keyword' as 'keyword' , } , } , fetch ( ) { return { collectorName , } ; } , } ; }