From c888bb2dbf7fd4af541660a2d6686828ba78a62c Mon Sep 17 00:00:00 2001 From: Tim Sullivan Date: Thu, 30 Jan 2020 15:09:16 -0700 Subject: [PATCH] [reporting] remove a legacy cross-plugin import (#56354) --- .../reporting/server/usage/reporting_usage_collector.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/x-pack/legacy/plugins/reporting/server/usage/reporting_usage_collector.ts b/x-pack/legacy/plugins/reporting/server/usage/reporting_usage_collector.ts index 40cf315a78cbb..567838391d2e7 100644 --- a/x-pack/legacy/plugins/reporting/server/usage/reporting_usage_collector.ts +++ b/x-pack/legacy/plugins/reporting/server/usage/reporting_usage_collector.ts @@ -5,13 +5,14 @@ */ import { UsageCollectionSetup } from 'src/plugins/usage_collection/server'; -// @ts-ignore untyped module -import { KIBANA_STATS_TYPE_MONITORING } from '../../../monitoring/common/constants'; import { ServerFacade, ExportTypesRegistry, ESCallCluster } from '../../types'; import { KIBANA_REPORTING_TYPE } from '../../common/constants'; import { getReportingUsage } from './get_reporting_usage'; import { RangeStats } from './types'; +// places the reporting data as kibana stats +const METATYPE = 'kibana_stats'; + /* * @param {Object} server * @return {Object} kibana usage stats type collection object @@ -35,7 +36,7 @@ export function getReportingUsageCollector( */ formatForBulkUpload: (result: RangeStats) => { return { - type: KIBANA_STATS_TYPE_MONITORING, + type: METATYPE, payload: { usage: { xpack: {