import { Job , Datafeed } from '../../../../../plugins/ml/common/types/anomaly_detection_jobs' ; export const SINGLE_METRIC_JOB_CONFIG = { job_id : `jobs_summary_fq_single_${ Date . now ( ) }` , description : 'mean(responsetime) on farequote dataset with 15m bucket span' , groups : [ 'farequote' , 'automated' , 'single-metric' ] , analysis_config : { bucket_span : '15m' , influencers : [ ] , detectors : [ { function : 'mean' , field_name : 'responsetime' , } , ] , } , data_description : { time_field : '@timestamp' } , analysis_limits : { model_memory_limit : '10mb' } , model_plot_config : { enabled : true } , } ; export const MULTI_METRIC_JOB_CONFIG = { job_id : `jobs_summary_fq_multi_${ Date . now ( ) }` , description : 'mean(responsetime) partition=airline on farequote dataset with 1h bucket span' , groups : [ 'farequote' , 'automated' , 'multi-metric' ] , analysis_config : { bucket_span : '1h' , influencers : [ 'airline' ] , detectors : [ { function : 'mean' , field_name : 'responsetime' , partition_field_name : 'airline' } ] , } , data_description : { time_field : '@timestamp' } , analysis_limits : { model_memory_limit : '20mb' } , model_plot_config : { enabled : true } , } ; export const DATAFEED_CONFIG = { datafeed_id : 'REPLACE' , indices : [ 'ft_farequote' ] , job_id : 'REPLACE' , query : { bool : { must : [ { match_all : { } } ] } } , } ;