import { OPENSEARCH_DASHBOARDS_STATS_TYPE } from '../../common/constants' ; import { Collector } from './collector' ; export class UsageCollector < T = unknown , U = { usage : { [ key ] : T ; } ; } > extends Collector < T , U > { protected defaultFormatterForBulkUpload ( result ) { return { type : OPENSEARCH_DASHBOARDS_STATS_TYPE , payload : ( { usage : { [ this . type ] : result , } , } as unknown ) as U , } ; } }