import { getBucketSize } from './get_bucket_size' ; export function getMetricsDateHistogramParams ( { start , end , metricsInterval , } ) { const { bucketSize } = getBucketSize ( { start , end } ) ; return { field : '@timestamp' , fixed_interval : `${ Math . max ( bucketSize , metricsInterval ) }s` , min_doc_count : 0 , extended_bounds : { min : start , max : end } , } ; }