From 8ecf027526b311df4b142f91b1d33a483e08b70b Mon Sep 17 00:00:00 2001 From: Nathan L Smith Date: Fri, 20 Nov 2020 15:31:14 -0600 Subject: [PATCH] type fixes --- .../components/shared/charts/transaction_charts/index.tsx | 1 + x-pack/plugins/apm/server/lib/services/get_throughput.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/apm/public/components/shared/charts/transaction_charts/index.tsx b/x-pack/plugins/apm/public/components/shared/charts/transaction_charts/index.tsx index f796981d1f7a4..268ce5ce04e88 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/transaction_charts/index.tsx +++ b/x-pack/plugins/apm/public/components/shared/charts/transaction_charts/index.tsx @@ -25,6 +25,7 @@ import { IUrlParams } from '../../../../context/UrlParamsContext/types'; import { FETCH_STATUS } from '../../../../hooks/useFetcher'; import { ITransactionChartData } from '../../../../selectors/chart_selectors'; import { TransactionBreakdown } from '../../TransactionBreakdown'; +import { getTPMTooltipFormatter } from '../helper/helper'; import { TimeseriesChart } from '../timeseries_chart'; import { TransactionErrorRateChart } from '../transaction_error_rate_chart/'; import { getResponseTimeTickFormatter } from './helper'; diff --git a/x-pack/plugins/apm/server/lib/services/get_throughput.ts b/x-pack/plugins/apm/server/lib/services/get_throughput.ts index b33b9fe1b3138..5c92b54f21c0d 100644 --- a/x-pack/plugins/apm/server/lib/services/get_throughput.ts +++ b/x-pack/plugins/apm/server/lib/services/get_throughput.ts @@ -45,7 +45,7 @@ async function fetcher({ transactionType, }: Options) { const { start, end, apmEventClient } = setup; - const { intervalString } = getBucketSize(start, end); + const { intervalString } = getBucketSize({ start, end }); const filter: ESFilter[] = [ { term: { [SERVICE_NAME]: serviceName } }, { term: { [TRANSACTION_TYPE]: transactionType } },