Skip to content

Commit

Permalink
[APM] Set start date of APM ML job to -4 weeks
Browse files Browse the repository at this point in the history
Closes #111045.
  • Loading branch information
dgieselaar committed Sep 7, 2021
1 parent 07f4985 commit 224ee7e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Logger } from 'kibana/server';
import uuid from 'uuid/v4';
import { snakeCase } from 'lodash';
import Boom from '@hapi/boom';
import moment from 'moment';
import { ML_ERRORS } from '../../../common/anomaly_detection';
import { ProcessorEvent } from '../../../common/processor_event';
import { environmentQuery } from '../../../common/utils/environment_query';
Expand Down Expand Up @@ -87,6 +88,7 @@ async function createAnomalyDetectionJob({
groups: [APM_ML_JOB_GROUP],
indexPatternName,
applyToAllSpaces: true,
start: moment().subtract(4, 'weeks').valueOf(),
query: {
bool: {
filter: [
Expand Down

0 comments on commit 224ee7e

Please sign in to comment.