File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 44 * you may not use this file except in compliance with the Elastic License.
55 */
66
7- import Boom from 'boom' ;
7+ import Boom from '@hapi/ boom' ;
88import { IScopedClusterClient } from 'kibana/server' ;
99import { RequestParams , ApiResponse } from '@elastic/elasticsearch' ;
1010
Original file line number Diff line number Diff line change 77import Boom from '@hapi/boom' ;
88import { PARTITION_FIELDS } from '../../../common/constants/anomalies' ;
99import { PartitionFieldsType } from '../../../common/types/anomalies' ;
10- import { ML_RESULTS_INDEX_PATTERN } from '../../../common/constants/index_patterns' ;
1110import { CriteriaField } from './results_service' ;
1211import { FieldConfig , FieldsConfig } from '../../routes/schemas/results_service_schema' ;
1312import { Job } from '../../../common/types/anomaly_detection_jobs' ;
@@ -220,10 +219,13 @@ export const getPartitionFieldsValuesFactory = (mlClient: MlClient) =>
220219 } ,
221220 } ;
222221
223- const { body } = await mlClient . anomalySearch ( {
224- size : 0 ,
225- body : requestBody ,
226- } , [ jobId ] ) ;
222+ const { body } = await mlClient . anomalySearch (
223+ {
224+ size : 0 ,
225+ body : requestBody ,
226+ } ,
227+ [ jobId ]
228+ ) ;
227229
228230 return PARTITION_FIELDS . reduce ( ( acc , key ) => {
229231 return {
Original file line number Diff line number Diff line change 44 * you may not use this file except in compliance with the Elastic License.
55 */
66
7- import Boom from 'boom' ;
7+ import Boom from '@hapi/ boom' ;
88import { IScopedClusterClient } from 'kibana/server' ;
99import { SearchResponse } from 'elasticsearch' ;
1010import type { JobObject , JobSavedObjectService } from './service' ;
You can’t perform that action at this time.
0 commit comments