deprecated export function calculateThroughput ( { start , end , value , } ) { const durationAsMinutes = ( end - start ) / 1000 / 60 ; return value / durationAsMinutes ; } export function calculateThroughputWithRange ( { start , end , value , } ) { const durationAsMinutes = ( end - start ) / 1000 / 60 ; return value / durationAsMinutes ; } export function calculateThroughputWithInterval ( { bucketSize , value , } ) { const durationAsMinutes = bucketSize / 60 ; return value / durationAsMinutes ; } export type ThroughputUnit = 'minute' | 'second' ; export function getThroughputUnit ( bucketSize ) { return bucketSize >= 60 ? 'minute' : 'second' ; }