diff --git a/x-pack/packages/ml/time_buckets/time_buckets.d.ts b/x-pack/packages/ml/time_buckets/time_buckets.d.ts index fb75e25100203..4fe0b828746a8 100644 --- a/x-pack/packages/ml/time_buckets/time_buckets.d.ts +++ b/x-pack/packages/ml/time_buckets/time_buckets.d.ts @@ -120,11 +120,6 @@ export declare class TimeBuckets { */ public getScaledDateFormat(): string; } -/** - * Retrieves a TimeBuckets instance from cache. - * @returns An instance of TimeBuckets. - */ -export declare function getTimeBucketsFromCache(): InstanceType; /** * Adjusts the given time range bounds to align with the specified interval. diff --git a/x-pack/plugins/ml/public/application/timeseriesexplorer/timeseriesexplorer_utils/timeseriesexplorer_utils.js b/x-pack/plugins/ml/public/application/timeseriesexplorer/timeseriesexplorer_utils/timeseriesexplorer_utils.js index c5216103f15ab..06bab235ec036 100644 --- a/x-pack/plugins/ml/public/application/timeseriesexplorer/timeseriesexplorer_utils/timeseriesexplorer_utils.js +++ b/x-pack/plugins/ml/public/application/timeseriesexplorer/timeseriesexplorer_utils/timeseriesexplorer_utils.js @@ -15,11 +15,12 @@ import { each, get, find } from 'lodash'; import moment from 'moment-timezone'; import { isMultiBucketAnomaly, ML_JOB_AGGREGATION } from '@kbn/ml-anomaly-utils'; -import { getBoundsRoundedToInterval, getTimeBucketsFromCache } from '@kbn/ml-time-buckets'; +import { getBoundsRoundedToInterval } from '@kbn/ml-time-buckets'; import { isTimeSeriesViewJob } from '../../../../common/util/job_utils'; import { parseInterval } from '../../../../common/util/parse_interval'; +import { getTimeBucketsFromCache } from '../../util/get_time_buckets_from_cache'; import { CHARTS_POINT_TARGET, TIME_FIELD_NAME } from '../timeseriesexplorer_constants'; // create new job objects based on standard job config objects