From 78aa2cc14f43a6231732a8bd8cee7d66c668ade7 Mon Sep 17 00:00:00 2001 From: Zacqary Xeper Date: Thu, 5 Aug 2021 21:16:07 -0500 Subject: [PATCH] Fix bad merge --- .../lib/alerting/metric_threshold/lib/metric_query.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.ts b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.ts index 44261836624a9f..cde84b217be950 100644 --- a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.ts +++ b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.ts @@ -4,15 +4,13 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import moment from 'moment'; + import { networkTraffic } from '../../../../../common/inventory_models/shared/metrics/snapshot/network_traffic'; import { MetricExpressionParams, Aggregators } from '../types'; import { getIntervalInSeconds } from '../../../../utils/get_interval_in_seconds'; -import { roundTimestamp } from '../../../../utils/round_timestamp'; import { createPercentileAggregation } from './create_percentile_aggregation'; import { calculateDateHistogramOffset } from '../../../metrics/lib/calculate_date_histogram_offset'; -const MINIMUM_BUCKETS = 5; const COMPOSITE_RESULTS_PER_PAGE = 100; const getParsedFilterQuery: (filterQuery: string | undefined) => Record | null = ( @@ -25,9 +23,9 @@ const getParsedFilterQuery: (filterQuery: string | undefined) => Record { if (aggType === Aggregators.COUNT && metric) { throw new Error('Cannot aggregate document count with a metric');