import { CollectorSet } from '../../../plugins/usage_collection/server/collector' ; import { loggerMock } from '../../../core/server/logging/logger.mock' ; import type { Usage } from './types' ; const { makeUsageCollector } = new CollectorSet ( { logger : loggerMock . create ( ) , maximumWaitTimeForAllCollectorsInS : 0 , } ) ; export const myCollector = makeUsageCollector < Usage , false > ( { type : 'importing_from_export_collector' , isReady : ( ) => true , fetch ( ) { return { some_field : 'abc' , } ; } , schema : { some_field : { type : 'keyword' , } , } , } ) ;